projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1a1623
)
nir/spirv: Handle the LOD parameter of OpImageQuerySizeLod
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 1 Feb 2016 21:52:47 +0000
(13:52 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 1 Feb 2016 22:03:05 +0000
(14:03 -0800)
src/glsl/nir/spirv/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv/spirv_to_nir.c
b/src/glsl/nir/spirv/spirv_to_nir.c
index ed6ad6d7e63c5183fef7c6bcb219666c2841398b..c002457ce12d5fad42babaf94952a2f45e4e6a38 100644
(file)
--- a/
src/glsl/nir/spirv/spirv_to_nir.c
+++ b/
src/glsl/nir/spirv/spirv_to_nir.c
@@
-1237,6
+1237,10
@@
vtn_handle_texture(struct vtn_builder *b, SpvOp opcode,
break;
}
+ /* For OpImageQuerySizeLod, we always have an LOD */
+ if (opcode == SpvOpImageQuerySizeLod)
+ (*p++) = vtn_tex_src(b, w[idx++], nir_tex_src_lod);
+
/* Figure out the base texture operation */
nir_texop texop;
switch (opcode) {