mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 18:50:10 +01:00
i965: Fix instanced geometry shaders on Gen8+.
Jordan added this in commit 741782b594 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 <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
a09c5b8527
commit
f9e5dc0a85
1 changed files with 2 additions and 0 deletions
|
|
@ -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) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue