diff options
author | Nicolai Haehnle <[email protected]> | 2008-06-06 23:47:46 +0200 |
---|---|---|
committer | Nicolai Haehnle <[email protected]> | 2008-06-06 23:47:46 +0200 |
commit | fa1bc0d7d600b25ec1b9fce157a8c8ddc6723564 (patch) | |
tree | 3281d6bea5942cea815d2776546917b691f18270 /src/mesa/drivers/dri/r300/r300_texmem.c | |
parent | 03a1144cd1de9425a0bc5ceec98f9c49fa19ac6d (diff) |
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.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_texmem.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_texmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_texmem.c b/src/mesa/drivers/dri/r300/r300_texmem.c index e0fda86ac8b..69847a4022d 100644 --- a/src/mesa/drivers/dri/r300/r300_texmem.c +++ b/src/mesa/drivers/dri/r300/r300_texmem.c @@ -349,7 +349,7 @@ static void r300UploadSubImage(r300ContextPtr rmesa, r300TexObjPtr t, imageWidth = texImage->Width; imageHeight = texImage->Height; - offset = t->bufAddr + t->base.totalSize / 6 * face; + offset = t->bufAddr; if (RADEON_DEBUG & (DEBUG_TEXTURE | DEBUG_IOCTL)) { GLint imageX = 0; |