From fc1f61b75c9712e24ff665f95d62771f39eba1c7 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 29 Apr 2016 14:01:30 +1000 Subject: randr/provider: only allow slave gpu to be offload sources. The other way around makes no sense. Reviewed-by: Alex Deucher Signed-off-by: Dave Airlie --- randr/rrprovider.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'randr') diff --git a/randr/rrprovider.c b/randr/rrprovider.c index bbb8e51b3..5329f410b 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); -- cgit v1.2.3