mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
r600g: fix num_banks interpretation on eg+
Field is encoded: 0 = 4 banks 1 = 8 banks 2 = 16 banks Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
This commit is contained in:
parent
eb2c9b5814
commit
c4930cb417
1 changed files with 14 additions and 1 deletions
|
|
@ -156,7 +156,20 @@ static int eg_interpret_tiling(struct radeon *radeon, uint32_t tiling_config)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
radeon->tiling_info.num_banks = (tiling_config & 0xf0) >> 4;
|
||||
switch ((tiling_config & 0xf0) >> 4) {
|
||||
case 0:
|
||||
radeon->tiling_info.num_banks = 4;
|
||||
break;
|
||||
case 1:
|
||||
radeon->tiling_info.num_banks = 8;
|
||||
break;
|
||||
case 2:
|
||||
radeon->tiling_info.num_banks = 16;
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
||||
}
|
||||
|
||||
switch ((tiling_config & 0xf00) >> 8) {
|
||||
case 0:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue