diff options
author | Kenneth Graunke <[email protected]> | 2018-08-23 02:15:12 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | e4d22b16c8470f20d69dc09e7fa9851324217a44 (patch) | |
tree | da61c663425af7a85c2e4d6015ed9860bb8d1ca0 /src | |
parent | b3bb33c4c13feb45a402ea72549a731fce2a73ae (diff) |
iris: fix sampler state setting
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 055fddff82c..bfa52e3806c 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1170,8 +1170,9 @@ iris_bind_sampler_states(struct pipe_context *ctx, * in the dynamic state memory zone, so we can point to it via the * 3DSTATE_SAMPLER_STATE_POINTERS_* commands. */ - void *map = upload_state(ice->state.dynamic_uploader, &shs->sampler_table, - count * 4 * GENX(SAMPLER_STATE_length), 32); + uint32_t *map = + upload_state(ice->state.dynamic_uploader, &shs->sampler_table, + count * 4 * GENX(SAMPLER_STATE_length), 32); if (unlikely(!map)) return; @@ -1202,7 +1203,7 @@ iris_bind_sampler_states(struct pipe_context *ctx, } for (uint32_t j = 0; j < GENX(SAMPLER_STATE_length); j++) - ((uint32_t *) map)[j] = state->sampler_state[j] | dynamic[j]; + map[j] = state->sampler_state[j] | dynamic[j]; } map += GENX(SAMPLER_STATE_length); |