From c05e90aa99c093431a74a94ceba27d7dce49d05b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 7 Jan 2012 18:23:43 +0000 Subject: [PATCH] sna: Missing chunks from last commit And update the check for reusing the blit! Signed-off-by: Chris Wilson --- src/sna/sna_blt.c | 4 ++-- 1 file 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) {