aboutsummaryrefslogtreecommitdiffstats
path: root/radeon
diff options
context:
space:
mode:
authorMaks Naumov2014-08-18 14:59:35 -0500
committerMarek Olšák2014-08-25 06:07:12 -0500
commit391bba9c4cd2825eadaa648df10e3d1c99c66e80 (patch)
tree5bb501bb5a1a6043c29621b061f3ee4fe68d9ee0 /radeon
parent22b995d8cbf1059535c5de5ba1869c1623ae5b08 (diff)
downloadexternal-libdrm-391bba9c4cd2825eadaa648df10e3d1c99c66e80.tar.gz
external-libdrm-391bba9c4cd2825eadaa648df10e3d1c99c66e80.tar.xz
external-libdrm-391bba9c4cd2825eadaa648df10e3d1c99c66e80.zip
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>
Diffstat (limited to 'radeon')
-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,
1311 /* default value */ 1311 /* default value */
1312 surf->mtilea = 1; 1312 surf->mtilea = 1;
1313 surf->bankw = 1; 1313 surf->bankw = 1;
1314 surf->bankw = 1; 1314 surf->bankh = 1;
1315 surf->tile_split = 64; 1315 surf->tile_split = 64;
1316 surf->stencil_tile_split = 64; 1316 surf->stencil_tile_split = 64;
1317 } 1317 }
@@ -2138,7 +2138,7 @@ static int cik_surface_sanity(struct radeon_surface_manager *surf_man,
2138 /* default value */ 2138 /* default value */
2139 surf->mtilea = 1; 2139 surf->mtilea = 1;
2140 surf->bankw = 1; 2140 surf->bankw = 1;
2141 surf->bankw = 1; 2141 surf->bankh = 1;
2142 surf->tile_split = 64; 2142 surf->tile_split = 64;
2143 surf->stencil_tile_split = 64; 2143 surf->stencil_tile_split = 64;
2144 } 2144 }