From: Marek Olšák Date: Fri, 4 Apr 2014 18:16:36 +0000 (+0200) Subject: winsys/radeon: handle squared micro tiling from GEM_GET_TILING X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3e05c6db96b841fbbaffb020730b2710db211c2;p=mesa.git winsys/radeon: handle squared micro tiling from GEM_GET_TILING Reviewed-by: Michel Dänzer Reviewed-by: Christian König --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 3dfa52589cc..95c20537c71 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -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;