summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/include
diff options
context:
space:
mode:
authorNeha Bhende <[email protected]>2017-03-06 15:50:20 -0800
committerBrian Paul <[email protected]>2018-09-05 11:22:42 -0600
commit4639ef37638e34d8225c6ec0a1de864d06bdf951 (patch)
treed016c4ab7fba4185ae4b509e7a6de69d71a42017 /src/gallium/drivers/svga/include
parent6b3627da08997701b837dfb166eb0fb35a6312ee (diff)
svga/winsys: Add cap2 support in winsys
Reviewed-by: Charmaine Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/include')
-rw-r--r--src/gallium/drivers/svga/include/svga_reg.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/include/svga_reg.h b/src/gallium/drivers/svga/include/svga_reg.h
index 2661eef034f..bd1c6bea0b2 100644
--- a/src/gallium/drivers/svga/include/svga_reg.h
+++ b/src/gallium/drivers/svga/include/svga_reg.h
@@ -190,7 +190,9 @@ enum {
SVGA_REG_SCREENTARGET_MAX_WIDTH = 55,
SVGA_REG_SCREENTARGET_MAX_HEIGHT = 56,
SVGA_REG_MOB_MAX_SIZE = 57,
- SVGA_REG_TOP = 58, /* Must be 1 more than the last register */
+ SVGA_REG_BLANK_SCREEN_TARGETS = 58,
+ SVGA_REG_CAP2 = 59,
+ SVGA_REG_TOP = 60, /* Must be 1 more than the last register */
SVGA_PALETTE_BASE = 1024, /* Base of SVGA color map */
/* Next 768 (== 256*3) registers exist for colormap */
@@ -646,10 +648,28 @@ struct {
#define SVGA_CAP_GBOBJECTS 0x08000000
#define SVGA_CAP_CMD_BUFFERS_3 0x10000000
-#define SVGA_CAP_CMD_RESERVED 0x80000000
+#define SVGA_CAP_CAP2_REGISTER 0x80000000
/*
+ * The SVGA_REG_CAP2 register is an additional set of SVGA capability bits.
+ *
+ * SVGA_CAP2_GROW_OTABLE --
+ * Allow the GrowOTable/DXGrowCOTable commands.
+ *
+ * SVGA_CAP2_INTRA_SURFACE_COPY --
+ * Allow the IntraSurfaceCopy command.
+ *
+ * SVGA_CAP2_RESERVED --
+ * Reserve the last bit for extending the SVGA capabilities to some
+ * future mechanisms.
+ */
+#define SVGA_CAP2_NONE 0x00000000
+#define SVGA_CAP2_GROW_OTABLE 0x00000001
+#define SVGA_CAP2_INTRA_SURFACE_COPY 0x00000002
+#define SVGA_CAP2_RESERVED 0x80000000
+
+/*
* The Guest can optionally read some SVGA device capabilities through
* the backdoor with command BDOOR_CMD_GET_SVGA_CAPABILITIES before
* the SVGA device is initialized. The type of capability the guest