Navigate to the top level

Clear

Description
Tests the behavior of various write masks on NV097_CLEAR_SURFACE.
Color mask (C*) tests: Each test draws some geometry, then modifies the NV097_SET_COLOR_MASK, NV097_SET_DEPTH_MASK, and NV097_SET_STENCIL_MASK settings, then invokes NV097_CLEAR_SURFACE.
In all cases, the clear color is set to 0x7F7F7F7F and the depth value is set to 0xFFFFFFFF.
Surface format color (SFC*) tests: Each test clears a render target surface and then renders it as a texture with alpha blending disabled in order to test the interaction of surface format with NV097_CLEAR_SURFACE_COLOR.
Suite class def

C00000000_Depth_n

Framebuffer result after disabling writing to all color channels and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000000_Depth_n
Image as seen on display
No alpha test result for Clear::C00000000_Depth_n

C00000000_Depth_n_ZB

Z-buffer result after disabling writing to all color channels and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000000_Depth_n_ZB
Image as seen on display
No alpha test result for Clear::C00000000_Depth_n_ZB

C00000000_Depth_y

Framebuffer result after disabling writing to all color channels and enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000000_Depth_y
Image as seen on display
No alpha test result for Clear::C00000000_Depth_y

C00000000_Depth_y_ZB

Z-buffer result after disabling writing to all color channels and enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000000_Depth_y_ZB
Image as seen on display
No alpha test result for Clear::C00000000_Depth_y_ZB

C00000001_Depth_n

Framebuffer result after disabling writing to all color channels except blue and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000001_Depth_n
Image as seen on display
No alpha test result for Clear::C00000001_Depth_n

C00000001_Depth_n_ZB

Z-buffer result after disabling writing to all color channels except blue and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000001_Depth_n_ZB
Image as seen on display
No alpha test result for Clear::C00000001_Depth_n_ZB

C00000001_Depth_y

Framebuffer result after disabling writing to all color channels except blue enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000001_Depth_y
Image as seen on display
No alpha test result for Clear::C00000001_Depth_y

C00000001_Depth_y_ZB

Z-buffer result after disabling writing to all color channels except blue enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000001_Depth_y_ZB
Image as seen on display
No alpha test result for Clear::C00000001_Depth_y_ZB

C00000100_Depth_n

Framebuffer result after disabling writing to all color channels except green and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000100_Depth_n
Image as seen on display
No alpha test result for Clear::C00000100_Depth_n

C00000100_Depth_n_ZB

Z-buffer result after disabling writing to all color channels except green and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000100_Depth_n_ZB
Image as seen on display
No alpha test result for Clear::C00000100_Depth_n_ZB

C00000100_Depth_y

Framebuffer result after disabling writing to all color channels except green and enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000100_Depth_y
Image as seen on display
No alpha test result for Clear::C00000100_Depth_y

C00000100_Depth_y_ZB

Z-buffer result after disabling writing to all color channels except green and enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00000100_Depth_y_ZB
Image as seen on display
No alpha test result for Clear::C00000100_Depth_y_ZB

C00010000_Depth_n

Framebuffer result after disabling writing to all color channels except red and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00010000_Depth_n
Image as seen on display
No alpha test result for Clear::C00010000_Depth_n

C00010000_Depth_n_ZB

Z-buffer result after disabling writing to all color channels except red and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00010000_Depth_n_ZB
Image as seen on display
No alpha test result for Clear::C00010000_Depth_n_ZB

C00010000_Depth_y

Framebuffer result after disabling writing to all color channels except red and enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00010000_Depth_y
Image as seen on display
No alpha test result for Clear::C00010000_Depth_y

C00010000_Depth_y_ZB

Z-buffer result after disabling writing to all color channels except red and enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C00010000_Depth_y_ZB
Image as seen on display
No alpha test result for Clear::C00010000_Depth_y_ZB

C01000000_Depth_n

Framebuffer result after disabling writing to all color channels except alpha and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C01000000_Depth_n
Image as seen on display
No alpha test result for Clear::C01000000_Depth_n

C01000000_Depth_n_ZB

Z-buffer result after disabling writing to all color channels except alpha and to the depth/stencil buffer.

Image with alpha
Test result for Clear::C01000000_Depth_n_ZB
Image as seen on display
No alpha test result for Clear::C01000000_Depth_n_ZB

C01000000_Depth_y

Framebuffer result after disabling writing to all color channels except alpha and enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C01000000_Depth_y
Image as seen on display
No alpha test result for Clear::C01000000_Depth_y

C01000000_Depth_y_ZB

Z-buffer result after disabling writing to all color channels except alpha and enabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C01000000_Depth_y_ZB
Image as seen on display
No alpha test result for Clear::C01000000_Depth_y_ZB

C01010101_Depth_n

Framebuffer result after enabling writing to all color channels but disabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C01010101_Depth_n
Image as seen on display
No alpha test result for Clear::C01010101_Depth_n

C01010101_Depth_n_ZB

Z-buffer result after enabling writing to all color channels but disabling writes to the depth/stencil buffer.

Image with alpha
Test result for Clear::C01010101_Depth_n_ZB
Image as seen on display
No alpha test result for Clear::C01010101_Depth_n_ZB

C01010101_Depth_y

Framebuffer result after enabling writing to all color channels and the depth/stencil buffer.

Image with alpha
Test result for Clear::C01010101_Depth_y
Image as seen on display
No alpha test result for Clear::C01010101_Depth_y

C01010101_Depth_y_ZB

Z-buffer result after enabling writing to all color channels and the depth/stencil buffer.

Image with alpha
Test result for Clear::C01010101_Depth_y_ZB
Image as seen on display
No alpha test result for Clear::C01010101_Depth_y_ZB

SCF_R5G6B5

Tests the effect of clear color on LE_R5G6B5 surface format. (Note that the surface is rendered as an ARGB8 texture)

Image with alpha
Test result for Clear::SCF_R5G6B5
Image as seen on display
No alpha test result for Clear::SCF_R5G6B5

SCF_X1A7R8G8B8_O1A7R8G8B8

Tests the effect of clear color on LE_X1A7R8G8B8_O1A7R8G8B8 surface format. The cleared surface will have its most significant bit set to 1.

Image with alpha
Test result for Clear::SCF_X1A7R8G8B8_O1A7R8G8B8
Image as seen on display
No alpha test result for Clear::SCF_X1A7R8G8B8_O1A7R8G8B8

SCF_X1A7R8G8B8_Z1A7R8G8B8

Tests the effect of clear color on LE_X1A7R8G8B8_Z1A7R8G8B8 surface format. The cleared surface will have its most significant bit set to 0.

Image with alpha
Test result for Clear::SCF_X1A7R8G8B8_Z1A7R8G8B8
Image as seen on display
No alpha test result for Clear::SCF_X1A7R8G8B8_Z1A7R8G8B8

SCF_X1R5G5B5_O1R5G5B5

Image with alpha
Test result for Clear::SCF_X1R5G5B5_O1R5G5B5
Image as seen on display
No alpha test result for Clear::SCF_X1R5G5B5_O1R5G5B5

SCF_X8R8G8B8_O8R8G8B8

Tests the effect of clear color on LE_X8R8G8B8_O8R8G8B8 surface format. The cleared surface will have its most significant byte set to 1.

Image with alpha
Test result for Clear::SCF_X8R8G8B8_O8R8G8B8
Image as seen on display
No alpha test result for Clear::SCF_X8R8G8B8_O8R8G8B8

SCF_X8R8G8B8_Z8R8G8B8

Tests the effect of clear color on LE_X8R8G8B8_Z8R8G8B8 surface format. The cleared surface will have its most significant byte set to 0.

Image with alpha
Test result for Clear::SCF_X8R8G8B8_Z8R8G8B8
Image as seen on display
No alpha test result for Clear::SCF_X8R8G8B8_Z8R8G8B8

SFC_A8R8G8B8

Tests the effect of clear color on LE_A8R8G8B8 surface format.

Image with alpha
Test result for Clear::SFC_A8R8G8B8
Image as seen on display
No alpha test result for Clear::SFC_A8R8G8B8

SFC_X1R5G5B5_Z1R5G5B5

Tests the effect of clear color on LE_X1R5G5B5_Z1R5G5B5 surface format. The cleared surface will have its most significant bit set to 0. (Note that the surface is rendered as an ARGB8 texture)

Image with alpha
Test result for Clear::SFC_X1R5G5B5_Z1R5G5B5
Image as seen on display
No alpha test result for Clear::SFC_X1R5G5B5_Z1R5G5B5