r600: fix refcnt imbalance related to atomic_buffer_state
authorPatrick Lerda <patrick9876@free.fr>
Sat, 22 Apr 2023 11:18:58 +0000 (13:18 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 May 2023 04:55:01 +0000 (04:55 +0000)
commit4ca8be82d5727337bb742ad205f0e156b597c3a6
tree19bab092f106fd1abda8fe35dc7e439769a475f4
parent0937a02d96b96086bc5a8765485ceb908b402c80
r600: fix refcnt imbalance related to atomic_buffer_state

Indeed, these references are not freed.

For instance, this issue is triggered on an evergreen card with
"piglit/bin/shader_runner tests/spec/arb_shader_atomic_counter_ops/execution/all_touch_test.shader_test -auto -fbo"
while setting GALLIUM_REFCNT_LOG=refcnt.log.

Fixes: 06993e4ee350 ("r600: add support for hw atomic counters. (v3)")
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/22798>
src/gallium/drivers/r600/r600_pipe.c