spirv: Be consistent when checking for Shader/Kernel

Use == and != instead of the ordered comparisons.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3911>
This commit is contained in:
Caio Marcelo de Oliveira Filho 2020-02-19 08:03:47 -08:00
parent 5f3cbbd958
commit f58b384fbe

View file

@ -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;