summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-01-28 01:01:01 +0100
committerMarek Olšák <maraeo@gmail.com>2011-01-28 01:04:51 +0100
commit2050f2ab96f923112d3475a655b31c8f5145a800 (patch)
tree620884683ee9c64212168d4d986661e82d16d1bf /src/gallium/drivers/r300/r300_context.h
parent82e60236a950100bda7e00308c9b57861274608c (diff)
downloadexternal_mesa3d-2050f2ab96f923112d3475a655b31c8f5145a800.zip
external_mesa3d-2050f2ab96f923112d3475a655b31c8f5145a800.tar.gz
external_mesa3d-2050f2ab96f923112d3475a655b31c8f5145a800.tar.bz2
r300g: fix and re-enable 8x8 zbuffer compression mode
Also cleanup the whole thing.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r--src/gallium/drivers/r300/r300_context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h
index 6e96ae8..57ecfb1 100644
--- a/src/gallium/drivers/r300/r300_context.h
+++ b/src/gallium/drivers/r300/r300_context.h
@@ -387,6 +387,11 @@ struct r300_texture_desc {
/* Whether CBZB fast color clear is allowed on the miplevel. */
boolean cbzb_allowed[R300_MAX_TEXTURE_LEVELS];
+
+ /* Zbuffer compression info for each miplevel. */
+ boolean zcomp8x8[R300_MAX_TEXTURE_LEVELS];
+ /* If zero, then disable compression. */
+ unsigned zmask_dwords[R300_MAX_TEXTURE_LEVELS];
};
struct r300_texture {