summaryrefslogtreecommitdiff
path: root/src/sna
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-12-13 14:40:25 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-12-13 15:26:39 +0000
commit9e7311516da81ab45484b291ec668503c5ded0bb (patch)
tree24c66bbe0b9308272010b5b61e3dc8c454b1e4f6 /src/sna
parente646047a563598948206167765eaaf4192cfd77f (diff)
sna/gen2: Align surface sizes to an even tile
Makes this 855gm much happier. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r--src/sna/kgem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index d5011154..f8b3cff2 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -1223,10 +1223,10 @@ static uint32_t kgem_surface_size(struct kgem *kgem,
if (tiling) {
if (kgem->gen < 030) {
tile_width = 128;
- tile_height = 16;
+ tile_height = 32;
} else {
tile_width = 512;
- tile_height = 8;
+ tile_height = 16;
}
} else {
tile_width = 2 * bpp >> 3;
@@ -1292,12 +1292,12 @@ static uint32_t kgem_aligned_height(struct kgem *kgem,
uint32_t tile_height;
if (kgem->gen <= 030) {
- tile_height = tiling ? kgem->gen < 030 ? 16 : 8 : 1;
+ tile_height = tiling ? kgem->gen < 030 ? 32 : 16 : 1;
} else switch (tiling) {
/* XXX align to an even tile row */
default:
case I915_TILING_NONE:
- tile_height = 2;
+ tile_height = 1;
break;
case I915_TILING_X:
tile_height = 16;