xf86-video-intel: 2 commits - src/sna/sna_accel.c
Chris Wilson
ickle at kemper.freedesktop.org
Sat Aug 11 11:45:50 PDT 2012
src/sna/sna_accel.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
New commits:
commit 44f848f9b2f2a2dcd9087210ea46bc4fdb63c057
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sat Aug 11 19:44:15 2012 +0100
sna: Fix typo in computation of texel offsets for tiled 8x8 blts
Reported-by: Clemens Eisserer <linuxhippy at gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53353
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 4e3e9eb..660c17a 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -9458,10 +9458,10 @@ sna_poly_fill_rect_tiled_8x8_blt(DrawablePtr drawable,
sna_damage_add_rectangles(damage, r, n, dx, dy);
if (n == 1) {
tx = (r->x - origin->x) % 8;
- if (tx < 8)
+ if (tx < 0)
tx = 8 - tx;
ty = (r->y - origin->y) % 8;
- if (ty < 8)
+ if (ty < 0)
ty = 8 - ty;
assert(r->x + dx >= 0);
@@ -9520,10 +9520,10 @@ sna_poly_fill_rect_tiled_8x8_blt(DrawablePtr drawable,
assert(r->y + dy + r->height <= pixmap->drawable.height);
tx = (r->x - origin->x) % 8;
- if (tx < 8)
+ if (tx < 0)
tx = 8 - tx;
ty = (r->y - origin->y) % 8;
- if (ty < 8)
+ if (ty < 0)
ty = 8 - ty;
b[0] = br00 | tx << 12 | ty << 8;
commit b335d369bbcbfaef878795a5c8e72c2d40d3a536
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sat Aug 11 12:59:49 2012 +0100
sna: Discard the GPU bo after syncing to CPU bo for writing
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 227bb01..4e3e9eb 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1400,9 +1400,13 @@ done:
assert(priv->gpu_bo == NULL || priv->gpu_bo->proxy == NULL);
}
- if ((flags & MOVE_ASYNC_HINT) == 0 && priv->cpu_bo) {
- DBG(("%s: syncing CPU bo\n", __FUNCTION__));
- kgem_bo_sync__cpu(&sna->kgem, priv->cpu_bo);
+ if (priv->cpu_bo) {
+ if ((flags & MOVE_ASYNC_HINT) == 0) {
+ DBG(("%s: syncing CPU bo\n", __FUNCTION__));
+ kgem_bo_sync__cpu(&sna->kgem, priv->cpu_bo);
+ }
+ if (flags & MOVE_WRITE)
+ sna_pixmap_free_gpu(sna, priv);
}
priv->cpu = (flags & MOVE_ASYNC_HINT) == 0;
assert(pixmap->devPrivate.ptr);
More information about the xorg-commit
mailing list