diff options
author | Dave Airlie <airlied@redhat.com> | 2011-12-05 18:44:28 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-05 18:44:28 +0000 |
commit | 98b2d5fe1722a43c4bbe7711ed7180a3fb65305f (patch) | |
tree | a2b1fb23519cfdd7d6555225c3142e273806fcf4 /src/radeon_exa.c | |
parent | 7dcefc69d9fbceae27cd03083c815e01a19b527e (diff) |
radeon: r200 depth buffers are always tiled
When we do the allocations we need to make sure the always tiled
nature is taken into account.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r-- | src/radeon_exa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c index f3daec04..95646ab1 100644 --- a/src/radeon_exa.c +++ b/src/radeon_exa.c @@ -473,6 +473,9 @@ void *RADEONEXACreatePixmap2(ScreenPtr pScreen, int width, int height, if (usage_hint & RADEON_CREATE_PIXMAP_TILING_MICRO) tiling |= RADEON_TILING_MICRO; } + if ((usage_hint & RADEON_CREATE_PIXMAP_DEPTH) && IS_R200_3D) + tiling |= RADEON_TILING_MACRO | RADEON_TILING_MICRO; + } /* Small pixmaps must not be macrotiled on R300, hw cannot sample them |