From a0f42b89a15eda8b4f05572e7d0ed75ccce8a75a Mon Sep 17 00:00:00 2001 From: Elie Tournier Date: Wed, 8 Jul 2020 12:02:31 +0100 Subject: [PATCH] virgl: Encode barrier for blend_equation_advanced Signed-off-by: Elie Tournier Reviewed-by: Gert Wollny Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/virgl/virgl_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.30.2