[virglrenderer-devel] [PATCH 1/4] add VIRGL_BIND_*-flags from mesa
Erik Faye-Lund
erik.faye-lund at collabora.com
Mon Jul 16 15:43:41 UTC 2018
Mesa have these in it's virgl_hw.h copy, and the values needs to
stay in sync between mesa and virglrenderer here. So let's add this
definition here, where it can be defined only once.
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
---
src/virgl_hw.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/virgl_hw.h b/src/virgl_hw.h
index 7a1ec0b..0c06a56 100644
--- a/src/virgl_hw.h
+++ b/src/virgl_hw.h
@@ -216,6 +216,21 @@ enum virgl_formats {
#define VIRGL_CAP_TEXTURE_VIEW (1 << 1)
#define VIRGL_CAP_SET_MIN_SAMPLES (1 << 2)
+/* virgl bind flags - these are compatible with mesa 10.5 gallium.
+ * but are fixed, no other should be passed to virgl either.
+ */
+#define VIRGL_BIND_DEPTH_STENCIL (1 << 0)
+#define VIRGL_BIND_RENDER_TARGET (1 << 1)
+#define VIRGL_BIND_SAMPLER_VIEW (1 << 3)
+#define VIRGL_BIND_VERTEX_BUFFER (1 << 4)
+#define VIRGL_BIND_INDEX_BUFFER (1 << 5)
+#define VIRGL_BIND_CONSTANT_BUFFER (1 << 6)
+#define VIRGL_BIND_DISPLAY_TARGET (1 << 7)
+#define VIRGL_BIND_STREAM_OUTPUT (1 << 11)
+#define VIRGL_BIND_CURSOR (1 << 16)
+#define VIRGL_BIND_CUSTOM (1 << 17)
+#define VIRGL_BIND_SCANOUT (1 << 18)
+
struct virgl_caps_bool_set1 {
unsigned indep_blend_enable:1;
unsigned indep_blend_func:1;
--
2.18.0.rc2
More information about the virglrenderer-devel
mailing list