diff options
author | Jason Ekstrand <[email protected]> | 2018-12-16 00:59:08 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-12-16 15:06:07 -0600 |
commit | 47e1e0692c00bfbf03958a5c1c32a8ee933a6783 (patch) | |
tree | 60608042871f3052ba1ca127542bcf9f6c52655f /src/amd | |
parent | 6bcd2af0863aea9d9d3519300a75820d012e1160 (diff) |
radv: Fix a stupid if in gather_intrinsic_info
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_shader_info.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index f7888ec6a6a..c2e005e63dd 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -270,15 +270,15 @@ gather_intrinsic_info(const nir_shader *nir, const nir_intrinsic_instr *instr, } mark_sampler_desc(var, info); - if (nir_intrinsic_image_deref_store || - nir_intrinsic_image_deref_atomic_add || - nir_intrinsic_image_deref_atomic_min || - nir_intrinsic_image_deref_atomic_max || - nir_intrinsic_image_deref_atomic_and || - nir_intrinsic_image_deref_atomic_or || - nir_intrinsic_image_deref_atomic_xor || - nir_intrinsic_image_deref_atomic_exchange || - nir_intrinsic_image_deref_atomic_comp_swap) { + if (instr->intrinsic == nir_intrinsic_image_deref_store || + instr->intrinsic == nir_intrinsic_image_deref_atomic_add || + instr->intrinsic == nir_intrinsic_image_deref_atomic_min || + instr->intrinsic == nir_intrinsic_image_deref_atomic_max || + instr->intrinsic == nir_intrinsic_image_deref_atomic_and || + instr->intrinsic == nir_intrinsic_image_deref_atomic_or || + instr->intrinsic == nir_intrinsic_image_deref_atomic_xor || + instr->intrinsic == nir_intrinsic_image_deref_atomic_exchange || + instr->intrinsic == nir_intrinsic_image_deref_atomic_comp_swap) { if (nir->info.stage == MESA_SHADER_FRAGMENT) info->ps.writes_memory = true; } |