[PATCH] intel: prefer glamor on Ironlake and above.

Dave Airlie airlied at gmail.com
Tue Sep 1 21:57:05 PDT 2015


From: Dave Airlie <airlied at redhat.com>

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

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 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



More information about the xorg-devel mailing list