Also flush from the BlockHandler.
PATCH 1/1 Also flush from the BlockHandler.
- The fact that commit 02c50db307a4e4eeb87f7db5d401bc53cce3b21f fixed missing text for some people proves this is needed. That commit should have only improved latency a bit.
- The FlushCallback is still needed for DRI2 texture_from_pixmap.
- See bugs.fd.o #33977 for discussion.
Signed-off-by Maarten Maathuis <[email protected]>
--- src/nv_driver.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
src/nv_driver.c +6 -3
@@ -384,15 +384,18 @@ NVBlockHandler ( ) {ScreenPtr pScreen = screenInfo.screens[i]; -ScrnInfoPtr pScrnInfo = xf86Screens[i]; -NVPtr pNv =NVPTR (pScrnInfo); +ScrnInfoPtr pScrn = xf86Screens[i]; +NVPtr pNv =NVPTR (pScrn); pScreen->BlockHandler = pNv->BlockHandler; (*pScreen->BlockHandler) (i, blockData, pTimeout, pReadmask); pScreen->BlockHandler = NVBlockHandler; +if (pScrn->vtSema && !pNv->NoAccel) +FIRE_RING (pNv->chan); +if (pNv->VideoTimerCallback) - (*pNv->VideoTimerCallback)(pScrnInfo, currentTime.milliseconds); + (*pNv->VideoTimerCallback)(pScrn, currentTime.milliseconds); } static Bool
Signature · 1 line
1.7.4