From 17ecf642b5c5e74343963996a94a8e123e7972a3 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 11 Jul 2016 21:48:04 -0500 Subject: [PATCH] intel_extreme: LVDS pipe only *has* to be B when gen < 4 --- src/add-ons/accelerants/intel_extreme/Ports.cpp | 11 +++++++++++ src/add-ons/accelerants/intel_extreme/Ports.h | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/add-ons/accelerants/intel_extreme/Ports.cpp b/src/add-ons/accelerants/intel_extreme/Ports.cpp index eeae37fef8..a914e7460a 100644 --- a/src/add-ons/accelerants/intel_extreme/Ports.cpp +++ b/src/add-ons/accelerants/intel_extreme/Ports.cpp @@ -362,6 +362,17 @@ LVDSPort::LVDSPort() } +pipe_index +LVDSPort::PipePreference() +{ + // LVDS always pipe b on < gen4 + if (gInfo->shared_info->device_type.Generation() < 4) + return INTEL_PIPE_B; + + return INTEL_PIPE_ANY; +} + + bool LVDSPort::IsConnected() { diff --git a/src/add-ons/accelerants/intel_extreme/Ports.h b/src/add-ons/accelerants/intel_extreme/Ports.h index 3895682e90..b42b0e4fd2 100644 --- a/src/add-ons/accelerants/intel_extreme/Ports.h +++ b/src/add-ons/accelerants/intel_extreme/Ports.h @@ -128,8 +128,7 @@ virtual bool IsConnected(); virtual status_t SetDisplayMode(display_mode* mode, uint32 colorMode); -virtual pipe_index PipePreference() - { return INTEL_PIPE_B; }; +virtual pipe_index PipePreference(); protected: virtual addr_t _DDCRegister();