r600g: don't use radeon_surface_level::npix_x/y/z
authorMarek Olšák <maraeo@gmail.com>
Fri, 25 Jan 2013 17:27:05 +0000 (18:27 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 26 Jan 2013 13:58:52 +0000 (14:58 +0100)
commit26c872c2a22f25ec95065a71770b19b6a9eb06c7
treea2e1f770d43c7a973b6a33f0578089dba0e9919e
parentedc38330da7cc9f87c94d8873f4d2244fc422807
r600g: don't use radeon_surface_level::npix_x/y/z

npix_x/y/z is wrong with NPOT textures, since it's always aligned to POT
if the level is non-zero, so we can't use that.

This fixes piglit/spec/EXT_texture_shared_exponent/fbo-generatemipmap-formats.
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c