summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2009-10-31 07:23:00 +0100
committerJoakim Sindholt <[email protected]>2009-10-31 07:30:48 +0100
commitc9928ac3ee5dc0d10127388f9312779a6c59da7c (patch)
tree60dea626ec9933049f81530096c6304e5cadd1d8 /src/gallium/drivers/r300/r300_emit.c
parent3f60130b87a4a75f1b7cb6e0b854001bbe8f7ec8 (diff)
r300g: correct the pitch calculation for smaller mipmaps
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index be38fbc619e..22cf9cac2a3 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -305,7 +305,7 @@ void r300_emit_fb_state(struct r300_context* r300,
RADEON_GEM_DOMAIN_VRAM, 0);
OUT_CS_REG(R300_US_OUT_FMT_0 + (4 * i),
- r300_translate_out_fmt(fb->cbufs[i]->format));
+ r300_translate_out_fmt(surf->format));
}
if (fb->zsbuf) {