r300g: fixup rs690 tiling stride alignment calculations.
authorDave Airlie <airlied@redhat.com>
Fri, 10 Dec 2010 05:40:48 +0000 (15:40 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 13 Dec 2010 01:29:21 +0000 (11:29 +1000)
commitd19b5cbd317620f3977e68fffb7a74793436b7e2
tree0ba61bd31d6fac857519f475748465d62eaf9a73
parentd6b1478ff0499059661df145efe469e7b28ff7bf
r300g: fixup rs690 tiling stride alignment calculations.

The RS690 memory controller prefers things to be on a different
boundary than the discrete GPUs, we had an attempt to fix this,
but it still failed, this consolidates the stride calculation
into one place and removes the really special case check.

This fixes gnome-shell and 16 piglit tests on my rs690 system.

NOTE: This is a candidate for both the 7.9 and 7.10 branches.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/r300/r300_texture_desc.c
src/gallium/drivers/r300/r300_texture_desc.h