summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-01-23 19:04:27 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-01-23 19:14:49 +0000
commitc9e9c85fc7b21e231c2532fe1c75b92307e112ed (patch)
tree27135d7c4a2b4812b233ba279be345ec37e6e6b9 /src
parent6914b3af7f26c7b61e4ee6ea3a6ccda5011fa4da (diff)
sna/gen2,3: Don't set BLT_DST_TILED
This bit only exists for gen4+ so avoid setting it on gen2 and gen3, whilst setting it doesn't seem to cause any harm, there is no reason to risk it... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_blt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c
index 9fad2921..61e86724 100644
--- a/src/sna/sna_blt.c
+++ b/src/sna/sna_blt.c
@@ -206,7 +206,7 @@ static bool sna_blt_fill_init(struct sna *sna,
b[0] = XY_SETUP_MONO_PATTERN_SL_BLT | 7;
if (bpp == 32)
b[0] |= BLT_WRITE_ALPHA | BLT_WRITE_RGB;
- if (bo->tiling)
+ if (bo->tiling && kgem->gen >= 040)
b[0] |= BLT_DST_TILED;
b[1] = blt->br13;
b[2] = 0;
@@ -270,7 +270,7 @@ noinline static void sna_blt_fill_begin(struct sna *sna,
b[0] = XY_SETUP_MONO_PATTERN_SL_BLT | 7;
if (blt->bpp == 32)
b[0] |= BLT_WRITE_ALPHA | BLT_WRITE_RGB;
- if (blt->bo[0]->tiling)
+ if (blt->bo[0]->tiling && kgem->gen >= 040)
b[0] |= BLT_DST_TILED;
b[1] = blt->br13;
b[2] = 0;
@@ -3124,7 +3124,7 @@ bool sna_blt_fill_boxes(struct sna *sna, uint8_t alu,
b[0] = XY_SETUP_MONO_PATTERN_SL_BLT | 7;
if (bpp == 32)
b[0] |= BLT_WRITE_ALPHA | BLT_WRITE_RGB;
- if (bo->tiling)
+ if (bo->tiling && kgem->gen >= 040)
b[0] |= BLT_DST_TILED;
b[1] = br13;
b[2] = 0;
@@ -3210,7 +3210,7 @@ bool sna_blt_fill_boxes(struct sna *sna, uint8_t alu,
b[0] = XY_SETUP_MONO_PATTERN_SL_BLT | 7;
if (bpp == 32)
b[0] |= BLT_WRITE_ALPHA | BLT_WRITE_RGB;
- if (bo->tiling)
+ if (bo->tiling && kgem->gen >= 040)
b[0] |= BLT_DST_TILED;
b[1] = br13;
b[2] = 0;