9fc3862d
by Elizabeth Figura at 2025-10-01T11:04:08+02:00
ddraw/tests: Fix test_caps() on Windows 98.
Tested with an ATI Rage 128 and a NVidia GeForce 2 MX under Windows 98.
This fixes a number of failures:
* DirectDraw drivers on Windows 98 sometimes support some flags listed under
caps_never, namely ALPHA, SYSTEMMEMORY, VISIBLE, HWCODEC, MODEX,
STANDARDVGAMODE.
* DirectDraw drivers on Windows 98 sometimes lack some flags listed under
caps_hal, namely COMPLEX, FRONTBUFFER, LOCALVIDMEM and NONLOCALVIDMEM.
* SYSTEMMEMORY and OVERLAY are additionally both supported on both the ATI and
NVidia cards on Windows 98, but not WARP. Conversely, WARP supports COMPLEX
and OWNDC, which neither the ATI or NVIDIA cards do. I haven't gone to the
trouble of marking these flags as WARP-specific, however.
* HEL caps are uniform across drivers, including WARP. Since the HEL is a
Microsoft component this is not particularly surprising. Accordingly those
tests are tightened to check for an exact match, and the caps_hal and
caps_always flags are combined and simplified.
* Current WARP seems to have fixed divergence in behaviour between 32-bit and
64-bit ddraw.