summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-04 10:14:54 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-04 10:14:54 +0100
commitc6407f7380829f822a462100d26bc531aed0fd6f (patch)
tree8b9df07bbf266ee94ed13deab7f2c661f8b3a4ea /src
parente64d14d7bc72fe7b150e5427feeb1a163ec600a7 (diff)
sna/gen8: Disable the unaligned check
Note sure if this is strictly required -- but at the moment it fails for 1x1R solids, causing us to skip glyphs. The simulator doesn't complain, so just skip the check for now. Reported-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/gen8_render.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c
index 3cdbfd5f..2eb44a9a 100644
--- a/src/sna/gen8_render.c
+++ b/src/sna/gen8_render.c
@@ -214,8 +214,10 @@ static inline bool too_large(int width, int height)
return width > GEN8_MAX_SIZE || height > GEN8_MAX_SIZE;
}
-static bool unaligned(struct kgem_bo *bo, int bpp)
+static inline bool unaligned(struct kgem_bo *bo, int bpp)
{
+ /* XXX What exactly do we need to meet H_ALIGN and V_ALIGN? */
+#if 0
int x, y;
if (bo->proxy == NULL)
@@ -241,6 +243,9 @@ static bool unaligned(struct kgem_bo *bo, int bpp)
return true;
return false;
+#else
+ return false;
+#endif
}
static uint32_t gen8_get_blend(int op,