[Intel-gfx] [PATCH] dri3: Print log message

Adel Gadllah adel.gadllah at gmail.com
Tue Apr 8 23:14:00 CEST 2014


Whe currently only print a "direct rendering: DRI2 Enabled" which seems to
confuse people so add a "DRI3 enabled" message as well when successfully
initalizing dri3.

Signed-off-by: Adel Gadllah <adel.gadllah at gmail.com>
Reviewed-by: Keith Packard <keithp at keithp.com>
---
 src/uxa/intel_dri3.c   | 2 +-
 src/uxa/intel_driver.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/uxa/intel_dri3.c b/src/uxa/intel_dri3.c
index fea5822..8ea21ac 100644
--- a/src/uxa/intel_dri3.c
+++ b/src/uxa/intel_dri3.c
@@ -186,7 +186,7 @@ intel_dri3_screen_init(ScreenPtr screen)
 
         /* glamor handles DRI3 on its own. */
         if (intel->uxa_flags & UXA_USE_GLAMOR)
-                return;
+                return TRUE;
 
         return dri3_screen_init(screen, &intel_dri3_screen_info);
 }
diff --git a/src/uxa/intel_driver.c b/src/uxa/intel_driver.c
index 969d451..941ee4f 100644
--- a/src/uxa/intel_driver.c
+++ b/src/uxa/intel_driver.c
@@ -1048,7 +1048,8 @@ I830ScreenInit(SCREEN_INIT_ARGS_DECL)
 #endif
 
 #if DRI3
-        intel_dri3_screen_init(screen);
+    if (intel_dri3_screen_init(screen))
+        xf86DrvMsg(scrn->scrnIndex, X_INFO, "DRI3 Enabled\n");
 #endif
 
 #if defined(DRI2)
-- 
1.9.0




More information about the Intel-gfx mailing list