i965: Delete pitch alignment assertion in get_blit_intratile_offset_el.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 1 Aug 2017 05:04:25 +0000 (22:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 2 Aug 2017 17:01:34 +0000 (10:01 -0700)
commit595a47b8293b1d97a3ae7dbfa8db703bfb4e7aae
tree1bfa24c486478512fe7bf3aa491818d81c163f40
parent7cd50b9e47a8ad131795da270039da87e0175143
i965: Delete pitch alignment assertion in get_blit_intratile_offset_el.

The cacheline alignment restriction is on the base address; the pitch
can be anything.

Fixes assertion failures when using primus (say, on glxgears, which
creates a 300x300 linear BGRX surface with a pitch of 1200):

intel_blit.c:190: get_blit_intratile_offset_el: Assertion `mt->surf.row_pitch % 64 == 0' failed.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/intel_blit.c