diff options
author | Dave Airlie <airlied@redhat.com> | 2009-12-17 14:30:23 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-21 08:06:21 +1000 |
commit | 4b05c47ac657f9a93d76221269761ed64c81f716 (patch) | |
tree | fd2f017a2234011cca93cc9d2cbbe216991ff909 /src/radeon_exa.c | |
parent | 1d620800bd79290967fa487decf798e318c45f25 (diff) |
radeon: use new libdrm api
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r-- | src/radeon_exa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c index bff6ec05..97733c3b 100644 --- a/src/radeon_exa.c +++ b/src/radeon_exa.c @@ -341,6 +341,7 @@ Bool RADEONPrepareAccess_CS(PixmapPtr pPix, int index) { ScreenPtr pScreen = pPix->drawable.pScreen; ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + RADEONInfoPtr info = RADEONPTR(pScrn); struct radeon_exa_pixmap_priv *driver_priv; int ret; @@ -356,7 +357,7 @@ Bool RADEONPrepareAccess_CS(PixmapPtr pPix, int index) return FALSE; /* if we have more refs than just the BO then flush */ - if (driver_priv->bo->cref > 1) + if (radeon_bo_is_referenced_by_cs(driver_priv->bo, info->cs)) radeon_cs_flush_indirect(pScrn); /* flush IB */ |