mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
gallium/ddebug: fix sampler_states handling
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30587>
This commit is contained in:
parent
4e362f738f
commit
06d903920e
1 changed files with 3 additions and 3 deletions
|
|
@ -221,8 +221,8 @@ dd_context_bind_sampler_states(struct pipe_context *_pipe,
|
|||
struct dd_context *dctx = dd_context(_pipe);
|
||||
struct pipe_context *pipe = dctx->pipe;
|
||||
|
||||
memcpy(&dctx->draw_state.sampler_states[shader][start], states,
|
||||
sizeof(void*) * count);
|
||||
safe_memcpy(&dctx->draw_state.sampler_states[shader][start], states,
|
||||
sizeof(void*) * count);
|
||||
|
||||
if (states) {
|
||||
void *samp[PIPE_MAX_SAMPLERS];
|
||||
|
|
@ -528,7 +528,7 @@ dd_context_set_sampler_views(struct pipe_context *_pipe,
|
|||
|
||||
safe_memcpy(&dctx->draw_state.sampler_views[shader][start], views,
|
||||
sizeof(views[0]) * num);
|
||||
safe_memcpy(&dctx->draw_state.sampler_views[shader][start + num], views,
|
||||
safe_memcpy(&dctx->draw_state.sampler_views[shader][start + num], NULL,
|
||||
sizeof(views[0]) * unbind_num_trailing_slots);
|
||||
pipe->set_sampler_views(pipe, shader, start, num, take_ownership,
|
||||
unbind_num_trailing_slots, views);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue