diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-10-23 15:29:18 +0200 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-10-27 11:21:24 +0100 |
commit | b214af38b9f5c1422d53f6477483dec984c14952 (patch) | |
tree | bca29d0e89463ef733e15342baf81bff42ad6183 /src | |
parent | fbfc01e654c4afc73bb91030448b02edb7f0efda (diff) | |
download | external_mesa3d-b214af38b9f5c1422d53f6477483dec984c14952.zip external_mesa3d-b214af38b9f5c1422d53f6477483dec984c14952.tar.gz external_mesa3d-b214af38b9f5c1422d53f6477483dec984c14952.tar.bz2 |
gallium/radeon: fix incorrect bpe use in si_set_optimal_micro_tile_mode
Oh my god, I wonder what catastrophic issues this was causing on SI.
Cc: 13.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
(cherry picked from commit 8a21f52d73936e23a314a288a36782a698c7c1b9)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 625d091..b57cc92 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -2442,29 +2442,29 @@ static void si_set_optimal_micro_tile_mode(struct r600_common_screen *rscreen, switch (rtex->last_msaa_resolve_target_micro_mode) { case 0: /* displayable */ switch (rtex->surface.bpe) { - case 8: + case 1: rtex->surface.tiling_index[0] = 10; break; - case 16: + case 2: rtex->surface.tiling_index[0] = 11; break; - default: /* 32, 64 */ + default: /* 4, 8 */ rtex->surface.tiling_index[0] = 12; break; } break; case 1: /* thin */ switch (rtex->surface.bpe) { - case 8: + case 1: rtex->surface.tiling_index[0] = 14; break; - case 16: + case 2: rtex->surface.tiling_index[0] = 15; break; - case 32: + case 4: rtex->surface.tiling_index[0] = 16; break; - default: /* 64, 128 */ + default: /* 8, 16 */ rtex->surface.tiling_index[0] = 17; break; } |