From f355e96e24f6b604e00992ae19c1f96702202c03 Mon Sep 17 00:00:00 2001 From: Elie Tournier Date: Tue, 2 Jun 2020 09:47:25 +0100 Subject: [PATCH] vrend: Add caps for blend equation advanced Signed-off-by: Elie Tournier Reviewed-by: Gert Wollny --- src/virgl_hw.h | 4 ++++ src/vrend_renderer.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/virgl_hw.h b/src/virgl_hw.h index d044539..58dafd9 100644 --- a/src/virgl_hw.h +++ b/src/virgl_hw.h @@ -405,6 +405,9 @@ enum virgl_formats { #define VIRGL_CAP_CLEAR_TEXTURE (1 << 30) #define VIRGL_CAP_ARB_BUFFER_STORAGE (1 << 31) +/* These are used by the capability_bits_v2 field in virgl_caps_v2. */ +#define VIRGL_CAP_V2_BLEND_EQUATION (1 << 0) + /* virgl bind flags - these are compatible with mesa 10.5 gallium. * but are fixed, no other should be passed to virgl either. */ @@ -555,6 +558,7 @@ struct virgl_caps_v2 { uint32_t host_feature_check_version; struct virgl_supported_format_mask supported_readback_formats; struct virgl_supported_format_mask scanout; + uint32_t capability_bits_v2; }; union virgl_caps { diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 9d46587..d476625 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -108,6 +108,7 @@ enum features_id feat_barrier, feat_bind_vertex_buffers, feat_bit_encoding, + feat_blend_equation_advanced, feat_clear_texture, feat_clip_control, feat_compute_shader, @@ -203,6 +204,7 @@ static const struct { FEAT(barrier, 42, 31, NULL), FEAT(bind_vertex_buffers, 44, UNAVAIL, NULL), FEAT(bit_encoding, 33, UNAVAIL, "GL_ARB_shader_bit_encoding" ), + FEAT(blend_equation_advanced, UNAVAIL, 32, "GL_KHR_blend_equation_advanced" ), FEAT(clear_texture, 44, UNAVAIL, "GL_ARB_clear_texture", "GL_EXT_clear_texture"), FEAT(clip_control, 45, UNAVAIL, "GL_ARB_clip_control", "GL_EXT_clip_control"), FEAT(compute_shader, 43, 31, "GL_ARB_compute_shader" ),