OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4110bc4
)
spirv/nir: initialize offset on the nir var at vtn_create_variable
author
Alejandro Piñeiro
<apinheiro@igalia.com>
Sun, 5 Nov 2017 15:19:43 +0000
(16:19 +0100)
committer
Alejandro Piñeiro
<apinheiro@igalia.com>
Tue, 3 Jul 2018 10:41:46 +0000
(12:41 +0200)
This is convenient when dealing with atomic counter uniforms. The
alternative would be doing that at vtn_handle_atomics.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/spirv/vtn_variables.c
patch
|
blob
|
history
diff --git
a/src/compiler/spirv/vtn_variables.c
b/src/compiler/spirv/vtn_variables.c
index
ae5122b
..
b7c9e6f
100644
(file)
--- a/
src/compiler/spirv/vtn_variables.c
+++ b/
src/compiler/spirv/vtn_variables.c
@@
-1788,6
+1788,7
@@
vtn_create_variable(struct vtn_builder *b, struct vtn_value *val,
var->var->data.explicit_binding = var->explicit_binding;
var->var->data.descriptor_set = var->descriptor_set;
var->var->data.index = var->input_attachment_index;
+ var->var->data.offset = var->offset;
if (glsl_type_is_image(without_array->type))
var->var->data.image.format = without_array->image_format;