projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c58c9f7
)
nir/spirv: fix MSVC syntax error in vtn_handle_texture()
author
Brian Paul
<brianp@vmware.com>
Fri, 30 Mar 2018 17:09:07 +0000
(11:09 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 30 Mar 2018 20:33:33 +0000
(14:33 -0600)
Reviewed-by: Neil Roberts <nroberts@igalia.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 2550ef0a233946684b957397ab3a4d3b734149c5..72ab426e8054f4011dfbfa3c231a0c8ed0dce408 100644
(file)
--- a/
src/compiler/spirv/spirv_to_nir.c
+++ b/
src/compiler/spirv/spirv_to_nir.c
@@
-2086,8
+2086,9
@@
vtn_handle_texture(struct vtn_builder *b, SpvOp opcode,
(*p++) = vtn_tex_src(b, w[idx++], nir_tex_src_offset);
if (operands & SpvImageOperandsConstOffsetsMask) {
+ nir_tex_src none = {0};
gather_offsets = vtn_ssa_value(b, w[idx++]);
- (*p++) =
(nir_tex_src){}
;
+ (*p++) =
none
;
}
if (operands & SpvImageOperandsSampleMask) {