summaryrefslogtreecommitdiff
path: root/src/amd/common/ac_shader_info.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2017-12-20 20:56:55 +0100
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2018-01-04 18:43:07 +0100
commit3b2cb2f99ae8f82dd172f8486753637ae580d571 (patch)
treec487642afb08f5ee865245b5eaedd83d10ca7ed7 /src/amd/common/ac_shader_info.c
parentaa187fe7bfac856207a5feee36e17120a6ee9d22 (diff)
amd/common: scan if gl_InvocationID is used
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/amd/common/ac_shader_info.c')
-rw-r--r--src/amd/common/ac_shader_info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_shader_info.c b/src/amd/common/ac_shader_info.c
index ab5388fb53..5dac1131bd 100644
--- a/src/amd/common/ac_shader_info.c
+++ b/src/amd/common/ac_shader_info.c
@@ -70,6 +70,9 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, struct ac_shader_info *info)
case nir_intrinsic_load_view_index:
info->needs_multiview_view_index = true;
break;
+ case nir_intrinsic_load_invocation_id:
+ info->uses_invocation_id = true;
+ break;
case nir_intrinsic_vulkan_resource_index:
info->desc_set_used_mask |= (1 << nir_intrinsic_desc_set(instr));
break;