summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaks Naumov <maksqwe1@ukr.net>2014-08-18 12:59:35 -0700
committerMarek Olšák <marek.olsak@amd.com>2014-08-25 13:07:12 +0200
commit391bba9c4cd2825eadaa648df10e3d1c99c66e80 (patch)
tree5bb501bb5a1a6043c29621b061f3ee4fe68d9ee0
parent22b995d8cbf1059535c5de5ba1869c1623ae5b08 (diff)
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>
-rw-r--r--radeon/radeon_surface.c4
1 files 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;
}