aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2020-02-19 08:03:47 -0800
committerCaio Marcelo de Oliveira Filho <[email protected]>2020-02-21 13:09:44 -0800
commitf58b384fbef0cbfd8349c5baa28f2973d079cd7f (patch)
treecaac758f1e0f47f39a6ca2c1c1836771d7e8433c /src/compiler
parent5f3cbbd958d14924dded0e0a0908127f6bfa006d (diff)
spirv: Be consistent when checking for Shader/Kernel
Use == and != instead of the ordered comparisons. Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3911>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/spirv/spirv_to_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 822e3289b65..ad2a4dab556 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -4183,7 +4183,7 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
b->options->temp_addr_format = nir_address_format_64bit_global;
break;
case SpvAddressingModelLogical:
- vtn_fail_if(b->shader->info.stage >= MESA_SHADER_STAGES,
+ vtn_fail_if(b->shader->info.stage == MESA_SHADER_KERNEL,
"AddressingModelLogical only supported for shaders");
b->physical_ptrs = false;
break;