We do this in an earlier loop. This was just reading things out of the
array, and saving them back over the same array...but in the wrong slots
for (int i = 0; i < count; i++) {
struct iris_sampler_state *state = ice->state.samplers[stage][i];
- /* Save a pointer to the iris_sampler_state, a few fields need
- * to inform draw-time decisions.
- */
- ice->state.samplers[stage][start + i] = state;
-
if (!state) {
memset(map, 0, 4 * GENX(SAMPLER_STATE_length));
} else if (!state->needs_border_color) {