st/mesa: optimize glCopyImageSubData for 3D and array textures

radeonsi is significantly faster if we use a 3D copy instead of copying
layers separately. (about 2-10x faster)

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40071>
This commit is contained in:
Marek Olšák 2026-02-23 12:34:27 -05:00 committed by Marge Bot
parent 03d2cc2b2a
commit 857f5a8e9c
6 changed files with 48 additions and 32 deletions

View file

@ -677,6 +677,7 @@ Capability about the features and limits of the driver/GPU.
* ``pipe_caps.clear_masked``: Whether ``clear`` can accept a color_clear_mask for all color buffers and stencil_clear_mask.
* ``pipe_caps.prefer_persp``: Whether the driver prefers perspective correct
or linear interpolation. This is a performance hint.
* ``pipe_caps.blit_3d``: Whether pipe_context::blit can have depth > 1.
.. _pipe_shader_caps: