diff options
author | Jason Ekstrand <[email protected]> | 2016-04-14 15:12:41 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-14 15:13:29 -0700 |
commit | e61c812f76eda0cf70317ee8c4070e80e3312e67 (patch) | |
tree | 9dea1db72cb3a1de5196b87e05a8b26f318280bc /src/intel/vulkan | |
parent | 34b5db17d965b94f018189950be241e24d006421 (diff) |
anv/pipeline: Use the right mask for lower_indirect_derefs
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 90732dba961..a215a377a96 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -174,11 +174,11 @@ anv_shader_compile_to_nir(struct anv_device *device, nir_shader_gather_info(nir, entry_point->impl); - uint32_t indirect_mask = 0; + nir_variable_mode indirect_mask = 0; if (compiler->glsl_compiler_options[stage].EmitNoIndirectInput) - indirect_mask |= (1 << nir_var_shader_in); + indirect_mask |= nir_var_shader_in; if (compiler->glsl_compiler_options[stage].EmitNoIndirectTemp) - indirect_mask |= 1 << nir_var_local; + indirect_mask |= nir_var_local; nir_lower_indirect_derefs(nir, indirect_mask); |