xemu_enhancement
Description
Tests various enhancements (changes that intentionally depart from hardware) specific to the xemu emulator (
https://xemu.app
).
Suite class def
XemuScaledSurfaceUploadFilter
Writes 1-pixel-wide alternating R/B vertical stripes to the framebuffer via CPU, then issues a GPU draw to trigger xemu's internal surface upload (pgraph_vk_upload_surface_data). After GPU completion the framebuffer is read back via CPU, which triggers xemu's download path. At scale > 1x the NEAREST+NEAREST round-trip preserves exact R/B values, while any other filtering produces blended intermediate values that fail the channel-purity check. At scale == 1x no upscale occurs and the test passes trivially.
Image with alpha
Image as seen on display