aux/tc: use renderpass tracking to optimize texture_subdata calls
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 8 Mar 2023 21:42:28 +0000 (16:42 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Mar 2023 00:53:28 +0000 (00:53 +0000)
commit43facca1958d101b7e083a1c62bae985a3154ef0
tree6909c2db4e02c7c7b5ee451e14a045ce34f646f6
parentecf29228d0b036f9286295d3900d1afd2589f38f
aux/tc: use renderpass tracking to optimize texture_subdata calls

if it's known that a renderpass is active and the driver wants to do
renderpass optimizing, help out by not forcing a sync and instead doing
what the driver would do: create a staging buffer and copy it to the
image

this requires that the driver already handles buffer -> image copies
with resource_copy_region

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21801>
src/gallium/auxiliary/util/u_threaded_context.c