演示验证 2 - ColorConverting (WoW64)

此自动测试验证“Present()”方法。

具体而言,此测试执行以下任务:

  • 收缩或拉伸高度

  • 收缩或拉伸宽度

  • 剪裁到源区域

  • 剪裁到目标区域

  • 覆盖目标窗口

此测试既会单独执行这些任务,也会组合执行。 然后,它会验证结果输出的正确性。

本主题适用于以下测试作业:

  • 演示验证 2

  • 演示验证 2 (WoW64)

  • 演示验证 2 - ColorConverting

  • 演示验证 2 - ColorConverting (WoW64)

  • 演示验证 2 - GammaPresent

  • 演示验证 2 - GammaPresent (WoW64)

  • 演示验证 2 - 演示

  • 演示验证 2 - 演示 (WoW64)

测试详细信息

   
规范
  • Device.Graphics.AdapterRender.MinimumDirectXLevel
平台
  • Windows 10,客户端版本 (x64)
  • Windows Server 2016 (x64)
  • Windows 10,客户端版本 (Arm64)
支持的版本
  • Windows 10
  • Windows 10 版本 1511
  • Windows 10 版本 1607
  • Windows 10 版本 1703
  • Windows 10 版本 1709
  • Windows 10 版本 1803
  • Windows 10 版本 1809
  • Windows 10 版本 1903
  • Windows 10 的下一次更新
预计运行时间(以分钟为单位) 15
类别 兼容性
超时(以分钟为单位) 900
需要重启 false
需要特殊配置 false
类型 automatic

 

其他文档

此功能区域中的测试可能会有其他文档,包括先决条件、设置和故障排除信息,这些内容可在以下主题中找到:

运行测试

在运行测试之前,请按照如下测试要求中所述完成测试设置:图形适配器或芯片组测试先决条件

故障排除

有关 HLK 测试失败的常规故障排除,请参阅排查 Windows HLK 测试失败问题

有关故障排除信息,请参阅排查 Device.Graphics 测试问题

更多信息

此测试与标准演示验证测试类似。 不同之处在于,演示验证 2 将设备重置为后台缓冲区和前台缓冲区具有不同格式的状态(如果调用 CheckDeviceFormatConversion 方法成功)。 此测试执行与 Microsoft Direct3D API 生成的参考图像的比较。 驱动程序必须在这两种格式之间执行颜色转换。 (Direct3D 不执行任何软件仿真。)

此测试使用 IDirect3DSwapChain9::Present 方法和 D3DPRESENT_LINEAR_CONTENT 选项。

如果驱动程序支持灰度演示(即,驱动程序公开 D3DCAPS3 功能选项 D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION),则应进行灰度校正演示。 此测试通过使用灰度 2.2 校正对参考图像进行后处理,来验证输出是否正确。 如果驱动程序声明不支持灰度演示,则测试将验证是否未发生灰度校正。

此测试执行以下任务:

  • 将颜色通道缩放到 [0..1)

  • 计算 Channel = pow( Channel, 1 / Gamma )

  • 将结果缩放回 int [0..256)

警告

   只有具有 32 位颜色深度的桌面才支持灰度演示。

 

命令语法

命令选项 说明

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

运行演示验证 2 测试作业。

Present2.exe -M:1 -whql -logclean

运行演示验证 2 (WoW64) 测试作业。

Present2.exe -ColorConverting -src:ref -M:1 -whql -logclean

运行演示验证 2 - ColorConverting 测试作业和演示验证 2 - ColorConverting (WoW64) 测试作业。

Present2.exe -GammaPresent -src:ref -M:1 -whql -logclean

运行演示验证 2 - GammaPresent 测试作业和演示验证 2 - GammaPresent (WoW64) 测试作业。

Present2.exe -Present -src:ref -M:1 -whql -logclean

运行演示验证 2 - Present 测试作业和演示验证 2 - Present (WoW64) 测试作业。

注意

   有关此测试二进制文件的命令行帮助,请键入 /?。

 

文件列表

文件 位置

Configdisplay.exe

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

D3d10ref.dll

<[testbinroot]>\nttest\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

D3dref8.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\

D3dx8d.dll

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

Fpstate.dll

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

Modechange.exe

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

TDRWatch.exe

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

Vbswap.x

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

 

参数

参数名称 参数说明
MODIFIEDCMDLINE 测试可执行文件的其他命令行参数
LLU_NetAccessOnly 网络用户的 LLU 名称
MONITOR 要测试的显示设备
ConfigDisplayCommandLine ConfigDisplay 的自定义命令行。 默认值:徽标
TDRArgs /get 或 /set