mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
iris: hack to stop crashing on samplers for now
This commit is contained in:
parent
dcfb06375a
commit
41b32a4eda
1 changed files with 3 additions and 0 deletions
|
|
@ -1535,6 +1535,9 @@ iris_upload_render_state(struct iris_context *ice,
|
|||
32, &offset);
|
||||
|
||||
for (int i = 0; i < count; i++) {
|
||||
// XXX: when we have a correct count, these better be bound
|
||||
if (!ice->state.samplers[stage][i])
|
||||
continue;
|
||||
memcpy(map, ice->state.samplers[stage][i]->sampler_state,
|
||||
4 * GENX(SAMPLER_STATE_length));
|
||||
map += GENX(SAMPLER_STATE_length);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue