aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_print.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2020-01-01 14:47:14 +0100
committerBas Nieuwenhuizen <[email protected]>2020-01-02 11:42:33 +0100
commit59c4fb9d72881bc6b7b72710e6cd71926d514abe (patch)
tree55a75fa719e7e6a5ac213b7c0660128e149c6692 /src/compiler/nir/nir_print.c
parent69bdc1c5fccbd9c0ef5354675b069ffb1383769e (diff)
nir: print non-uniform tex fields.
To ease debugging in the future. Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3246> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3246>
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r--src/compiler/nir/nir_print.c8
1 files changed, 8 insertions, 0 deletions
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