From 391bba9c4cd2825eadaa648df10e3d1c99c66e80 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Mon, 18 Aug 2014 12:59:35 -0700 Subject: radeon: Fix surf->bankh init by default value when surf->tile_split == 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maks Naumov Signed-off-by: Marek Olšák --- radeon/radeon_surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c index e056ed42..40a544a0 100644 --- a/radeon/radeon_surface.c +++ b/radeon/radeon_surface.c @@ -1311,7 +1311,7 @@ static int si_surface_sanity(struct radeon_surface_manager *surf_man, /* default value */ surf->mtilea = 1; surf->bankw = 1; - surf->bankw = 1; + surf->bankh = 1; surf->tile_split = 64; surf->stencil_tile_split = 64; } @@ -2138,7 +2138,7 @@ static int cik_surface_sanity(struct radeon_surface_manager *surf_man, /* default value */ surf->mtilea = 1; surf->bankw = 1; - surf->bankw = 1; + surf->bankh = 1; surf->tile_split = 64; surf->stencil_tile_split = 64; } -- cgit v1.2.3