summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-01-20 10:34:58 +0000
committerDave Airlie <airlied@redhat.com>2012-06-06 10:14:42 +0100
commit8fcc75dafec9001bfcb2d3bbf98a39a5838c39b2 (patch)
tree82ca3dd7ff531773d8c9f558c93a243d1bc2bb53
parent652fe8d9dd2393127b11741ba63cb95a83ad454f (diff)
primeprime
-rw-r--r--dri2tokens.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dri2tokens.h b/dri2tokens.h
index 16c9008..872c179 100644
--- a/dri2tokens.h
+++ b/dri2tokens.h
@@ -45,6 +45,11 @@
#define DRI2BufferDepthStencil 9
#define DRI2BufferHiz 10
+/* keep bits 16 and above for prime IDs */
+#define DRI2DriverMaxPrime 8 /* 0 - 7 */
+#define DRI2DriverPrimeShift 16
+#define DRI2DriverPrimeId(x) (((x) >> DRI2DriverPrimeShift) & (DRI2DriverMaxPrime-1))
+
#define DRI2DriverDRI 0
#define DRI2DriverVDPAU 1