nir: print non-uniform tex fields.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 1 Jan 2020 13:47:14 +0000 (14:47 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 2 Jan 2020 10:42:33 +0000 (11:42 +0100)
To ease debugging in the future.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3246>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3246>

src/compiler/nir/nir_print.c

index 9ec6dcfc9476d99ed4922ba350b4c2115fbf9c0f..12d132f7c6121c4ea86f6675814d7a34cd818479 100644 (file)
@@ -1135,6 +1135,14 @@ print_tex_instr(nir_tex_instr *instr, print_state *state)
          fprintf(fp, ", %u (sampler)", instr->sampler_index);
       }
    }
+
+   if (instr->texture_non_uniform) {
+      fprintf(fp, ", texture non-uniform");
+   }
+
+   if (instr->sampler_non_uniform) {
+      fprintf(fp, ", sampler non-uniform");
+   }
 }
 
 static void