diff options
author | Kenneth Graunke <[email protected]> | 2015-04-04 02:00:52 -0700 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-04-08 18:45:33 +0100 |
commit | b6ce705dac84ee95a640ba5828864681ec2f2887 (patch) | |
tree | d6df528d38c84cab20d28dfeae758a5f67cc56ec /src | |
parent | 71367a1bb4003434e12c229748afc7e89688e67c (diff) |
i965: Fix instanced geometry shaders on Gen8+.
Jordan added this in commit 741782b5948bb3d01d699f062a37513c2e73b076 for
Gen7 platforms. I missed this when adding the Broadwell code.
Fixes Piglit's spec/arb_gpu_shader5/invocation-id-{basic,in-separate-gs}
with MESA_EXTENSION_OVERRIDE=GL_ARB_gpu_shader5 set.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Cc: [email protected]
(cherry picked from commit f9e5dc0a85df8dbfb8213ff772dfeb218972db12)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_gs_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_gs_state.c b/src/mesa/drivers/dri/i965/gen8_gs_state.c index 95cc1234fe5..46b97131e20 100644 --- a/src/mesa/drivers/dri/i965/gen8_gs_state.c +++ b/src/mesa/drivers/dri/i965/gen8_gs_state.c @@ -82,6 +82,8 @@ gen8_upload_gs_state(struct brw_context *brw) uint32_t dw7 = (brw->gs.prog_data->control_data_header_size_hwords << GEN7_GS_CONTROL_DATA_HEADER_SIZE_SHIFT) | brw->gs.prog_data->dispatch_mode | + ((brw->gs.prog_data->invocations - 1) << + GEN7_GS_INSTANCE_CONTROL_SHIFT) | GEN6_GS_STATISTICS_ENABLE | (brw->gs.prog_data->include_primitive_id ? GEN7_GS_INCLUDE_PRIMITIVE_ID : 0) | |