diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-06-16 15:21:03 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-07-06 13:21:09 -0400 |
commit | a9f970fe28d76bd2c57b44aa02ac38eb8aab8acf (patch) | |
tree | fff4808502d06147f4055e3da04c8ae8e67f89a6 /hw | |
parent | 0dc1a58b9379c79ede8c40b2e6f008dc0868a40e (diff) |
modesetting: Fix swapping of provider sink / source capabilities
When a card has import capability it can be an offload _sink_, not
a source and vice versa for export capability.
This commit fixes the modesetting driver to properly set these
capabilities, this went unnoticed sofar because most gpus have both
import and export capability.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
(cherry picked from commit 94a1c77259ce39ba59ad87615df39b570ffab435)
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xfree86/drivers/modesetting/driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index fb05e2eb6..e7f6e8dac 100644 --- a/hw/xfree86/drivers/modesetting/driver.c +++ b/hw/xfree86/drivers/modesetting/driver.c @@ -891,11 +891,11 @@ PreInit(ScrnInfoPtr pScrn, int flags) if (value & DRM_PRIME_CAP_IMPORT) { pScrn->capabilities |= RR_Capability_SinkOutput; if (ms->drmmode.glamor) - pScrn->capabilities |= RR_Capability_SourceOffload; + pScrn->capabilities |= RR_Capability_SinkOffload; } #if GLAMOR_HAS_GBM_LINEAR if (value & DRM_PRIME_CAP_EXPORT && ms->drmmode.glamor) - pScrn->capabilities |= RR_Capability_SourceOutput | RR_Capability_SinkOffload; + pScrn->capabilities |= RR_Capability_SourceOutput | RR_Capability_SourceOffload; #endif } #endif |