Module: Mesa
Branch: main
Commit: 00c4882bc924d4ae4b90b5c8b01cc7dfc899d815
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=00c4882bc924d4ae4b90b5c8b01cc7dfc899d815

Author: Erik Faye-Lund <[email protected]>
Date:   Tue Sep  6 11:08:46 2022 +0200

vc4: do not attempt to do deep tiled blits

We only copy a single layer, so let's not even try to support deep
blits here.

Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Emma Anholt <[email protected]>
Tested-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18427>

---

 src/gallium/drivers/vc4/vc4_blit.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_blit.c 
b/src/gallium/drivers/vc4/vc4_blit.c
index 558bbb7780d..d9a7ce54414 100644
--- a/src/gallium/drivers/vc4/vc4_blit.c
+++ b/src/gallium/drivers/vc4/vc4_blit.c
@@ -69,7 +69,9 @@ vc4_tile_blit(struct pipe_context *pctx, const struct 
pipe_blit_info *info)
         if (info->dst.box.x != info->src.box.x ||
             info->dst.box.y != info->src.box.y ||
             info->dst.box.width != info->src.box.width ||
-            info->dst.box.height != info->src.box.height) {
+            info->dst.box.height != info->src.box.height ||
+            info->dst.box.depth != info->src.box.depth ||
+            info->dst.box.depth != 1) {
                 return false;
         }
 

Reply via email to