Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Andrew-R

macrumors member
Original poster
May 18, 2024
94
11
Found this in recent patch posting to qemu project.


I wonder if any of this can be ported to OSX or extended by members of this or 68kmla community?

ATI Tests​


Hardware tests for the ATI Rage128 and R100. Used for validation of the ati-vgaQEMU display device. These tests are intended to be run on real ATI hardwareand then also run on QEMU for validation.


Building​


If running Nix or NixOS the flake.nix includes a dev shell with all requireddependencies. If not, the following are required:


  • gcc
  • make
  • pciutils

Then: make


Setup​


Baremetal​


By default this compiles a baremetal elf file that can be loaded via QEMU's-kernel argument. This mode requires much less setup and is the preferredway to run tests at this point. See "Running".


Linux​


There are a lot of assumptions made about the state of the system when runningthese tests. I've run them in QEMU and on real hardware running Debian Lenny andDebian Squeeze. Before running the tests it's required to start a minimal Xenvironment: Xorg :0. The xserver-xorg-video-r128 driver must also be compiledwith DRI disabled to force use of MMIO. The version distributed with Debianis compiled with DRI which will always use CCE (not yet supported in QEMU ati-vga).


The Xorg display should be configured at 640x480 @ 32-bit color (BGRA).

Note that I avoided whole recompilation of DDX by just moving Linux kernel drm driver out of its place in /lib/modules to somewhere else.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.