diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-01-13 13:50:08 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-01-13 16:30:30 +0000 |
commit | 3cfde9f04362a858ddfe7990109147e32eed516c (patch) | |
tree | 5e92bd3109752b42a032f6b87fc9f0349e223acf /src/compat-api.h | |
parent | 1cffbd9a8e96642bdbabf4e40829a5f1473b5bf9 (diff) | |
download | xorg-driver-xf86-video-intel-3cfde9f04362a858ddfe7990109147e32eed516c.tar.gz |
sna: Only instantiate the frontbuffer on the GPU if used
If we are a PRIME slave, we never need to allocate any memory for the
frontbuffer, so skip the forced allocation during modesets.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/compat-api.h')
-rw-r--r-- | src/compat-api.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compat-api.h b/src/compat-api.h index d09e1fb3..9367d646 100644 --- a/src/compat-api.h +++ b/src/compat-api.h @@ -223,4 +223,10 @@ static inline void FreePixmap(PixmapPtr pixmap) dstx, dsty) #endif +#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,12,99,901,0) +#define isGPU(S) (S)->is_gpu +#else +#define isGPU(S) 0 +#endif + #endif |