From: Elie Tournier Date: Wed, 8 Jul 2020 11:02:31 +0000 (+0100) Subject: virgl: Encode barrier for blend_equation_advanced X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0f42b89a15eda8b4f05572e7d0ed75ccce8a75a;p=mesa.git virgl: Encode barrier for blend_equation_advanced Signed-off-by: Elie Tournier Reviewed-by: Gert Wollny Reviewed-by: Dave Airlie Part-of: --- diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index 150eed8b68c..e2698b9845e 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -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); }