From 499f7c2f0b2780bc51a0301816d2b91c89d484c0 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 1 Feb 2016 13:52:47 -0800 Subject: nir/spirv: Handle the LOD parameter of OpImageQuerySizeLod --- src/glsl/nir/spirv/spirv_to_nir.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glsl/nir') 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) { -- cgit v1.2.3