modesetting: Add glamor_finish() convenience macro

This will simplify backporting the following fix to the 1.20 branch.

Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Michel Dänzer 2019-11-22 18:05:04 +01:00 committed by Michel Dänzer
parent e6ab7f9f34
commit 06ef320e9b
2 changed files with 3 additions and 1 deletions

View File

@ -158,6 +158,8 @@ typedef struct _modesettingRec {
} modesettingRec, *modesettingPtr;
#define glamor_finish(screen) ms->glamor.finish(screen)
#define modesettingPTR(p) ((modesettingPtr)((p)->driverPrivate))
modesettingEntPtr ms_ent_priv(ScrnInfoPtr scrn);

View File

@ -1457,7 +1457,7 @@ drmmode_copy_fb(ScrnInfoPtr pScrn, drmmode_ptr drmmode)
FreeScratchGC(gc);
ms->glamor.finish(pScreen);
glamor_finish(pScreen);
pScreen->canDoBGNoneRoot = TRUE;