summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJózef Kucia <[email protected]>2018-11-26 16:04:30 +0100
committerLionel Landwerlin <[email protected]>2018-11-29 16:29:37 +0000
commit94bfb8bf386b560e8e6095727ed1cf08522a027d (patch)
treeb7a4ae8af6c57440fce0d1a8f6e75f35030ebf07 /src
parent776b911365695a1836274867df4b41f6429d11a2 (diff)
nir: Fix assert in print_intrinsic_instr().
Signed-off-by: Józef Kucia <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index 8077a29b184..7124ff09e82 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);