Revert "gallium/u_threaded: buffer sharedness tracking"
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 7 Jun 2023 08:28:23 +0000 (10:28 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 03:10:49 +0000 (03:10 +0000)
commit96cf4531e11eac8175671be990a02c7b5d17fb60
tree309ce2866643275373cf9128af3f7dabbe9def4d
parent965503ae220ba5a7bc6208d909f015a4315caa59
Revert "gallium/u_threaded: buffer sharedness tracking"

This reverts commit 8f159a8576efbb7bb3755d215a54b87c4c99a0d2.

This commit is correct but it exposes an existing bug: DISCARD_RANGE doesn't
work well with shared buffers.
So for now revert this commit as it's causing hangs on some APUs (see
https://gitlab.freedesktop.org/drm/amd/-/issues/2447) and flickering in
Metro Last Light Redux.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9108
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23492>
src/gallium/auxiliary/util/u_threaded_context.c
src/gallium/auxiliary/util/u_threaded_context.h