summaryrefslogtreecommitdiff
path: root/hw/xfree86/drivers/modesetting
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2019-11-22 18:05:04 +0100
committerMichel Dänzer <michel@daenzer.net>2019-11-25 18:44:57 +0100
commit06ef320e9bc1f1098df9cd5581f072528f28128e (patch)
tree1cf694c307c24ba565ebae50f71a530a208a0b0f /hw/xfree86/drivers/modesetting
parente6ab7f9f342f463092c45226f3294074351fdd5e (diff)
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>
Diffstat (limited to 'hw/xfree86/drivers/modesetting')
-rw-r--r--hw/xfree86/drivers/modesetting/driver.h2
-rw-r--r--hw/xfree86/drivers/modesetting/drmmode_display.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/hw/xfree86/drivers/modesetting/driver.h b/hw/xfree86/drivers/modesetting/driver.h
index 8a4ac9c42..4c524c4eb 100644
--- a/hw/xfree86/drivers/modesetting/driver.h
+++ b/hw/xfree86/drivers/modesetting/driver.h
@@ -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);
diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c
index 144f7ce5c..0ad4b848c 100644
--- a/hw/xfree86/drivers/modesetting/drmmode_display.c
+++ b/hw/xfree86/drivers/modesetting/drmmode_display.c
@@ -1457,7 +1457,7 @@ drmmode_copy_fb(ScrnInfoPtr pScrn, drmmode_ptr drmmode)
FreeScratchGC(gc);
- ms->glamor.finish(pScreen);
+ glamor_finish(pScreen);
pScreen->canDoBGNoneRoot = TRUE;