[Mesa-dev] [PATCH 03/12] nir/tex: Use the correct return size for query_levels and lod

Jason Ekstrand jason at jlekstrand.net
Fri Apr 10 17:48:46 PDT 2015


---
 src/glsl/nir/nir.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 9e62f13..5a7f581 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -985,9 +985,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;
-- 
2.3.5



More information about the mesa-dev mailing list