Skip to contentSkip to conversation

Fix drmmode_crtc_scanout_create logic

PATCH In review Likun Gao 2 participants 2 messages Oct 30, 2020

lore
Share & tools
lore

Likun Gao

author
#0 lore raw

PATCH 1/1 Fix drmmode_crtc_scanout_create logic

From: Likun Gao <[email protected]>

If crtc scanout create successfully, the function of drmmode_crtc_scanout_create should return TURE.

Change-Id I4b7540b0d128c2d55f2b8491569004741435f343
---
 src/drmmode_display.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
src/drmmode_display.c +2 -1
index f74106e..465915f 100644
@@ -513,9 +513,10 @@ drmmode_crtc_scanout_create(xf86CrtcPtr crtc, PixmapPtr *scanout,
 		ErrorF("failed to create CRTC scanout FB\n");
 error:		
 		drmmode_crtc_scanout_destroy(scanout);
+		return FALSE;
 	}
 
-	return FALSE;
+	return TRUE;
 }
 
 static void
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#1 lore raw
Quoted 8 lines · Likun Gao

From: Likun Gao <[email protected]>

If crtc scanout create successfully, the function of drmmode_crtc_scanout_create should return TURE.

Change-Id I4b7540b0d128c2d55f2b8491569004741435f343

Please create a gitlab MR for xf86-video-amdgpu updates:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/merge_requests

Alex

Quoted 23 lines
---
 src/drmmode_display.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
src/drmmode_display.c +2 -2
index f74106e..465915f 100644
@@ -513,9 +513,10 @@ drmmode_crtc_scanout_create(xf86CrtcPtr crtc, PixmapPtr *scanout,
                ErrorF("failed to create CRTC scanout FB\n");
 error:
                drmmode_crtc_scanout_destroy(scanout);
+               return FALSE;
        }
 
-       return FALSE;
+       return TRUE;
 }
 
 static void
--

2.25.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx