projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1496e11
)
spirv: don't store 0 to cs.ptr_size for non kernel stages.
author
Dave Airlie
<airlied@redhat.com>
Tue, 19 Nov 2019 22:29:30 +0000
(08:29 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 21 Nov 2019 18:37:25 +0000
(
04:37
+1000)
cs is a union so storing this there is wrong.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/compiler/spirv/spirv_to_nir.c
b/src/compiler/spirv/spirv_to_nir.c
index d0dc40aff922c663551741e3ecf393bafdc08944..0c1813b139dce9df0f258e0f4f1eec0414f61812 100644
(file)
--- 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: