Mesa (master): nir: Fix assert in print_intrinsic_instr().
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Nov 29 16:33:26 UTC 2018
Module: Mesa
Branch: master
Commit: 94bfb8bf386b560e8e6095727ed1cf08522a027d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=94bfb8bf386b560e8e6095727ed1cf08522a027d
Author: Józef Kucia <joseph.kucia at gmail.com>
Date: Mon Nov 26 16:04:30 2018 +0100
nir: Fix assert in print_intrinsic_instr().
Signed-off-by: Józef Kucia <joseph.kucia at gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/compiler/nir/nir_print.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index 8077a29b18..7124ff09e8 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -721,7 +721,7 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state)
[GLSL_SAMPLER_DIM_SUBPASS_MS] = "Subpass-MSAA",
};
enum glsl_sampler_dim dim = nir_intrinsic_image_dim(instr);
- assert(dim < ARRAY_SIZE(dim_name) && dim_name[idx]);
+ 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);
More information about the mesa-commit
mailing list