[PATCH] dri3: Print log message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Reviewed-by: Keith Packard <keithp@xxxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux