mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 04:30:25 +01:00
radeonsi: Handle NULL sampler states.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
23cd6c43da
commit
03dfa30596
1 changed files with 1 additions and 1 deletions
|
|
@ -2310,7 +2310,7 @@ static void si_bind_ps_sampler(struct pipe_context *ctx, unsigned count, void **
|
|||
si_pm4_sh_data_begin(pm4);
|
||||
for (i = 0; i < count; i++) {
|
||||
for (j = 0; j < Elements(rstates[i]->val); ++j) {
|
||||
si_pm4_sh_data_add(pm4, rstates[i]->val[j]);
|
||||
si_pm4_sh_data_add(pm4, rstates[i] ? rstates[i]->val[j] : 0);
|
||||
}
|
||||
}
|
||||
si_pm4_sh_data_end(pm4, R_00B038_SPI_SHADER_USER_DATA_PS_2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue