summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-07 18:23:43 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-07 18:23:43 +0000
commitc05e90aa99c093431a74a94ceba27d7dce49d05b (patch)
tree76778498b7ccc11e6ca202c7bffe882dfd561346
parent292aebfcdc042b08d3a5a21f839e6aec1175359e (diff)
sna: Missing chunks from last commit
And update the check for reusing the blit! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_blt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c
index fab97006..9f77f383 100644
--- a/src/sna/sna_blt.c
+++ b/src/sna/sna_blt.c
@@ -166,7 +166,7 @@ static bool sna_blt_fill_init(struct sna *sna,
_kgem_set_mode(kgem, KGEM_BLT);
}
- if (sna->blt_state.fill_bo != bo->handle ||
+ if (sna->blt_state.fill_bo != bo->unique_id ||
sna->blt_state.fill_pixel != pixel ||
sna->blt_state.fill_alu != alu)
{
@@ -1913,7 +1913,7 @@ Bool sna_blt_fill_boxes(struct sna *sna, uint8_t alu,
_kgem_set_mode(kgem, KGEM_BLT);
}
- if (sna->blt_state.fill_bo != bo->handle ||
+ if (sna->blt_state.fill_bo != bo->unique_id ||
sna->blt_state.fill_pixel != pixel ||
sna->blt_state.fill_alu != alu)
{