Skip to content

Commit

Permalink
pvr_exa: Do not loop waiting for blits to complete, try only once
Browse files Browse the repository at this point in the history
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
  • Loading branch information
freemangordon committed Dec 26, 2021
1 parent 9406d86 commit 472f6e7
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/omap_exa_pvr.c
Expand Up @@ -154,17 +154,13 @@ waitForBlitsCompleteOnDeviceMem(PixmapPtr pPixmap)

pvrPixmapPriv = sgxMapPixmapBo(pPixmap->drawable.pScreen, pixmapPriv);

do
err = PVR2DQueryBlitsComplete(pPVR->srv->hPVR2DContext,
&pvrPixmapPriv->meminfo, 1);
if (err)
{
err = PVR2DQueryBlitsComplete(pPVR->srv->hPVR2DContext,
&pvrPixmapPriv->meminfo, 1);
if (err)
{
ERROR_MSG("%s: PVR2DQueryBlitsComplete failed with error code: %d (%s)",
__func__, err, sgxErrorCodeToString(err));
}
ERROR_MSG("%s: PVR2DQueryBlitsComplete failed with error code: %d (%s)",
__func__, err, sgxErrorCodeToString(err));
}
while (err == PVR2DERROR_BLT_NOTCOMPLETE);
}

static void
Expand Down

0 comments on commit 472f6e7

Please sign in to comment.