diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-23 15:53:45 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-06-23 15:55:47 +0100 |
commit | 33d3077266942b23c5bc05ef4a9a6cebe357272a (patch) | |
tree | 81f30f32b0229daba520bd63449426facc068541 /src/sna/sna_blt.c | |
parent | 03e6aee8fd2cc7486fbd2ec55a537c712786486b (diff) |
sna: Debug compile fix, and some extra comments
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_blt.c')
-rw-r--r-- | src/sna/sna_blt.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c index 3d350b1d..35fdc12d 100644 --- a/src/sna/sna_blt.c +++ b/src/sna/sna_blt.c @@ -1155,8 +1155,11 @@ Bool sna_blt_fill_boxes(struct sna *sna, uint8_t alu, DBG(("%s (%d, %08x, %d) x %d\n", __FUNCTION__, bpp, color, alu, nbox)); - if (bo->tiling == I915_TILING_Y) + if (bo->tiling == I915_TILING_Y) { + DBG(("%s: fallback -- dst uses Y-tiling\n", + __FUNCTION__)); return FALSE; + } cmd = XY_COLOR_BLT_CMD; if (bpp == 32) @@ -1167,8 +1170,11 @@ Bool sna_blt_fill_boxes(struct sna *sna, uint8_t alu, cmd |= BLT_DST_TILED; br13 >>= 2; } - if (br13 > MAXSHORT) + if (br13 > MAXSHORT) { + DBG(("%s: fallback -- pitch is too large %d [%d]\n", + __FUNCTION__, bo->pitch, br13)); return FALSE; + } br13 |= fill_ROP[alu] << 16; switch (bpp) { |