swrast: Make a teximage's stored RowStride be in terms of bytes per row.
authorEric Anholt <eric@anholt.net>
Fri, 19 Apr 2013 21:00:22 +0000 (14:00 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 30 Apr 2013 17:40:44 +0000 (10:40 -0700)
commitf91823f026fc5996f9b2ffa1dc48573810f1e4fd
treec2851bf3b56424a01c76a962cb5713ceeb932f39
parent35e179b18c6f266f8ec3ebb9352ad0cd3552c2a3
swrast: Make a teximage's stored RowStride be in terms of bytes per row.

For hardware drivers with pitch alignment requirements, a
non-power-of-two-sized texture format won't end up being an integer number
of pixels per row.  Also, avoids having to change our units between
MapTextureImage's rowStride and swrast's RowStride.

This doesn't fully convert the compressed texel fetch path, but does make
sure we don't drop any bits (not that we'd expect to).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/swrast/s_context.h
src/mesa/swrast/s_texfetch.c
src/mesa/swrast/s_texfetch_tmp.h
src/mesa/swrast/s_texfilter.c
src/mesa/swrast/s_texture.c
src/mesa/swrast/s_triangle.c