From da08316605b26830b4d8f8fb2d9e69471cdc80ab Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 31 Dec 2013 00:07:42 -0800 Subject: glamor: Add support for DRI3. The render-nodes case is untested. v2: Add a flag for wayland to suppress the native DRI3 support. Wayland isn't running as a master itself, so it can't do the auth on its own and has to ask the compositor to do it for us. Dropped XXX about randr provider -- the conclusion from discussion with keithp was that if the driver's dri3_open for a provider on a different screen, that's a core dri3 bug. v3: Don't put quite so much under GLAMOR_NO_DRI3, and add a comment explaining what this is about. Signed-off-by: Eric Anholt Reviewed-by: Adam Jackson --- glamor/glamor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'glamor/glamor.h') diff --git a/glamor/glamor.h b/glamor/glamor.h index 041004e9d..e12f497cb 100644 --- a/glamor/glamor.h +++ b/glamor/glamor.h @@ -67,10 +67,12 @@ typedef enum glamor_pixmap_type { #define GLAMOR_USE_SCREEN (1 << 1) #define GLAMOR_USE_PICTURE_SCREEN (1 << 2) #define GLAMOR_USE_EGL_SCREEN (1 << 3) +#define GLAMOR_NO_DRI3 (1 << 4) #define GLAMOR_VALID_FLAGS (GLAMOR_INVERTED_Y_AXIS \ | GLAMOR_USE_SCREEN \ | GLAMOR_USE_PICTURE_SCREEN \ - | GLAMOR_USE_EGL_SCREEN) + | GLAMOR_USE_EGL_SCREEN \ + | GLAMOR_NO_DRI3) /* @glamor_init: Initialize glamor internal data structure. * -- cgit v1.2.3