summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Zhang <jesse.zhang@amd.com>2022-02-16 16:11:44 +0100
committerShashank Sharma <shashank.sharma@amd.com>2022-02-16 16:21:21 +0100
commitc21bcdd1cbdc340a80d1ebfbf02376e2dad9c67c (patch)
treefe188d0d9882ab3f5640765da0e7d4cd6a9fe122 /src
parent8bc148f0c14f6a6df1c3643a774e00a00c7942c6 (diff)
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: 0732f81a2c67 ("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>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_glamor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c
index 31fcfb4..f867392 100644
--- a/src/amdgpu_glamor.c
+++ b/src/amdgpu_glamor.c
@@ -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 &&