radeon: Fix surf->bankh init by default value when surf->tile_split == 0

Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
main
Maks Naumov 2014-08-18 12:59:35 -07:00 committed by Marek Olšák
parent 22b995d8cb
commit 391bba9c4c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}