[virglrenderer-devel] [PATCH 7/7] renderer: expose TXQS capability to guest.
Dave Airlie
airlied at gmail.com
Fri Jul 20 00:05:14 UTC 2018
From: Dave Airlie <airlied at redhat.com>
This lets the guest know it can use the TXQS opcode
---
src/virgl_hw.h | 1 +
src/vrend_renderer.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/src/virgl_hw.h b/src/virgl_hw.h
index 6db90f5..042dc8c 100644
--- a/src/virgl_hw.h
+++ b/src/virgl_hw.h
@@ -221,6 +221,7 @@ enum virgl_formats {
#define VIRGL_CAP_TEXTURE_VIEW (1 << 1)
#define VIRGL_CAP_SET_MIN_SAMPLES (1 << 2)
#define VIRGL_CAP_COPY_IMAGE (1 << 3)
+#define VIRGL_CAP_TXQS (1 << 4)
struct virgl_caps_bool_set1 {
unsigned indep_blend_enable:1;
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index a791fd1..e48db49 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -7896,6 +7896,9 @@ void vrend_renderer_fill_caps(uint32_t set, uint32_t version,
if (gl_ver >= 43 || epoxy_has_gl_extension("GL_ARB_texture_view"))
caps->v2.capability_bits |= VIRGL_CAP_TEXTURE_VIEW;
+ if (gl_ver >= 45 || epoxy_has_gl_extension("GL_ARB_shader_texture_image_samples"))
+ caps->v2.capability_bits |= VIRGL_CAP_TXQS;
+
if (vrend_state.have_copy_image)
caps->v2.capability_bits |= VIRGL_CAP_COPY_IMAGE;
}
--
2.14.3
More information about the virglrenderer-devel
mailing list