From: Jason Ekstrand Date: Mon, 1 Feb 2016 21:52:47 +0000 (-0800) Subject: nir/spirv: Handle the LOD parameter of OpImageQuerySizeLod X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=499f7c2f0b2780bc51a0301816d2b91c89d484c0;p=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) {