summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-04-17 17:00:41 +0200
committerMarek Olšák <[email protected]>2010-04-18 02:56:09 +0200
commitc383defdaacab0fe7f35e7a4ae5b57228cf5310c (patch)
tree7b2f1b5971031988242cb10d5a82555f6b2e097c /src/gallium/drivers
parent65a3c316baf3719350ad6974e95cc08808b9daec (diff)
r300g: always create microtiled zbuffer regardless of texture dimensions
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 4439e35d670..a37b33edf29 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -835,13 +835,14 @@ static void r300_setup_tiling(struct pipe_screen *screen,
struct r300_winsys_screen *rws = (struct r300_winsys_screen *)screen->winsys;
enum pipe_format format = tex->b.b.format;
boolean rv350_mode = r300_screen(screen)->caps.family >= CHIP_FAMILY_RV350;
+ boolean is_zb = util_format_is_depth_or_stencil(format);
if (!r300_format_is_plain(format)) {
return;
}
- if (tex->b.b.width0 == 1 ||
- tex->b.b.height0 == 1) {
+ /* If height == 1, disable microtiling except for zbuffer. */
+ if (!is_zb && tex->b.b.height0 == 1) {
return;
}