projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
776b911
)
nir: Fix assert in print_intrinsic_instr().
author
Józef Kucia
<joseph.kucia@gmail.com>
Mon, 26 Nov 2018 15:04:30 +0000
(16:04 +0100)
committer
Lionel Landwerlin
<lionel.g.landwerlin@intel.com>
Thu, 29 Nov 2018 16:29:37 +0000
(16:29 +0000)
Signed-off-by: Józef Kucia <joseph.kucia@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir_print.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_print.c
b/src/compiler/nir/nir_print.c
index 8077a29b1847ab9c66e3a511c2e9b62c69be9387..7124ff09e825fabfe62fa8c965b7cdb82c360e4e 100644
(file)
--- 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);