From f34d76e93ebb7c2d3d82e1166375c12802b33039 Mon Sep 17 00:00:00 2001 From: "Juan A. Suarez Romero" Date: Thu, 1 Jun 2023 09:48:52 +0200 Subject: [PATCH] v3d: Z/S blit require Z/S formats Similar to checking that a z/s format can not be used for color blit with tile-based blit path, color format can not be used for z/s blit. Reviewed-by: Iago Toral Quiroga Signed-off-by: Juan A. Suarez Romero Part-of: --- src/gallium/drivers/v3d/v3d_blit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/v3d/v3d_blit.c b/src/gallium/drivers/v3d/v3d_blit.c index 5bda915133d..b7dc56a044e 100644 --- a/src/gallium/drivers/v3d/v3d_blit.c +++ b/src/gallium/drivers/v3d/v3d_blit.c @@ -461,6 +461,10 @@ v3d_tlb_blit(struct pipe_context *pctx, struct pipe_blit_info *info) util_format_is_depth_or_stencil(info->dst.format)) return; + if ((is_depth_blit || is_stencil_blit) && + !util_format_is_depth_or_stencil(info->dst.format)) + return; + if (!v3d_rt_format_supported(devinfo, info->src.format)) return;