diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2011-11-16 15:04:37 +0800 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-16 23:57:57 +0000 |
commit | c4c2eb1fae2518578a56a278afeaec66d544439d (patch) | |
tree | b3118085c66789139858286d98e522b7ffb1252e /uxa/uxa-accel.c | |
parent | ac7df2919b92c9fe47c6745975e1848932f989e8 (diff) |
uxa/glamor: Introduce additional access modes to wrap glamor acceleration
Integrate glamor acceleration into UXA framework. Add
necessary flushing at the following points:
1. Flush UXA batch buffer before call into glamor.
2. Flush GL operations after return from a glamor function.
3. The point we need to flush UXA batch buffer, we also
need to flush GL operations, for example, in
intel_flush_callback and couple of places in intel_display.c.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'uxa/uxa-accel.c')
-rw-r--r-- | uxa/uxa-accel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/uxa/uxa-accel.c b/uxa/uxa-accel.c index 516834f6..f471ff46 100644 --- a/uxa/uxa-accel.c +++ b/uxa/uxa-accel.c @@ -187,7 +187,7 @@ uxa_do_put_image(DrawablePtr pDrawable, GCPtr pGC, int depth, int x, int y, (x1 + dstXoff) * dstBpp, (x2 - x1) * dstBpp, y2 - y1, GXcopy, FB_ALLONES, dstBpp); - uxa_finish_access(pDrawable); + uxa_finish_access(pDrawable, UXA_ACCESS_RW); } } @@ -481,9 +481,9 @@ fallback: dx, dy, reverse, upsidedown, bitplane, closure); if (pSrcDrawable != pDstDrawable) - uxa_finish_access(pSrcDrawable); + uxa_finish_access(pSrcDrawable, UXA_ACCESS_RO); } - uxa_finish_access(pDstDrawable); + uxa_finish_access(pDstDrawable, UXA_ACCESS_RW); } } @@ -1013,7 +1013,7 @@ fallback: if (uxa_prepare_access(pDrawable, UXA_ACCESS_RO)) { fbGetImage(pDrawable, x, y, w, h, format, planeMask, d); - uxa_finish_access(pDrawable); + uxa_finish_access(pDrawable, UXA_ACCESS_RO); } return; |