swrast: When asked to map a slice of a 1D array, give back that slice.
authorEric Anholt <eric@anholt.net>
Wed, 28 Sep 2011 18:15:01 +0000 (11:15 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 3 Oct 2011 20:29:38 +0000 (13:29 -0700)
commit5324f9c48d59ef966fbab03664a8d44ea8c19c5f
tree01db82cf91feb689fec8ecc80d8e077e891211b6
parentb07c78bfe94c17e6fccba70923b03a29c751fde1
swrast: When asked to map a slice of a 1D array, give back that slice.

Until now, we've been treating 1D arrays as a single slice, and each
array slice is actually just a row of the 2D texture.  While swrast
still stores them this way, hardware drivers think that 1D arrays have
actual separate slices not stored as contiguous rows.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/swrast/s_texture.c