mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
glamor: unset AMDGPU_CREATE_PIXMAP_SCANOUT on shared pixmap
While running multi-display test(for both APUs and DGPUs), if
the screen setting mode is changed from "single mode" to "share mode",
the screen shows tiled distortion, due to wrongly created pixmap.
This is a regression.
Fixes: 0732f81a2c ("glamor: Make pixmap scanout compatible if its dimensions are")
Closes: https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/issues/48
Acked-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
This commit is contained in:
committed by
Shashank Sharma
parent
8bc148f0c1
commit
c21bcdd1cb
@@ -210,6 +210,7 @@ amdgpu_glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth,
|
||||
return NULL;
|
||||
|
||||
if (usage != CREATE_PIXMAP_USAGE_BACKING_PIXMAP &&
|
||||
usage != CREATE_PIXMAP_USAGE_SHARED &&
|
||||
!info->shadow_primary &&
|
||||
w >= scrn->virtualX &&
|
||||
w <= scrn->displayWidth &&
|
||||
|
||||
Reference in New Issue
Block a user