From 00c4882bc924d4ae4b90b5c8b01cc7dfc899d815 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 6 Sep 2022 11:08:46 +0200 Subject: [PATCH] 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 Reviewed-by: Emma Anholt Tested-by: Eric Engestrom Part-of: --- 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; }