mesa/src
Patrick Lerda 23c003b88c util/blitter: fix util_blitter_clear_buffer() refcnt imbalance
Indeed, the vertex state was restored using a specific
condition at the util_blitter_restore_vertex_states()
level. This change ensures that the condition is the
same when the vertex state is saved.

The function util_blitter_clear_buffer() is only called
by the r600 driver on pre-evergreen gpus.

This issue is triggered on a rv770 gpu with "piglit/bin/fbo-1d -auto -fbo"
or "piglit/bin/draw_buffers_gles2 -auto -fbo"
while setting GALLIUM_REFCNT_LOG=refcnt.log.

Fixes: 5f566faa46 ("radeonsi: don't save and restore vertex buffers and elements for u_blitter")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23721>
2023-06-21 03:36:35 +00:00
..
amd aco/gfx11: schedule for VMEM store clauses 2023-06-20 18:37:34 +00:00
android_stub util/log: improve logger_android 2023-02-22 17:55:40 +00:00
asahi compiler: Move from nir_scope to mesa_scope 2023-06-19 23:29:26 +00:00
broadcom v3d: clear alpha-only as red-only 2023-06-20 07:45:31 +00:00
c11 c11: Improve mtx_timedlock to use timespec_get instead of time(NULL) 2023-06-20 00:05:48 +00:00
compiler nir/print: Print whether the shader is internal or not 2023-06-21 00:01:10 +00:00
drm-shim drm-shim: Avoid assertion fail if someone does close(-1). 2023-06-01 01:50:41 +00:00
egl egl: return correct error for EGL_KHR_image_pixmap 2023-06-16 18:29:26 +00:00
etnaviv ci/etnaviv: add asan run 2023-06-08 22:30:30 +00:00
freedreno freedreno: Fixes error: passing argument 1 of ‘pthread_mutex_unlock’ from incompatible pointer type in tu_pipeline.c 2023-06-20 00:05:48 +00:00
gallium util/blitter: fix util_blitter_clear_buffer() refcnt imbalance 2023-06-21 03:36:35 +00:00
gbm gbm: drop unnecessary vulkan dependency 2023-02-23 18:31:22 +00:00
getopt
glx Revert "glx: Remove pointless GLX_INTEL_swap_event paranoia" 2023-06-12 15:35:45 +00:00
gtest gtest: Update to 1.13.0 2023-05-14 11:09:02 +00:00
imagination pvr: add missing frag to geom dependency for jobs targetting same render target 2023-06-15 16:35:21 +00:00
imgui
intel intel/compiler: Respect NIR_DEBUG_PRINT_INTERNAL flag 2023-06-21 00:01:10 +00:00
loader dri3: only invalidate drawables on geometry change if geometry has changed 2023-06-15 12:22:24 +00:00
mapi mapi: Delete execmem support code. 2023-06-12 21:37:37 +00:00
mesa compiler: Move spirv into a module of its own 2023-06-20 16:18:08 +00:00
microsoft compiler: Move spirv into a module of its own 2023-06-20 16:18:08 +00:00
nouveau compiler: Move from nir_scope to mesa_scope 2023-06-19 23:29:26 +00:00
panfrost compiler: Move from nir_scope to mesa_scope 2023-06-19 23:29:26 +00:00
tool meson: remove needless c++17-overrides 2023-05-19 12:45:31 +00:00
util zink, drirc: Add Borderlands 2 workaround to fix spir-v 1.6 translated discard 2023-06-20 08:48:02 +00:00
virtio venus: enable VK_EXT_color_write_enable 2023-06-08 21:08:13 +00:00
vulkan compiler: Move spirv into a module of its own 2023-06-20 16:18:08 +00:00
.clang-format treewide: Add a .clang-format file 2023-05-29 21:06:12 +00:00
meson.build hgl: remove 2023-02-18 00:44:43 +00:00