iris: Fall back if iris_map_copy_region can't create a staging resource
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 27 Apr 2022 08:30:18 +0000 (01:30 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 Aug 2022 01:43:08 +0000 (01:43 +0000)
commitfcad737cbae384f1eca2a7c499e884a1e5e045cc
tree4c1a5cbaee3fd103d28120ab6d00085024ab16ef
parentd0c6f3d66b0e2e83b0b1c90ac16bc85ceeb5fc3a
iris: 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>
Tested-by: Mark Janes markjanes@swizzler.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18311>
src/gallium/drivers/iris/iris_resource.c