From 7417e62174b0af6b43382d197cb0da50032b998c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 29 May 2011 19:56:08 +0200 Subject: [PATCH] r300g: set depth pitch for the dummy zbuffer --- src/gallium/drivers/r300/r300_emit.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index 5d6188e..0a82049 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -450,7 +450,8 @@ void r300_emit_fb_state(struct r300_context* r300, unsigned size, void* state) OUT_CS_REG(R300_ZB_DEPTHOFFSET, 0); OUT_CS_RELOC(surf); - OUT_CS_REG(R300_ZB_DEPTHPITCH, 4 | R300_DEPTHMICROTILE_TILED); + OUT_CS_REG(R300_ZB_DEPTHPITCH, align(surf->pitch & 0x1ffffc, 4) | + R300_DEPTHMICROTILE_TILED); OUT_CS_RELOC(surf); } -- 1.7.4.1