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:
joevt 2024-08-13 03:35:20 -07:00 committed by dingusdev
parent 5a0a7b12e4
commit 4b13af6691

View File

@ -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: