Present Validation 2 (FullScreen)

This automated test verifies that all modes that the EnumAdapterModes method reports for the device are available to applications.

The test uses the following parameters: back buffer format, screen resolution, present intervals, swap effects, and multisample types.

The DoNotWait test calls the swap chain's Present method in a loop, passes the D3DPRESENT_DONOTWAIT option (in full-screen mode), and uses the D3DPRESENT_INTERVAL_ONE value. As a result, the driver's queue of frames will exceed the allowed maximum of three. The DoNotWait test expects the driver to return control to the application by using the D3DERR_WASSTILLDRAWING error code. If the error code is not returned, the test fails.

The LockDoNotWait test is similar to the DoNotWait test but occurs on a surface (the back buffer). The same behavior is expected of the driver. If the error code is not returned, the test fails.

This topic applies to the following test jobs:

  • Present Validation 2 (FullScreen)

  • Present Validation 2 (FullScreen) (WoW64)

Test details

Associated requirements

Device.Graphics.AdapterRender.MinimumDirectXLevel

See the device hardware requirements.

Platforms

Windows 7 (x64) Windows 7 (x86) Windows RT (ARM-based) Windows 8 (x64) Windows 8 (x86) Windows Server 2012 (x64) Windows Server 2008 R2 (x64) Windows RT 8.1 Windows 8.1 x64 Windows 8.1 x86 Windows Server 2012 R2

Expected run time

~9 minutes

Categories

Certification Functional

Type

Automated

 

Running the test

Before you run the test, complete the test setup as described in the test requirements: Graphic Adapter or Chipset Testing Prerequisites.

Troubleshooting

For troubleshooting information, see Troubleshooting Device.Graphics Testing.

More information

The test displays on-screen pass-or-fail compliance and writes the results to a log file that is named Present2.xml. Present2.xml is written to the %windir%\dxlogs directory.

If the call to the Reset method fails, you can check the values that the test used for the back buffer format and size in the log file. If the image comparison fails, the test prints the image-comparison statistics, just like the other Present Validation tests in the group.

The following table lists the image surfaces that the test uses. If you specify the -Save command option, the test saves these files.

File Location

Texture.dds

The texture that is used to fill the quad that is used in Present operations.

SourceSurface.bmp

The source surface in the back buffer. For full-screen Present operations, this surface is the whole buffer.

DestSurface.bmp

The destination surface in the front buffer. For full-screen Present operations, this surface is the whole buffer.

RefSurface.bmp

The reference surface, as computed by the Microsoft® Direct3D® API.

DiffSurface.bmp

The difference between the front buffer and the reference image.

FrontBuffer.bmp

The contents of the front buffer.

 

Command syntax

Command option Description

Present2_fullscreen.exe -M:1 -dx9 -whql -logclean

Runs the Present Validation 2 (FullScreen) test job.

Present2_fullscreen.exe -M:1 -whql -logclean

Runs the Present Validation 2 (FullScreen) (WoW64) test job.

 

Note  

For command-line help for this test binary, type /?.

 

File list

File Location

Configdisplay.exe

<[testbinroot]>\nttest\windowstest\tools

D3d10ref.dll

<[testbinroot]>\nttest\windowstest\graphics\d3d\support\

D3d11ref.dll

<[testbinroot]>\nttest\windowstest\graphics\d3d\support\

D3dcompiler_test.dll

<[testbinroot]>\nttest\windowstest\graphics\d3d\support\

D3dref9.dll

<[testbinroot]>\nttest\windowstest\graphics\d3d\support\

D3dx10_test.dll

<[testbinroot]>\nttest\windowstest\graphics\d3d\support\

D3dx11_test.dll

<[testbinroot]>\nttest\windowstest\graphics\d3d\support\

D3dx9_test.dll

<[testbinroot]>\nttest\windowstest\graphics\d3d\support\

Fpstate.dll

<[testbinroot]>\nttest\windowstest\graphics\d3d\utility\

Modechange.exe

<[testbinroot]>\nttest\windowstest\graphics\d3d\utility\

Present2_fullscreen.exe

<[testbinroot]>\nttest\

TDRWatch.exe

<[testbinroot]>\nttest\windowstest\graphics\

Vbswap.x

<[testbinroot]>\nttest\windowstest\graphics\d3d\conf\

 

 

 

Send comments about this topic to Microsoft