radeon: fix pitch alignment for non-power-of-two mipmaps on SI
authorMarek Olšák <marek.olsak@amd.com>
Thu, 19 Sep 2013 12:19:02 +0000 (14:19 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 29 Sep 2013 12:44:23 +0000 (14:44 +0200)
commit75f747b919e1b1cd852eeaa8e662e72273189fb2
treee99a603c418b14c964c74c52cc718c4ebf37e6fb
parentbf4a7cd4b2456d4dc93a86bbcc51eba4ae73390a
radeon: fix pitch alignment for non-power-of-two mipmaps on SI

This fixes VM protection faults.

I have a new piglit test which can iterate over all possible widths, heights,
and depths (including NPOT) and tests mipmapping with various texture targets.

After this is committed, I'll make a new release of libdrm and bump
the libdrm version requirement in Mesa.
radeon/radeon_surface.c