mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
radeonsi: Keep around copies of original sampler states.
Fixes crashes when restoring sampler states after blits.
This commit is contained in:
parent
1deb2be2b7
commit
8969de7e98
1 changed files with 2 additions and 0 deletions
|
|
@ -1349,6 +1349,8 @@ static void evergreen_bind_ps_sampler(struct pipe_context *ctx, unsigned count,
|
|||
|
||||
rctx->ws->buffer_unmap(bo->cs_buf);
|
||||
|
||||
memcpy(rctx->ps_samplers.samplers, states, sizeof(void*) * count);
|
||||
|
||||
rstate->nregs = 0;
|
||||
va = r600_resource_va(ctx->screen, (void *)bo);
|
||||
r600_pipe_state_add_reg(rstate, R_00B038_SPI_SHADER_USER_DATA_PS_2, va, bo, RADEON_USAGE_READ);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue