mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-09 21:31:24 +00:00
atirage: Change BAR 0 size calculation.
We only need up to BE_FB_OFFSET + this->vram_size. If vram_size is 8MB, then make sure the last 4K is not mapped to BAR 0 because the macOS driver likes to map BAR 2 at that location.
This commit is contained in:
parent
5a0a7b12e4
commit
4b13af6691
@ -169,7 +169,7 @@ void ATIRage::notify_bar_change(int bar_num)
|
||||
switch (bar_num) {
|
||||
case 0:
|
||||
change_one_bar(this->aperture_base[bar_num],
|
||||
this->aperture_size[bar_num] - this->vram_size,
|
||||
std::min(this->aperture_size[bar_num] - 4096, BE_FB_OFFSET + this->vram_size),
|
||||
this->bars[bar_num] & ~15, bar_num);
|
||||
break;
|
||||
case 2:
|
||||
|
Loading…
x
Reference in New Issue
Block a user