From: Dave Airlie <[email protected]>

This goes along with my X server patch to add support for glamor
preferences.

Signed-off-by: Dave Airlie <[email protected]>
---
 src/intel_module.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/intel_module.c b/src/intel_module.c
index d3dca83..1c4cb34 100644
--- a/src/intel_module.c
+++ b/src/intel_module.c
@@ -489,6 +489,10 @@ static Bool intel_driver_func(ScrnInfoPtr pScrn,
                return TRUE;
 #endif
 
+#ifdef PLATFORM_PROBE_PREFER_GLAMOR
+       case SUPPORTS_GLAMOR_PREFERRED:
+               return TRUE;
+#endif
        default:
                /* Unknown or deprecated function */
                return FALSE;
@@ -654,6 +658,15 @@ intel_platform_probe(DriverPtr driver,
 {
        unsigned scrn_flags = 0;
 
+#ifdef PLATFORM_PROBE_PREFER_GLAMOR
+       if (flags & PLATFORM_PROBE_PREFER_GLAMOR) {
+               /* pick ILK for now */
+               if ((unsigned)((struct intel_device_info *)match_data)->gen >= 
050) {
+                       return FALSE;
+               }
+               flags &= ~PLATFORM_PROBE_PREFER_GLAMOR;
+       }
+#endif
        if (intel_open_device(entity_num, dev->pdev, dev) == -1)
                return FALSE;
 
-- 
2.4.3

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to