Blame SOURCES/0007-modesetting-Fix-swapping-of-provider-sink-source-cap.patch

82b592
From 8ca090a954e26f5c24479951e22c8638346a4fd8 Mon Sep 17 00:00:00 2001
82b592
From: Hans de Goede <hdegoede@redhat.com>
82b592
Date: Thu, 16 Jun 2016 15:21:03 +0200
82b592
Subject: [PATCH xserver 7/8] modesetting: Fix swapping of provider sink /
82b592
 source capabilities
82b592
82b592
When a card has import capability it can be an offload _sink_, not
82b592
a source and vice versa for export capability.
82b592
82b592
This commit fixes the modesetting driver to properly set these
82b592
capabilities, this went unnoticed sofar because most gpus have both
82b592
import and export capability.
82b592
82b592
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
82b592
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
82b592
---
82b592
 hw/xfree86/drivers/modesetting/driver.c | 4 ++--
82b592
 1 file changed, 2 insertions(+), 2 deletions(-)
82b592
82b592
diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c
82b592
index 35d3fd5..50cb880 100644
82b592
--- a/hw/xfree86/drivers/modesetting/driver.c
82b592
+++ b/hw/xfree86/drivers/modesetting/driver.c
82b592
@@ -884,11 +884,11 @@ PreInit(ScrnInfoPtr pScrn, int flags)
82b592
         if (value & DRM_PRIME_CAP_IMPORT) {
82b592
             pScrn->capabilities |= RR_Capability_SinkOutput;
82b592
             if (ms->drmmode.glamor)
82b592
-                pScrn->capabilities |= RR_Capability_SourceOffload;
82b592
+                pScrn->capabilities |= RR_Capability_SinkOffload;
82b592
         }
82b592
 #if GLAMOR_HAS_GBM_LINEAR
82b592
         if (value & DRM_PRIME_CAP_EXPORT && ms->drmmode.glamor)
82b592
-            pScrn->capabilities |= RR_Capability_SourceOutput | RR_Capability_SinkOffload;
82b592
+            pScrn->capabilities |= RR_Capability_SourceOutput | RR_Capability_SourceOffload;
82b592
 #endif
82b592
     }
82b592
 #endif
82b592
-- 
82b592
2.7.4
82b592