[virglrenderer-devel] [PATCH 3/3] expose FBFETCH-cap if supported
Erik Faye-Lund
erik.faye-lund at collabora.com
Fri Jul 27 07:51:56 UTC 2018
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
---
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 51a3255..46a9869 100644
--- a/src/virgl_hw.h
+++ b/src/virgl_hw.h
@@ -222,6 +222,7 @@ enum virgl_formats {
#define VIRGL_CAP_SET_MIN_SAMPLES (1 << 2)
#define VIRGL_CAP_COPY_IMAGE (1 << 3)
#define VIRGL_CAP_TGSI_PRECISE (1 << 4)
+#define VIRGL_CAP_TGSI_FBFETCH (1 << 5)
/* virgl bind flags - these are compatible with mesa 10.5 gallium.
* but are fixed, no other should be passed to virgl either.
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 16013cc..7020129 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -7803,6 +7803,9 @@ void vrend_renderer_fill_caps(uint32_t set, UNUSED uint32_t version,
if (has_feature(feat_copy_image))
caps->v2.capability_bits |= VIRGL_CAP_COPY_IMAGE;
+
+ if (epoxy_has_gl_extension("GL_EXT_shader_framebuffer_fetch"))
+ caps->v2.capability_bits |= VIRGL_CAP_TGSI_FBFETCH;
}
GLint64 vrend_renderer_get_timestamp(void)
--
2.18.0
More information about the virglrenderer-devel
mailing list