xf86-video-amdgpu: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 16 15:29:36 UTC 2022


 src/amdgpu_glamor.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit c21bcdd1cbdc340a80d1ebfbf02376e2dad9c67c
Author: Jesse Zhang <jesse.zhang at amd.com>
Date:   Wed Feb 16 16:11:44 2022 +0100

    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 at amd.com>
    Signed-off-by: Jesse Zhang <jesse.zhang at amd.com>
    Signed-off-by: Shashank Sharma <shashank.sharma at amd.com>

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


More information about the xorg-commit mailing list