exa: avoid calling non existent SourceValidate callback
In unaccel path we were unconditionaly calling the SourceValidate callback but in some case it could be NULL. Check if we have a valid callback before calling it. Signed-off-by: Jerome Glisse <jglisse@redhat.com> Acked-by: Michel Dänzer <michel@daenzer.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
0e6e75b04e
commit
b557571dbf
|
@ -462,10 +462,12 @@ ExaSrcValidate(DrawablePtr pDrawable,
|
||||||
REGION_UNION(pScreen, dst, dst, ®);
|
REGION_UNION(pScreen, dst, dst, ®);
|
||||||
REGION_UNINIT(pScreen, ®);
|
REGION_UNINIT(pScreen, ®);
|
||||||
|
|
||||||
|
if (pExaScr->SourceValidate) {
|
||||||
swap(pExaScr, pScreen, SourceValidate);
|
swap(pExaScr, pScreen, SourceValidate);
|
||||||
pScreen->SourceValidate(pDrawable, x, y, width, height);
|
pScreen->SourceValidate(pDrawable, x, y, width, height);
|
||||||
swap(pExaScr, pScreen, SourceValidate);
|
swap(pExaScr, pScreen, SourceValidate);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
ExaPrepareCompositeReg(ScreenPtr pScreen,
|
ExaPrepareCompositeReg(ScreenPtr pScreen,
|
||||||
|
|
Loading…
Reference in New Issue