projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f8a661
)
radeonsi/nir: fix assertion in si_nir_load_sampler_desc
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 7 Aug 2019 01:08:57 +0000
(21:08 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 19 Aug 2019 21:23:38 +0000
(17:23 -0400)
src/gallium/drivers/radeonsi/si_shader_nir.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_shader_nir.c
b/src/gallium/drivers/radeonsi/si_shader_nir.c
index 0aa17e7a37c465a61134cbd2392dc6ed7765d527..9c0379a997be7ffd6be70f5d979481510bfda113 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_shader_nir.c
+++ b/
src/gallium/drivers/radeonsi/si_shader_nir.c
@@
-1129,7
+1129,7
@@
si_nir_load_sampler_desc(struct ac_shader_abi *abi,
}
unsigned num_slots = image ? ctx->num_images : ctx->num_samplers;
- assert(const_index < num_slots);
+ assert(const_index < num_slots
|| dynamic_index
);
LLVMValueRef list = LLVMGetParam(ctx->main_fn, ctx->param_samplers_and_images);
LLVMValueRef index = LLVMConstInt(ctx->ac.i32, const_index, false);