mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 21:50:15 +01:00
randr/provider: only allow slave gpu to be offload sources.
The other way around makes no sense.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit fc1f61b75c)
This commit is contained in:
parent
cc7c0b0e3c
commit
cbbf4b0da0
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue