nir: Fix LOD source type for txf_ms instructions
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 17 Nov 2020 11:12:08 +0000 (12:12 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 25 Nov 2020 15:21:10 +0000 (16:21 +0100)
txf_ms takes an integer LOD, not a float.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7653>

src/compiler/nir/nir.h

index 486d277..9e7420f 100644 (file)
@@ -2456,6 +2456,7 @@ nir_tex_instr_src_type(const nir_tex_instr *instr, unsigned src)
       switch (instr->op) {
       case nir_texop_txs:
       case nir_texop_txf:
+      case nir_texop_txf_ms:
          return nir_type_int;
 
       default: