virgl: Encode barrier for blend_equation_advanced
authorElie Tournier <tournier.elie@gmail.com>
Wed, 8 Jul 2020 11:02:31 +0000 (12:02 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 06:19:16 +0000 (06:19 +0000)
Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>

src/gallium/drivers/virgl/virgl_context.c

index 150eed8b68ca711309a0f9ea0f4d0c60ec1a2229..e2698b9845e06400a033fbcbc8ff294051395fa5 100644 (file)
@@ -1017,7 +1017,8 @@ virgl_texture_barrier(struct pipe_context *ctx, unsigned flags)
    struct virgl_context *vctx = virgl_context(ctx);
    struct virgl_screen *rs = virgl_screen(ctx->screen);
 
-   if (!(rs->caps.caps.v2.capability_bits & VIRGL_CAP_TEXTURE_BARRIER))
+   if (!(rs->caps.caps.v2.capability_bits & VIRGL_CAP_TEXTURE_BARRIER) &&
+       !(rs->caps.caps.v2.capability_bits_v2 & VIRGL_CAP_V2_BLEND_EQUATION))
       return;
    virgl_encode_texture_barrier(vctx, flags);
 }