DIX is responsible for ref counting scanout pixmaps.
Remove some extra ref counting inside hw/xfree86/modes Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
parent
afb6ebf1d5
commit
96b4d4787b
|
@ -414,10 +414,6 @@ done:
|
||||||
crtc->active = TRUE;
|
crtc->active = TRUE;
|
||||||
if (scrn->pScreen)
|
if (scrn->pScreen)
|
||||||
xf86CrtcSetScreenSubpixelOrder (scrn->pScreen);
|
xf86CrtcSetScreenSubpixelOrder (scrn->pScreen);
|
||||||
if (crtc->scanoutPixmap)
|
|
||||||
++crtc->scanoutPixmap->refcnt;
|
|
||||||
if (saved_scanout_pixmap)
|
|
||||||
(*scrn->pScreen->DestroyPixmap)(saved_scanout_pixmap);
|
|
||||||
if (scrn->ModeSet)
|
if (scrn->ModeSet)
|
||||||
scrn->ModeSet(scrn);
|
scrn->ModeSet(scrn);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue