expose ARB_texture_view support to guest

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Dave Airlie 6 years ago
parent 937e724023
commit 285920a388
  1. 1
      src/virgl_hw.h
  2. 3
      src/vrend_renderer.c

@ -214,6 +214,7 @@ enum virgl_formats {
/* These are used by the capability_bits field in virgl_caps_v2. */
#define VIRGL_CAP_NONE 0
#define VIRGL_CAP_TGSI_INVARIANT (1 << 0)
#define VIRGL_CAP_TEXTURE_VIEW (1 << 1)
struct virgl_caps_bool_set1 {
unsigned indep_blend_enable:1;

@ -7541,6 +7541,9 @@ void vrend_renderer_fill_caps(uint32_t set, uint32_t version,
}
caps->v2.capability_bits |= VIRGL_CAP_TGSI_INVARIANT;
if (gl_ver >= 43 || epoxy_has_gl_extension("GL_ARB_texture_view"))
caps->v2.capability_bits |= VIRGL_CAP_TEXTURE_VIEW;
}
GLint64 vrend_renderer_get_timestamp(void)

Loading…
Cancel
Save