diff options
author | Elie Tournier <[email protected]> | 2020-07-08 12:02:31 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-17 06:19:16 +0000 |
commit | a0f42b89a15eda8b4f05572e7d0ed75ccce8a75a (patch) | |
tree | d030349d6d00d4f0a12a4a45433e583bc670d3a5 | |
parent | a026364b55ea4c804d1a725ed4d2028d0f616a37 (diff) |
virgl: Encode barrier for blend_equation_advanced
Signed-off-by: Elie Tournier <[email protected]>
Reviewed-by: Gert Wollny <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |