From 8fcc75dafec9001bfcb2d3bbf98a39a5838c39b2 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 20 Jan 2012 10:34:58 +0000 Subject: prime --- dri2tokens.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3