[PATCH 2/6] randr/provider: only allow slave gpu to be offload sources.

Dave Airlie airlied at gmail.com
Fri Apr 29 04:01:30 UTC 2016


The other way around makes no sense.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 randr/rrprovider.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/randr/rrprovider.c b/randr/rrprovider.c
index bbb8e51..5329f41 100644
--- a/randr/rrprovider.c
+++ b/randr/rrprovider.c
@@ -325,6 +325,8 @@ ProcRRSetProviderOffloadSink(ClientPtr client)
     VERIFY_RR_PROVIDER(stuff->provider, provider, DixReadAccess);
     if (!(provider->capabilities & RR_Capability_SourceOffload))
         return BadValue;
+    if (!provider->pScreen->isGPU)
+        return BadValue;
 
     if (stuff->sink_provider) {
         VERIFY_RR_PROVIDER(stuff->sink_provider, sink_provider, DixReadAccess);
-- 
2.5.5



More information about the xorg-devel mailing list