diff options
author | Jason Ekstrand <[email protected]> | 2016-02-01 13:52:47 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-01 14:03:05 -0800 |
commit | 499f7c2f0b2780bc51a0301816d2b91c89d484c0 (patch) | |
tree | e91f0377c8edb87c09783c743ca9c04871a8c425 /src/glsl/nir | |
parent | b1a16232932058f1b3db478964098c3a7c76e8d4 (diff) |
nir/spirv: Handle the LOD parameter of OpImageQuerySizeLod
Diffstat (limited to 'src/glsl/nir')
-rw-r--r-- | src/glsl/nir/spirv/spirv_to_nir.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |