Re: [Mesa-dev] [PATCH 2/3] texcompress_s3tc: fix stride checks

2015-09-01 Thread Iago Toral
On Tue, 2015-09-01 at 16:41 +1000, Dave Airlie wrote: > From: Dave Airlie > > The fastpath currently checks the stride != width, but Maybe replace stride with RowLength in the line above to make things more clear. > if you have a RowLength of 7, and Alignment of 4, then > that shuoldn't match.

[Mesa-dev] [PATCH 2/3] texcompress_s3tc: fix stride checks

2015-08-31 Thread Dave Airlie
From: Dave Airlie The fastpath currently checks the stride != width, but if you have a RowLength of 7, and Alignment of 4, then that shuoldn't match. align the rowlength to the pack alignment before comparing. This fixes compressed cases in CTS packed_pixels_pixelstore test when SKIP_PIXELS is