crocus: Fall back if iris_map_copy_region can't create a staging resource
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 27 Apr 2022 08:38:10 +0000 (01:38 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 Aug 2022 01:43:08 +0000 (01:43 +0000)
commit1db51b5af59b4a77764c087db26d8b7c12c01551
treea7a123655b85a52ad36176f797f182e6c5dd79c5
parent4b6d527a5039bdaf355628830cd9cc40087f0af1
crocus: Fall back if iris_map_copy_region can't create a staging resource

If we can't create a staging resource, then fall back to direct CPU
mapping (possibly with a stall).  This is a rare case, but it could
happen for very large staging buffers.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18311>
src/gallium/drivers/crocus/crocus_resource.c