winsys/radeon: handle squared micro tiling from GEM_GET_TILING
authorMarek Olšák <marek.olsak@amd.com>
Fri, 4 Apr 2014 18:16:36 +0000 (20:16 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 Apr 2014 18:50:17 +0000 (20:50 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_bo.c

index 3dfa52589ccd8bebeb1ebc77143e14e3ddf61010..95c20537c71dc452a6b6491c87469b7e24594e36 100644 (file)
@@ -779,6 +779,8 @@ static void radeon_bo_get_tiling(struct pb_buffer *_buf,
     *macrotiled = RADEON_LAYOUT_LINEAR;
     if (args.tiling_flags & RADEON_BO_FLAGS_MICRO_TILE)
         *microtiled = RADEON_LAYOUT_TILED;
+    else if (args.tiling_flags & RADEON_TILING_MICRO_SQUARE)
+        *microtiled = RADEON_LAYOUT_SQUARETILED;
 
     if (args.tiling_flags & RADEON_BO_FLAGS_MACRO_TILE)
         *macrotiled = RADEON_LAYOUT_TILED;