diff options
author | Dave Airlie <[email protected]> | 2017-06-20 14:03:10 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-06-26 08:45:22 +1000 |
commit | a563f611c3d3cdb2ca8a60d5eb4086cab5fa0f31 (patch) | |
tree | b2ee1e35d6429314254f4ed3ce1789ff7f2bf6ed /src/amd/vulkan/si_cmd_buffer.c | |
parent | 4042892cee83cb04ca50908926d95215d7ab1d42 (diff) |
radv: set prim_id for geometry shaders
Noticed in passing.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/si_cmd_buffer.c')
-rw-r--r-- | src/amd/vulkan/si_cmd_buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index 962b76fe9d9..86e8e3e4986 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -789,6 +789,11 @@ si_get_ia_multi_vgt_param(struct radv_cmd_buffer *cmd_buffer, partial_es_wave = true; if (radv_pipeline_has_gs(cmd_buffer->state.pipeline)) { + + if (radv_pipeline_has_gs(cmd_buffer->state.pipeline) && + cmd_buffer->state.pipeline->shaders[MESA_SHADER_GEOMETRY]->info.gs.uses_prim_id) + ia_switch_on_eoi = true; + /* GS requirement. */ if (SI_GS_PER_ES / primgroup_size >= cmd_buffer->device->gs_table_depth - 3) partial_es_wave = true; |