mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2025-12-20 04:40:10 +01:00
dri2proto: add prime protocol support. (v2.1)
So we reserve bits 16->19 for offload device ids, this means we can have 6 offload devices, which is plenty for now, and we can bump this further later without fear. v2: I suck at maths, that is all. Fixed up the maths to match reality. v2.1: fix typo Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
652fe8d9dd
commit
fb9e933987
1 changed files with 5 additions and 0 deletions
|
|
@ -45,6 +45,11 @@
|
|||
#define DRI2BufferDepthStencil 9
|
||||
#define DRI2BufferHiz 10
|
||||
|
||||
/* keep bits 16 and above for prime IDs */
|
||||
#define DRI2DriverPrimeMask 7 /* 0 - 7 - allows for 6 devices*/
|
||||
#define DRI2DriverPrimeShift 16
|
||||
#define DRI2DriverPrimeId(x) (((x) >> DRI2DriverPrimeShift) & (DRI2DriverPrimeMask))
|
||||
|
||||
#define DRI2DriverDRI 0
|
||||
#define DRI2DriverVDPAU 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue