nv40: Better teximage layout, probably not 100% correct still.
authorBen Skeggs <skeggsb@gmail.com>
Wed, 21 Nov 2007 08:20:38 +0000 (19:20 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Wed, 21 Nov 2007 08:20:38 +0000 (19:20 +1100)
commitff7edad0776603aa62b8f684db20c84bde75ea0b
treeaec9ae47780ab491c4778c3ad4d902e1ec97de6e
parentaf1a38893946cf2fabd0fc6956efd07ef15b954b
nv40: Better teximage layout, probably not 100% correct still.

Gallium represents image layout by saying that each mipmap level has a number
of "face" images within it.  However, nv40 represents them as "faces" that
have a number of mipmap levels.  I'm not sure if the gallium representation
allows this, but I've made an attempt to match it as closely as possible.

CUBE/3D textures with mipmaps are probably broken, but untested currently.
src/mesa/pipe/nv40/nv40_miptree.c
src/mesa/pipe/nv40/nv40_state_tex.c