mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radeonsi: Properly handle NULL sampler views.
Fixes piglit shaders/glsl-fs-uniform-sampler-array and many other similar tests. In fact, I just completed a piglit quick-driver.tests run without any GPU lockups or even VM protection faults. Yay! Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
d67d8e2471
commit
7443e4e697
1 changed files with 3 additions and 3 deletions
|
|
@ -2268,10 +2268,10 @@ static void si_set_ps_sampler_view(struct pipe_context *ctx, unsigned count,
|
|||
struct r600_resource_texture *tex = (void *)resource[i]->base.texture;
|
||||
|
||||
si_pm4_add_bo(pm4, &tex->resource, RADEON_USAGE_READ);
|
||||
}
|
||||
|
||||
for (j = 0; j < Elements(resource[i]->state); ++j) {
|
||||
si_pm4_sh_data_add(pm4, resource[i]->state[j]);
|
||||
}
|
||||
for (j = 0; j < Elements(resource[i]->state); ++j) {
|
||||
si_pm4_sh_data_add(pm4, resource[i] ? resource[i]->state[j] : 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue