nir/spirv: Handle the LOD parameter of OpImageQuerySizeLod

This commit is contained in:
Jason Ekstrand 2016-02-01 13:52:47 -08:00
parent b1a1623293
commit 499f7c2f0b

View file

@ -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) {