mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
radv/si: fix optimal micro tile selection
The same fix was posted for radeonsi, so port it here.
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 9838db8f64)
This commit is contained in:
parent
d653c84a68
commit
17dee709a9
1 changed files with 7 additions and 7 deletions
|
|
@ -831,29 +831,29 @@ void radv_image_set_optimal_micro_tile_mode(struct radv_device *device,
|
|||
switch (micro_tile_mode) {
|
||||
case 0: /* displayable */
|
||||
switch (image->surface.bpe) {
|
||||
case 8:
|
||||
case 1:
|
||||
image->surface.tiling_index[0] = 10;
|
||||
break;
|
||||
case 16:
|
||||
case 2:
|
||||
image->surface.tiling_index[0] = 11;
|
||||
break;
|
||||
default: /* 32, 64 */
|
||||
default: /* 4, 8 */
|
||||
image->surface.tiling_index[0] = 12;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 1: /* thin */
|
||||
switch (image->surface.bpe) {
|
||||
case 8:
|
||||
case 1:
|
||||
image->surface.tiling_index[0] = 14;
|
||||
break;
|
||||
case 16:
|
||||
case 2:
|
||||
image->surface.tiling_index[0] = 15;
|
||||
break;
|
||||
case 32:
|
||||
case 4:
|
||||
image->surface.tiling_index[0] = 16;
|
||||
break;
|
||||
default: /* 64, 128 */
|
||||
default: /* 8, 16 */
|
||||
image->surface.tiling_index[0] = 17;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue