nir/tex: Use the correct return size for query_levels and lod
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Apr 2015 04:04:21 +0000 (21:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 23 Apr 2015 01:10:40 +0000 (18:10 -0700)
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.h

index c07a955..41e2120 100644 (file)
@@ -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;