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 <itoral@igalia.com> Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23390>
This commit is contained in:

committed by
Marge Bot

parent
4c6a0f9cf1
commit
f34d76e93e
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user