Browse Source

intel: Add support for ARB_draw_elements_base_vertex.

On the 965, we just drop the value into the primitive packet.  On non-945,
we rely on the sw tnl code handling it.
tags/android-x86-1.6
Eric Anholt 16 years ago
parent
commit
f959ccdfa6

+ 1
- 1
src/mesa/drivers/dri/i965/brw_draw.c View File

@@ -142,7 +142,7 @@ static void brw_emit_prim(struct brw_context *brw,
prim_packet.start_vert_location += brw->ib.start_vertex_offset;
prim_packet.instance_count = 1;
prim_packet.start_instance_location = 0;
prim_packet.base_vert_location = 0;
prim_packet.base_vert_location = prim->basevertex;

/* Can't wrap here, since we rely on the validated state. */
brw->no_batch_wrap = GL_TRUE;

+ 2
- 0
src/mesa/drivers/dri/intel/intel_extensions.c View File

@@ -31,6 +31,7 @@


#define need_GL_ARB_copy_buffer
#define need_GL_ARB_draw_elements_base_vertex
#define need_GL_ARB_framebuffer_object
#define need_GL_ARB_map_buffer_range
#define need_GL_ARB_occlusion_query
@@ -73,6 +74,7 @@
*/
static const struct dri_extension card_extensions[] = {
{ "GL_ARB_copy_buffer", GL_ARB_copy_buffer_functions },
{ "GL_ARB_draw_elements_base_vertex", GL_ARB_draw_elements_base_vertex_functions },
{ "GL_ARB_half_float_pixel", NULL },
{ "GL_ARB_map_buffer_range", GL_ARB_map_buffer_range_functions },
{ "GL_ARB_multitexture", NULL },

Loading…
Cancel
Save