Antialiasing_tests
AAOnThenOffCPUWrite
Configure the framebuffer surface with some antialiasing mode, clear, change the mode, modify the framebuffer by writing directly to VRAM, then render. Used to reproduce xemu-project/xemu#652.
CompositeBlurCenter1
As CompositeCenter1, but the composite uses four vertically offset taps (-3, -1, +1, +3 texels) weighted by combiner constants (0x2A, 0x55, 0x55, 0x2A) as done by Rugby 2005's depth of field effect. The composite should be a slightly vertically blurred version of the source.
CompositeBlurCenterCorner2
As CompositeCenterCorner2, but with the four tap vertical blur described in CompositeBlurCenter1. This most closely replicates Rugby 2005 (xemu-project/xemu#2388). The composite should be a slightly vertically blurred version of the source, filling the entire 256x256 target.
CompositeBlurSquareOffset4
As CompositeSquareOffset4, but with the four tap vertical blur described in CompositeBlurCenter1.
CompositeCenter1
Renders a 256x192 surface with NV097_SET_SURFACE_FORMAT_ANTI_ALIASING_CENTER_1, then samples it as a linear texture whose image rect matches the surface pitch to draw a full screen quad into a 256x256 swizzled surface. The left side of the screen shows the source surface, the right side shows the swizzled composite at 1:1. The composite should contain the entire source image stretched to fill the 256x256 target. This is the non-antialiased control case.
CompositeCenterCorner2
As CompositeCenter1, but the source uses NV097_SET_SURFACE_FORMAT_ANTI_ALIASING_CENTER_CORNER_2, so the backing surface (and texture image rect) is 512x192. The composite should contain the entire source image (all 8 bars and the full arrow) stretched to fill the 256x256 target, just as in CompositeCenter1.
CompositeSquareOffset4
As CompositeCenter1, but the source uses NV097_SET_SURFACE_FORMAT_ANTI_ALIASING_SQUARE_OFFSET_4, so the backing surface (and texture image rect) is 512x384. The composite should contain the entire source image stretched to fill the 256x256 target.
CPUWriteIgnoresSurfaceConfig
This test verifies that direct writes to VRAM bypass any surface configuration. It sets up a texture surface with antialiasing enabled, then writes directly to texture memory and renders the texture to the screen. It is expected that antialiasing has no effect.
CreateSurfaceWithCenter1
Tests rendering with NV097_SET_SURFACE_FORMAT_ANTI_ALIASING_CENTER_1
CreateSurfaceWithCenterCorner2
Tests rendering with NV097_SET_SURFACE_FORMAT_ANTI_ALIASING_CENTER_CORNER_2
CreateSurfaceWithSquareOffset4
Tests rendering with NV097_SET_SURFACE_FORMAT_ANTI_ALIASING_SQUARE_OFFSET_4
FBSurfaceWithCenter1
FBSurfaceWithCenterCorner2
FramebufferNotModifiedBySurfaceState
GPUAAWriteAfterCPUWrite
NonAACPURoundTrip
SurfaceStatesAreIndependent