libdrm/0001-radeon-Update-unaligned-offset-for-2D-1D-tiling-tran.patch
2013-12-02 09:01:21 +10:00

33 lines
1.1 KiB
Diff

From c8a437f4c76527b3c8385699ccee07f35fe3f166 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer@amd.com>
Date: Tue, 26 Nov 2013 18:16:03 +0900
Subject: [PATCH 1/2] radeon: Update unaligned offset for 2D->1D tiling
transition on SI
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71983
Tested-by: Arek Ruśniak <arek.rusi@gmail.com>
---
radeon/radeon_surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index b528a48..dcbbfdc 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -1667,7 +1667,7 @@ static int si_surface_init_2d(struct radeon_surface_manager *surf_man,
return si_surface_init_1d(surf_man, surf, level, bpe, tile_mode, offset, i);
}
/* level0 and first mipmap need to have alignment */
- aligned_offset = surf->bo_size;
+ aligned_offset = offset = surf->bo_size;
if ((i == 0)) {
aligned_offset = ALIGN(aligned_offset, surf->bo_alignment);
}
--
1.8.3.1