Mesa (19.0): nir/print: fix printing the image_array intrinsic index

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 11 03:34:48 UTC 2019


Module: Mesa
Branch: 19.0
Commit: 9987a3d448e2c250a8f24d3b80bf6b442fc0b915
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9987a3d448e2c250a8f24d3b80bf6b442fc0b915

Author: Karol Herbst <kherbst at redhat.com>
Date:   Thu Mar 28 23:50:54 2019 +0100

nir/print: fix printing the image_array intrinsic index

Fixes: 0de003be0363 ("nir: Add handle/index-based image intrinsics")

Signed-off-by: Karol Herbst <kherbst at redhat.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
(cherry picked from commit 6ffc72472cc15368f95b18c1362298dd651bc7f1)

---

 src/compiler/nir/nir_print.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index 80bc25fde9a..422249677b7 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -812,8 +812,8 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state)
          assert(dim < ARRAY_SIZE(dim_name) && dim_name[dim]);
          fprintf(fp, " image_dim=%s", dim_name[dim]);
       } else if (idx == NIR_INTRINSIC_IMAGE_ARRAY) {
-         bool array = nir_intrinsic_image_dim(instr);
-         fprintf(fp, " image_dim=%s", array ? "true" : "false");
+         bool array = nir_intrinsic_image_array(instr);
+         fprintf(fp, " image_array=%s", array ? "true" : "false");
       } else if (idx == NIR_INTRINSIC_DESC_TYPE) {
          VkDescriptorType desc_type = nir_intrinsic_desc_type(instr);
          fprintf(fp, " desc_type=%s", vulkan_descriptor_type_name(desc_type));




More information about the mesa-commit mailing list