summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2020-06-05 12:30:05 -0500
committerMarge Bot <eric+marge@anholt.net>2020-11-09 17:17:39 +0000
commit72f1c9aef5d586ea18eb14388b59b9c8c3ce4dd9 (patch)
tree2f7e827c4ae857a3e2606be2303fbd0e66d0e76d
parentd22fafa20b704a0108b71b0c104e43e10f1ce0c2 (diff)
nir: Print formats on image intrinsics as text
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7509>
-rw-r--r--src/compiler/nir/nir_print.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index 9286636aed3..5cdf778b635 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -906,6 +906,12 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state)
break;
}
+ case NIR_INTRINSIC_FORMAT: {
+ enum pipe_format format = nir_intrinsic_format(instr);
+ fprintf(fp, " format=%s ", util_format_short_name(format));
+ break;
+ }
+
case NIR_INTRINSIC_DESC_TYPE: {
VkDescriptorType desc_type = nir_intrinsic_desc_type(instr);
fprintf(fp, " desc_type=%s", vulkan_descriptor_type_name(desc_type));