aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/gl_spirv.c
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-04-22 16:17:58 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-04-23 14:58:01 -0700
commit7b66d584a3c685bf70893fe5cda2432cf4fbfdfb (patch)
treeab690d14069f6e1cc030084130d93aec79c03454 /src/compiler/spirv/gl_spirv.c
parent0fb0058f18b24674583770c0c95600675ce8336e (diff)
spirv: Rename vtn_decoration literals to operands
Decorations (and ExecutionModes) can have not only literals, but also Ids associated with them. So rename the field to the more general name "Operand" used by the spec. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/spirv/gl_spirv.c')
-rw-r--r--src/compiler/spirv/gl_spirv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/spirv/gl_spirv.c b/src/compiler/spirv/gl_spirv.c
index edb635a09d9..55b4437cb13 100644
--- a/src/compiler/spirv/gl_spirv.c
+++ b/src/compiler/spirv/gl_spirv.c
@@ -75,7 +75,7 @@ spec_constant_decoration_cb(struct vtn_builder *b, struct vtn_value *v,
return;
for (unsigned i = 0; i < b->num_specializations; i++) {
- if (b->specializations[i].id == dec->literals[0]) {
+ if (b->specializations[i].id == dec->operands[0]) {
b->specializations[i].defined_on_module = true;
return;
}