summaryrefslogtreecommitdiff
path: root/src/sna/sna_tiling.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-02-23 10:40:57 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-02-23 10:51:22 +0000
commit4ecf882c838c1f044b4ed3add486b6579ea2c431 (patch)
treecdeea2b41d627a9c269e9e71511a648683743172 /src/sna/sna_tiling.c
parentdfa21713c27eb9135cb5e1745807324e49422fde (diff)
sna/gen6: Refactor get_rectangles() to re-emit state after a flush
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_tiling.c')
-rw-r--r--src/sna/sna_tiling.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/sna_tiling.c b/src/sna/sna_tiling.c
index 17ecaead..493e3132 100644
--- a/src/sna/sna_tiling.c
+++ b/src/sna/sna_tiling.c
@@ -89,7 +89,7 @@ sna_tiling_composite_blt(struct sna *sna,
const struct sna_composite_op *op,
const struct sna_composite_rectangles *r)
{
- sna_tiling_composite_add_rect(op->u.priv, r);
+ sna_tiling_composite_add_rect(op->priv, r);
(void)sna;
}
@@ -107,7 +107,7 @@ sna_tiling_composite_box(struct sna *sna,
r.width = box->x2 - box->x1;
r.height = box->y2 - box->y1;
- sna_tiling_composite_add_rect(op->u.priv, &r);
+ sna_tiling_composite_add_rect(op->priv, &r);
(void)sna;
}
@@ -126,7 +126,7 @@ sna_tiling_composite_boxes(struct sna *sna,
r.width = box->x2 - box->x1;
r.height = box->y2 - box->y1;
- sna_tiling_composite_add_rect(op->u.priv, &r);
+ sna_tiling_composite_add_rect(op->priv, &r);
box++;
}
(void)sna;
@@ -136,7 +136,7 @@ static void
sna_tiling_composite_done(struct sna *sna,
const struct sna_composite_op *op)
{
- struct sna_tile_state *tile = op->u.priv;
+ struct sna_tile_state *tile = op->priv;
struct sna_composite_op tmp;
int x, y, n, step;
@@ -312,7 +312,7 @@ sna_tiling_composite(uint32_t op,
tmp->boxes = sna_tiling_composite_boxes;
tmp->done = sna_tiling_composite_done;
- tmp->u.priv = tile;
+ tmp->priv = tile;
return TRUE;
}