summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-11-20 08:29:30 +1000
committerDave Airlie <[email protected]>2019-11-22 04:37:25 +1000
commitb62a925ad17abb5816764602166334493858cfe7 (patch)
tree41fed690c92ab40390c82ca2ba745742dc839f8f /src/compiler
parent1496e1164f52d4e0224e763b19ca65cc301a52ad (diff)
spirv: don't store 0 to cs.ptr_size for non kernel stages.
cs is a union so storing this there is wrong. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/spirv/spirv_to_nir.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index d0dc40aff92..0c1813b139d 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -4071,7 +4071,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
case SpvAddressingModelLogical:
vtn_fail_if(b->shader->info.stage >= MESA_SHADER_STAGES,
"AddressingModelLogical only supported for shaders");
- b->shader->info.cs.ptr_size = 0;
b->physical_ptrs = false;
break;
case SpvAddressingModelPhysicalStorageBuffer64EXT: