mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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:
parent
5f3cbbd958
commit
f58b384fbe
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue