From: Kenneth Graunke Date: Mon, 22 Jan 2018 02:08:15 +0000 (-0800) Subject: iris: hack to stop crashing on samplers for now X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41b32a4eda58edd2c27c43c7119fd02fca11c8b0;p=mesa.git iris: hack to stop crashing on samplers for now --- 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);