[Mesa-dev] [PATCH 2/4] i965/bxt: Don't allow 16B pitch for blits

Ben Widawsky benjamin.widawsky at intel.com
Wed Jun 17 15:50:12 PDT 2015


NOTE: I can no longer find where this workaround is documented. In my notes it
is required for BXT A*, and B*. I'm happy to drop the patch, but I figured I'd
put it here for completeness.

Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 src/mesa/drivers/dri/i965/intel_blit.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c
index d3ab769..bd1a03a 100644
--- a/src/mesa/drivers/dri/i965/intel_blit.c
+++ b/src/mesa/drivers/dri/i965/intel_blit.c
@@ -380,6 +380,9 @@ intelEmitCopyBlit(struct brw_context *brw,
        dst_pitch % 4 != 0 || dst_offset % cpp != 0)
       return false;
 
+   if (brw->is_broxton && (src_pitch % 16 != 0 || dst_pitch % 16 != 0))
+      return false;
+
    /* For big formats (such as floating point), do the copy using 16 or 32bpp
     * and multiply the coordinates.
     */
-- 
2.4.3



More information about the mesa-dev mailing list