aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-12-06 14:03:55 +0000
committerDave Airlie <[email protected]>2011-12-06 15:11:36 +0000
commit61a40581d26d17fd9351914b267f364dbb12f8d0 (patch)
treeaa1f021825c8ae3c4b4e7f8ce48bb15a7d67424c /src/mesa
parente98521e0f3ef430adc0eb2587ffe83844e24be06 (diff)
r200: handle Z24 depth buffers correctly
The same detiling pattern applies to X8_Z24 as well. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_fbo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c
index 4dd523f0e34..31203cc1d5c 100644
--- a/src/mesa/drivers/dri/radeon/radeon_fbo.c
+++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c
@@ -214,7 +214,7 @@ radeon_map_renderbuffer(struct gl_context *ctx,
}
#if defined(RADEON_R200)
- if (rb->Format == MESA_FORMAT_S8_Z24 && !rrb->has_surface) {
+ if ((rb->Format == MESA_FORMAT_S8_Z24 || rb->Format == MESA_FORMAT_X8_Z24) && !rrb->has_surface) {
radeon_map_renderbuffer_s8z24(ctx, rb, x, y, w, h,
mode, out_map, out_stride);
return;
@@ -286,7 +286,7 @@ radeon_unmap_renderbuffer(struct gl_context *ctx,
GLboolean ok;
#ifdef RADEON_R200
- if (rb->Format == MESA_FORMAT_S8_Z24 && !rrb->has_surface) {
+ if ((rb->Format == MESA_FORMAT_S8_Z24 || rb->Format == MESA_FORMAT_X8_Z24) && !rrb->has_surface) {
radeon_unmap_renderbuffer_s8z24(ctx, rb);
return;
}