Mesa (master): r300g: 8x8-compressed zbuffer can only be point-sampled

Marek Olšák mareko at kemper.freedesktop.org
Fri Jan 28 00:19:28 UTC 2011


Module: Mesa
Branch: master
Commit: baf2a795eb357aaf33fdee166003fa38768cb193
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=baf2a795eb357aaf33fdee166003fa38768cb193

Author: Marek Olšák <maraeo at gmail.com>
Date:   Fri Jan 28 01:15:17 2011 +0100

r300g: 8x8-compressed zbuffer can only be point-sampled

---

 src/gallium/drivers/r300/r300_texture_desc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_texture_desc.c b/src/gallium/drivers/r300/r300_texture_desc.c
index 83469f7..4faa88f 100644
--- a/src/gallium/drivers/r300/r300_texture_desc.c
+++ b/src/gallium/drivers/r300/r300_texture_desc.c
@@ -367,7 +367,8 @@ static void r300_setup_zmask_flags(struct r300_screen *screen,
 
             /* The 8x8 compression mode needs macrotiling. */
             compsize = screen->caps.z_compress == R300_ZCOMP_8X8 &&
-                       desc->macrotile[i] ? 8 : 4;
+                       desc->macrotile[i] &&
+                       desc->b.b.nr_samples <= 1 ? 8 : 4;
 
             /* Get the zbuffer size (with the aligned width and height). */
             numdw = align(desc->stride_in_pixels[i],




More information about the mesa-commit mailing list