mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 09:58:21 +02:00
xf86Crtc: don't set the root window property on slave GPUs.
Slave GPUs don't have a root window to set this on, so don't.
This fixes some crashes I saw just playing around.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 258588224d)
This commit is contained in:
parent
5b4ced6d3a
commit
69f9319568
1 changed files with 2 additions and 1 deletions
|
|
@ -3285,7 +3285,8 @@ xf86OutputSetEDID(xf86OutputPtr output, xf86MonPtr edid_mon)
|
|||
}
|
||||
|
||||
/* Set the DDC properties for the 'compat' output */
|
||||
if (output == xf86CompatOutput(scrn))
|
||||
/* GPU screens don't have a root window */
|
||||
if (output == xf86CompatOutput(scrn) && !scrn->is_gpu)
|
||||
xf86SetDDCproperties(scrn, edid_mon);
|
||||
|
||||
#ifdef RANDR_12_INTERFACE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue