diff options
author | Patrick Lerda <patrick9876@free.fr> | 2023-06-29 12:52:04 +0200 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2023-07-15 22:47:56 +0100 |
commit | 62537eecff592b7ecad1a1a4b1bf96b7cb21b07e (patch) | |
tree | 84339d24baa8d5e24ec4cce02f68d4694dfd6fef /src | |
parent | 082154ca1e5a60ead6b184232ab7975f1cb9ebad (diff) | |
download | mesa-62537eecff592b7ecad1a1a4b1bf96b7cb21b07e.tar.gz mesa-62537eecff592b7ecad1a1a4b1bf96b7cb21b07e.tar.bz2 mesa-62537eecff592b7ecad1a1a4b1bf96b7cb21b07e.zip |
util/blitter: revert util_blitter_clear_buffer()
The previous change was creating a regression.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9252
Fixes: 23c003b88c54 ("util/blitter: fix util_blitter_clear_buffer() refcnt imbalance")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23923>
(cherry picked from commit 9ca1bb3cf8f2f4d9378ceb8ae39e6f853fb900b0)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index bed48ee8cb5..5552e04c7c4 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -2634,10 +2634,7 @@ void util_blitter_clear_buffer(struct blitter_context *blitter, blitter_check_saved_vertex_states(ctx); blitter_disable_render_cond(ctx); - if (ctx->base.saved_vertex_buffer.buffer.resource) { - pipe->set_vertex_buffers(pipe, ctx->base.vb_slot, 1, 0, false, &vb); - } - + pipe->set_vertex_buffers(pipe, ctx->base.vb_slot, 1, 0, false, &vb); pipe->bind_vertex_elements_state(pipe, ctx->velem_state_readbuf[num_channels-1]); bind_vs_pos_only(ctx, num_channels); |