projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5c9955
)
nir/spirv: Put SSBO store writemasks in the right index
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 11 Dec 2015 02:54:42 +0000
(18:54 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 11 Dec 2015 02:54:44 +0000
(18:54 -0800)
It moved with the nir_intrinsic_load/store update.
src/glsl/nir/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv_to_nir.c
b/src/glsl/nir/spirv_to_nir.c
index 68edea0930997b333e236bcf25c6582017998c2c..e101e1edcb0c6fea6ec92228a8d693e58d1404f5 100644
(file)
--- a/
src/glsl/nir/spirv_to_nir.c
+++ b/
src/glsl/nir/spirv_to_nir.c
@@
-1319,7
+1319,7
@@
_vtn_block_store(struct vtn_builder *b, nir_intrinsic_op op,
if (glsl_type_is_vector_or_scalar(type->type)) {
nir_intrinsic_instr *store = nir_intrinsic_instr_create(b->shader, op);
store->num_components = glsl_get_vector_elements(type->type);
- store->const_index[
1
] = (1 << store->num_components) - 1;
+ store->const_index[
0
] = (1 << store->num_components) - 1;
store->src[0] = nir_src_for_ssa(src->def);
nir_ssa_def *res_index = nir_vulkan_resource_index(&b->nb,