projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4eae84
)
spirv: Initialize struct member offsets to -1
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 9 Jan 2019 00:19:33 +0000
(18:19 -0600)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 22 Jan 2019 16:42:56 +0000
(10:42 -0600)
This is the "no offset specified" value.
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
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 5013a9c30aedfa0220aa46e501bd36039320851d..6b01ad35a71365512848255c8a8f0caddd9f9f3b 100644
(file)
--- a/
src/compiler/spirv/spirv_to_nir.c
+++ b/
src/compiler/spirv/spirv_to_nir.c
@@
-1236,6
+1236,7
@@
vtn_handle_type(struct vtn_builder *b, SpvOp opcode,
.type = val->type->members[i]->type,
.name = ralloc_asprintf(b, "field%d", i),
.location = -1,
+ .offset = -1,
};
}