r300: Improve texture layout calculations
authorNicolai Haehnle <nhaehnle@gmail.com>
Fri, 6 Jun 2008 21:47:46 +0000 (23:47 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Fri, 6 Jun 2008 21:47:46 +0000 (23:47 +0200)
commitfa1bc0d7d600b25ec1b9fce157a8c8ddc6723564
tree3281d6bea5942cea815d2776546917b691f18270
parent03a1144cd1de9425a0bc5ceec98f9c49fa19ac6d
r300: Improve texture layout calculations

The texture layout calculations for mipmapped cubemaps used to be completely
wrong, since the GPU expects images to be grouped by miplevel instead of by
face number.

This has been fixed now, though the memory layout is still slightly incorrect
for the smaller miplevels. Unfortunately, the docs are lacking in that area.
src/mesa/drivers/dri/r300/r300_texmem.c
src/mesa/drivers/dri/r300/r300_texstate.c