[Mesa-dev] [PATCH] Fix surf->bankh init by default value when surf->tile_split == 0

Maks Naumov maksqwe1 at ukr.net
Mon Aug 18 12:59:35 PDT 2014


Signed-off-by: Maks Naumov <maksqwe1 at ukr.net>
---
 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 e056ed4..40a544a 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;
     }
-- 
1.9.1





More information about the mesa-dev mailing list