Mesa (master): nir: print non-uniform tex fields.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 2 11:11:59 UTC 2020


Module: Mesa
Branch: master
Commit: 59c4fb9d72881bc6b7b72710e6cd71926d514abe
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=59c4fb9d72881bc6b7b72710e6cd71926d514abe

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Wed Jan  1 14:47:14 2020 +0100

nir: print non-uniform tex fields.

To ease debugging in the future.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at 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 | 8 ++++++++
 1 file changed, 8 insertions(+)

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




More information about the mesa-commit mailing list