vrend: Add caps for blend equation advanced

Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Elie Tournier 5 years ago
parent 662d74e3e2
commit f355e96e24
  1. 4
      src/virgl_hw.h
  2. 2
      src/vrend_renderer.c

@ -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 {

@ -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" ),

Loading…
Cancel
Save