summaryrefslogtreecommitdiff
path: root/src/radeon_dri2.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-12-06 13:42:49 +0000
committerDave Airlie <airlied@redhat.com>2011-12-06 13:42:49 +0000
commitba46c7b0cf72d157748981eb3224d5eefb6200aa (patch)
treed5f39ece61a65148218a5d6c3ed820f443c2c1f8 /src/radeon_dri2.c
parent98b2d5fe1722a43c4bbe7711ed7180a3fb65305f (diff)
radeon: refine always tiled depth check
So it appears the M7 family always tiles its depth buffer also. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_dri2.c')
-rw-r--r--src/radeon_dri2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 9fd3658f..54637919 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -121,7 +121,7 @@ radeon_dri2_create_buffers(DrawablePtr drawable,
flags = RADEON_CREATE_PIXMAP_TILING_MICRO;
else
flags = RADEON_CREATE_PIXMAP_TILING_MACRO | RADEON_CREATE_PIXMAP_TILING_MICRO;
- if (IS_R200_3D)
+ if (IS_R200_3D || info->ChipFamiy == CHIP_FAMILY_RV200)
flags |= RADEON_CREATE_PIXMAP_DEPTH;
break;
case DRI2BufferDepthStencil:
@@ -134,7 +134,7 @@ radeon_dri2_create_buffers(DrawablePtr drawable,
need_enlarge = 1;
} else
flags = RADEON_CREATE_PIXMAP_TILING_MACRO | RADEON_CREATE_PIXMAP_TILING_MICRO;
- if (IS_R200_3D)
+ if (IS_R200_3D || info->ChipFamily == CHIP_FAMILY_RV200)
flags |= RADEON_CREATE_PIXMAP_DEPTH;
break;
case DRI2BufferBackLeft: