summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-04-09 21:04:21 -0700
committerJason Ekstrand <[email protected]>2015-04-22 18:10:40 -0700
commit02f03fc0f111c484bd26497a85cbca7245400f68 (patch)
tree6f406c16aefcef5ec156473c9948ea2bc3a97f3b
parent94669cb53483bd58f33e439411af3cb5c006da79 (diff)
nir/tex: Use the correct return size for query_levels and lod
Reviewed-by: Connor Abbott <[email protected]>
-rw-r--r--src/glsl/nir/nir.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index c07a95552cd..41e2120846f 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -986,9 +986,12 @@ nir_tex_instr_dest_size(nir_tex_instr *instr)
return ret;
}
- case nir_texop_query_levels:
+ case nir_texop_lod:
return 2;
+ case nir_texop_query_levels:
+ return 1;
+
default:
if (instr->is_shadow && instr->is_new_style_shadow)
return 1;