summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/radeon
diff options
context:
space:
mode:
authorAlexandre Demers <[email protected]>2016-02-10 09:45:46 -0500
committerMarek Olšák <[email protected]>2016-02-10 19:29:41 +0100
commit111602e15909ee2785334db008ac17d4eee8f391 (patch)
treefcd2c325dd6bbfbe2ea9bfe1e1f59b18d748e4b2 /src/gallium/winsys/radeon
parent5e8db898fd53b7622e21616f0ff27d985d7be758 (diff)
winsys/radeon: better explain the num_tile_pipes fixup for TAHITI (v2)
v2: Clarify the relation between num_tiles_pipes and GB_TILE_MODE and the fix needed for Tahiti as suggested by Marek. Signed-off-by: Alexandre Demers <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/winsys/radeon')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_winsys.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
index 49c310cfdf7..73ef0519a8b 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
@@ -405,8 +405,10 @@ static boolean do_winsys_init(struct radeon_drm_winsys *ws)
radeon_get_drm_value(ws->fd, RADEON_INFO_NUM_TILE_PIPES, NULL,
&ws->info.num_tile_pipes);
- /* The kernel returns 12 for some cards for an unknown reason.
- * I thought this was supposed to be a power of two.
+ /* "num_tiles_pipes" must be equal to the number of pipes (Px) in the
+ /* pipe config field of the GB_TILE_MODE array. Only one card (Tahiti)
+ /* reports a different value (12). Fix it by setting what's in the
+ /* GB_TILE_MODE array (8).
*/
if (ws->gen == DRV_SI && ws->info.num_tile_pipes == 12)
ws->info.num_tile_pipes = 8;