summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-08-27 09:52:11 +0200
committerMichel Dänzer <daenzer@vmware.com>2009-08-27 09:52:11 +0200
commitb90b823790657707b5bf7249095833bef959b0e8 (patch)
treebf8495562336019d38f1eb090be96b2ced0a5e55
parent27d9664f8862d1948dd32021f8e9bcb94f23e4ef (diff)
DRI2: Set tiling for depth/stencil buffers with all DRI2 interface versions.
-rw-r--r--src/radeon_dri2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index c303f7b..613fde8 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -91,6 +91,10 @@ radeon_dri2_create_buffers(DrawablePtr drawable,
} else {
/* tile the back buffer */
switch(attachments[i]) {
+ case DRI2BufferDepth:
+ case DRI2BufferDepthStencil:
+ flags = RADEON_CREATE_PIXMAP_TILING_MACRO | RADEON_CREATE_PIXMAP_TILING_MICRO;
+ break;
case DRI2BufferBackLeft:
case DRI2BufferBackRight:
case DRI2BufferFakeFrontLeft: