Navigate to the top level

Surface_format

Description
Tests behavior of NV097_SET_SURFACE_FORMAT_COLOR. Tests render two quads into a render target with the surface color format under test. The left quad consists of 4 color gradient patches (red, yellow, cyan, blue) with alpha forced to fully opaque. The second quad uses the same color gradients but has alpha set in a radial pattern such that it is 0 at the corners and fully opaque in the center.
The resultant surface is then rendered to an RGBA framebuffer twice, once at the top of the screen with the alpha channel preserved, and again at the bottom of the screen with alpha forced to fully opaque.
Suite class def

Fmt_A8R8G8B8

Tests the A8R8G8B8 surface format. Quads appear the same as if they were rendered directly into the framebuffer.

Image with alpha
Test result for Surface_format::Fmt_A8R8G8B8
Image as seen on display
No alpha test result for Surface_format::Fmt_A8R8G8B8

Fmt_B8

Tests the B8 surface format. Quads appear as alpha+luma ramps and are distorted and repeated due to the difference in bytes per pixel.

Image with alpha
Test result for Surface_format::Fmt_B8
Image as seen on display
No alpha test result for Surface_format::Fmt_B8

Fmt_G8B8

Tests the G8B8 surface format. Quads set the red channel equal to the blue channel and alpha equal to the green channel. Quads are once again repeated due to the difference in bytes per pixel.

Image with alpha
Test result for Surface_format::Fmt_G8B8
Image as seen on display
No alpha test result for Surface_format::Fmt_G8B8

Fmt_R5G6B5

Tests the R5G6B5 surface format.

Image with alpha
Test result for Surface_format::Fmt_R5G6B5
Image as seen on display
No alpha test result for Surface_format::Fmt_R5G6B5

Fmt_X1A7R8G8B8_O1A7R8G8B8

Tests the X1A7R8G8B8_O1A7R8G8B8 surface format. Quads appear similar to A8R8G8B8, but the high bit of the alpha is set to 1, causing all quads to be less translucent.

Image with alpha
Test result for Surface_format::Fmt_X1A7R8G8B8_O1A7R8G8B8
Image as seen on display
No alpha test result for Surface_format::Fmt_X1A7R8G8B8_O1A7R8G8B8

Fmt_X1A7R8G8B8_Z1A7R8G8B8

Tests the X1A7R8G8B8_Z1A7R8G8B8 surface format. Quads appear similar to A8R8G8B8, but the high bit of the alpha is set to 0, causing all quads to be translucent.

Image with alpha
Test result for Surface_format::Fmt_X1A7R8G8B8_Z1A7R8G8B8
Image as seen on display
No alpha test result for Surface_format::Fmt_X1A7R8G8B8_Z1A7R8G8B8

Fmt_X1R5G5B5_O1R5G5B5

Tests the X1R5G5B5_O1R5G5B5 surface format.

Image with alpha
Test result for Surface_format::Fmt_X1R5G5B5_O1R5G5B5
Image as seen on display
No alpha test result for Surface_format::Fmt_X1R5G5B5_O1R5G5B5

Fmt_X1R5G5B5_Z1R5G5B5

Tests the X1R5G5B5_Z1R5G5B5 surface format.

Image with alpha
Test result for Surface_format::Fmt_X1R5G5B5_Z1R5G5B5
Image as seen on display
No alpha test result for Surface_format::Fmt_X1R5G5B5_Z1R5G5B5

Fmt_X8R8G8B8_O8R8G8B8

Tests the X8R8G8B8_O8R8G8B8 surface format. Quads appear similar to A8R8G8B8, but the alpha is set to fully opaque.

Image with alpha
Test result for Surface_format::Fmt_X8R8G8B8_O8R8G8B8
Image as seen on display
No alpha test result for Surface_format::Fmt_X8R8G8B8_O8R8G8B8

Fmt_X8R8G8B8_Z8R8G8B8

Tests the X8R8G8B8_Z8R8G8B8 surface format. Quads appear similar to A8R8G8B8, but the alpha is set to fully transparent (no quads should appear in the top half of the image).

Image with alpha
Test result for Surface_format::Fmt_X8R8G8B8_Z8R8G8B8
Image as seen on display
No alpha test result for Surface_format::Fmt_X8R8G8B8_Z8R8G8B8