From c6407f7380829f822a462100d26bc531aed0fd6f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 4 Jul 2014 10:14:54 +0100 Subject: 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 Signed-off-by: Chris Wilson --- src/sna/gen8_render.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3