浏览代码

Add missing RTV to QuadReadTest XML (#3555)

merge  #3554 into release-1.6.2104

The mesh shader path for QuadReadTest expects at least one render target. Without, the test framework attempts to clear a nonexistent RTV resource:

D3D12 ERROR: ID3D12CommandList::ClearRenderTargetView: Specified CPU descriptor handle ptr=0xCCCCCCCCCCCCCCCC does not refer to a location in a descriptor heap.

The commit in this PR simply adds an RTV, and will proceed through to test completion.

(cherry picked from commit a607ce605e3cc5b00337842f5cb32c8dcbb47c8f)

Authored-by: Preston Hamlin <[email protected]>
Greg Roth 4 年之前
父节点
当前提交
e62bc4de26
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tools/clang/test/HLSL/ShaderOpArith.xml

+ 7 - 0
tools/clang/test/HLSL/ShaderOpArith.xml

@@ -288,6 +288,7 @@
       RootFlags(ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT),
       DescriptorTable(UAV(u0), UAV(u1), UAV(u2))
     </RootSignature>
+    <Resource Name="RTarget" Dimension="TEXTURE2D" Width="64" Height="64" Format="R32G32B32A32_FLOAT" Flags="ALLOW_RENDER_TARGET" InitialResourceState="COPY_DEST" ReadBack="true" />
     <Resource Name="U0" Dimension="BUFFER" Width="16384"
               Flags="ALLOW_UNORDERED_ACCESS" InitialResourceState="COPY_DEST"
               Init="Zero" ReadBack="true" />
@@ -309,11 +310,17 @@
       <Descriptor Name='U2' Kind='UAV' ResName='U2'
                   NumElements="1024" StructureByteStride="16" />
     </DescriptorHeap>
+    <DescriptorHeap Name="RtvHeap" NumDescriptors="1" Type="RTV">
+      <Descriptor Name="RTarget" Kind="RTV"/>
+    </DescriptorHeap>
 
     <InputElements>
       <InputElement SemanticName="POSITION" Format="R32G32B32_FLOAT" AlignedByteOffset="0" />
       <InputElement SemanticName="TEXCOORD" Format="R32G32_FLOAT" AlignedByteOffset="12" />
     </InputElements>
+    <RenderTargets>
+      <RenderTarget Name="RTarget"/>
+    </RenderTargets>
     <Shader Name="CS" Target="cs_6_0" EntryPoint="CSMain" Text="@PS"/>
     <Shader Name="AS" Target="as_6_6" EntryPoint="ASMain" Text="@PS"/>
     <Shader Name="MS" Target="ms_6_6" EntryPoint="MSMain" Text="@PS"/>