From: Jason Ekstrand Date: Mon, 1 Feb 2016 21:52:47 +0000 (-0800) Subject: nir/spirv: Handle the LOD parameter of OpImageQuerySizeLod X-Git-Tag: android-x86-6.0-r1~2228^2~404 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=499f7c2f0b2780bc51a0301816d2b91c89d484c0;p=android-x86%2Fexternal-mesa.git nir/spirv: Handle the LOD parameter of OpImageQuerySizeLod --- diff --git a/src/glsl/nir/spirv/spirv_to_nir.c b/src/glsl/nir/spirv/spirv_to_nir.c index ed6ad6d7e63..c002457ce12 100644 --- 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) {