projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2050f2a
)
r300g: 8x8-compressed zbuffer can only be point-sampled
author
Marek Olšák
<maraeo@gmail.com>
Fri, 28 Jan 2011 00:15:17 +0000
(
01:15
+0100)
committer
Marek Olšák
<maraeo@gmail.com>
Fri, 28 Jan 2011 00:16:27 +0000
(
01:16
+0100)
src/gallium/drivers/r300/r300_texture_desc.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_texture_desc.c
b/src/gallium/drivers/r300/r300_texture_desc.c
index 83469f720bc8e1282012982186adb777ddab04f9..4faa88f4c52789574fc6ad11c83e12b493b616c5 100644
(file)
--- 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],