summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_texture_desc.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-01-28 01:15:17 +0100
committerMarek Olšák <maraeo@gmail.com>2011-01-28 01:16:27 +0100
commitbaf2a795eb357aaf33fdee166003fa38768cb193 (patch)
tree7b48ec88de9ca2c552b1c3399a44fe735ab054cc /src/gallium/drivers/r300/r300_texture_desc.c
parent2050f2ab96f923112d3475a655b31c8f5145a800 (diff)
r300g: 8x8-compressed zbuffer can only be point-sampled
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture_desc.c')
-rw-r--r--src/gallium/drivers/r300/r300_texture_desc.c3
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 83469f720b..4faa88f4c5 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],