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:
Jesse Zhang
2022-02-16 16:11:44 +01:00
committed by Shashank Sharma
parent 8bc148f0c1
commit c21bcdd1cb

View File

@@ -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 &&