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:
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
ed6ad6d
..
c002457
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) {