From 41b32a4eda58edd2c27c43c7119fd02fca11c8b0 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 21 Jan 2018 18:08:15 -0800 Subject: [PATCH] iris: hack to stop crashing on samplers for now --- src/gallium/drivers/iris/iris_state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d85173ef5df..e9845270440 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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); -- 2.30.2