iris: Return idle status from iris_invalidate_buffer, skip busy checks
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 30 Sep 2022 00:56:29 +0000 (17:56 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Dec 2022 21:46:03 +0000 (21:46 +0000)
commit50614d39fe778ae2d153487f59b48abf54103d94
treea938f07b9eec761bcc3a86a9826ccf8df6cd3418
parentf112add5544ca545656b96e82a78b7fd06c43bcc
iris: Return idle status from iris_invalidate_buffer, skip busy checks

If we successfully replace the backing storage for a buffer, we know
that it's idle, and the transfer map code can mark it unsynchronized
right away, letting us skip redundant resource_is_busy() checks.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19209>
src/gallium/drivers/iris/iris_resource.c