Restore location of radeon_set_pixmap_bo call in drmmode_create_bo_pixmap
PATCH 1/1 Restore location of radeon_set_pixmap_bo call in drmmode_create_bo_pixmap
From: Michel Dänzer <[email protected]>
radeon_set_pixmap_bo sets the tiling flags, so it needs to be called before radeon_get_pixmap_tiling_flags. Fixes a regression with EXA and TearFree.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98097
--- src/drmmode_display.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
src/drmmode_display.c +4 -3
@@ -131,6 +131,10 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn,if (!info->use_glamor)exaMoveInPixmap (pixmap); + +if (!radeon_set_pixmap_bo (pixmap, bo)) + goto fail; +if (info->ChipFamily >=CHIP_FAMILY_R600 ) { surface =radeon_get_pixmap_surface (pixmap);if (surface && psurf)
@@ -170,9 +174,6 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn, } } -if (!radeon_set_pixmap_bo (pixmap, bo)) - goto fail; -if (!info->use_glamor ||radeon_glamor_create_textured_pixmap (pixmap,radeon_get_pixmap_private (pixmap)))
Signature · 6 lines
2.9.3 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20161013073435.7529-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org
Deucher, Alexander
Reviewed-by Alex DeucherQuoted 10 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Michel Dänzer
Sent: Thursday, October 13, 2016 3:35 AM
To: [email protected]
Subject: [PATCH xf86-video-ati] Restore location ofradeon_set_pixmap_bocall indrmmode_create_bo_pixmapFrom: Michel Dänzer <[email protected]>
Quoted 7 lines
radeon_set_pixmap_bosets the tiling flags, so it needs to be called beforeradeon_get_pixmap_tiling_flags. Fixes a regression with EXA and TearFree.Fixes 8523a733b6a5 ("Propagate failure from radeon_set_pixmap_bo")Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98097
Signed-off-by Michel Dänzer <[email protected]>
Quoted 31 lines
--- src/drmmode_display.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)src/drmmode_display.c +4
-0@@ -131,6 +131,10 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn, if (!info->use_glamor) exaMoveInPixmap(pixmap); + +if (!radeon_set_pixmap_bo (pixmap, bo)) + goto fail; +if (info->ChipFamily >=CHIP_FAMILY_R600 ) { surface =radeon_get_pixmap_surface (pixmap);src/drmmode_display.c +0
-3if (surface && psurf)@@ -170,9 +174,6 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn, } } -if (!radeon_set_pixmap_bo (pixmap, bo)) - goto fail; -if (!info->use_glamor || radeon_glamor_create_textured_pixmap(pixmap,
Quoted 8 lines
radeon_get_pixmap_private(pixmap)))
--
2.9.3_______________________________________________
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