radeon: disable 2D tiling on buffers < 128 pixels

Seems to run into alignment problems with certain
card configurations.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=70675

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Vadim Girlin
2013-11-01 10:36:39 -04:00
committed by Alex Deucher
parent 0c921edf01
commit 3b38701a72

View File

@@ -124,7 +124,7 @@ radeon_alloc_pixmap_bo(ScrnInfoPtr pScrn, int width, int height, int depth,
surface.last_level = 0;
surface.bpe = cpp;
surface.nsamples = 1;
if (height < 64) {
if (height < 128) {
/* disable 2d tiling for small surface to work around
* the fact that ddx align height to 8 pixel for old
* obscure reason i can't remember