vc4: Fix mask RGBA validation at YUV blit
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Mon, 25 Sep 2023 19:16:59 +0000 (21:16 +0200)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Wed, 27 Sep 2023 10:14:01 +0000 (12:14 +0200)
Solves regression on video players using GPU for
video decoding that just displays the video in green.

Fixes: d13da7782cd80 ("vc4: call blit paths in chain")
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25412>

src/gallium/drivers/vc4/vc4_blit.c

index 0a33704..1434c9c 100644 (file)
@@ -347,7 +347,7 @@ vc4_yuv_blit(struct pipe_context *pctx, struct pipe_blit_info *info)
         struct vc4_resource *dst = vc4_resource(info->dst.resource);
         bool ok;
 
-        if (info->mask & PIPE_MASK_RGBA)
+        if (!(info->mask & PIPE_MASK_RGBA))
                 return;
 
         if (src->tiled)