mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
i965: Enable the GL_ARB_draw_instanced extension.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
e568b00562
commit
e9bcdc2c37
2 changed files with 3 additions and 2 deletions
|
|
@ -191,7 +191,7 @@ static void brw_emit_prim(struct brw_context *brw,
|
|||
vertex_access_type);
|
||||
OUT_BATCH(verts_per_instance);
|
||||
OUT_BATCH(start_vertex_location);
|
||||
OUT_BATCH(1); // instance count
|
||||
OUT_BATCH(prim->num_instances);
|
||||
OUT_BATCH(0); // start instance location
|
||||
OUT_BATCH(base_vertex_location);
|
||||
ADVANCE_BATCH();
|
||||
|
|
@ -247,7 +247,7 @@ static void gen7_emit_prim(struct brw_context *brw,
|
|||
OUT_BATCH(hw_prim | vertex_access_type);
|
||||
OUT_BATCH(verts_per_instance);
|
||||
OUT_BATCH(start_vertex_location);
|
||||
OUT_BATCH(1); // instance count
|
||||
OUT_BATCH(prim->num_instances);
|
||||
OUT_BATCH(0); // start instance location
|
||||
OUT_BATCH(base_vertex_location);
|
||||
ADVANCE_BATCH();
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ intelInitExtensions(struct gl_context *ctx)
|
|||
struct intel_context *intel = intel_context(ctx);
|
||||
|
||||
ctx->Extensions.ARB_draw_elements_base_vertex = true;
|
||||
ctx->Extensions.ARB_draw_instanced = true;
|
||||
ctx->Extensions.ARB_explicit_attrib_location = true;
|
||||
ctx->Extensions.ARB_framebuffer_object = true;
|
||||
ctx->Extensions.ARB_half_float_pixel = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue