From 59c4fb9d72881bc6b7b72710e6cd71926d514abe Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Wed, 1 Jan 2020 14:47:14 +0100 Subject: nir: print non-uniform tex fields. To ease debugging in the future. Reviewed-by: Caio Marcelo de Oliveira Filho Tested-by: Marge Bot Part-of: --- src/compiler/nir/nir_print.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/compiler/nir/nir_print.c') diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 9ec6dcfc947..12d132f7c61 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -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 -- cgit v1.2.3