Skip to content

Commit e62bc4d

Browse files
author
Greg Roth
authored
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 a607ce6) Authored-by: Preston Hamlin <[email protected]>
1 parent a577b7a commit e62bc4d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tools/clang/test/HLSL/ShaderOpArith.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@
288288
RootFlags(ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT),
289289
DescriptorTable(UAV(u0), UAV(u1), UAV(u2))
290290
</RootSignature>
291+
<Resource Name="RTarget" Dimension="TEXTURE2D" Width="64" Height="64" Format="R32G32B32A32_FLOAT" Flags="ALLOW_RENDER_TARGET" InitialResourceState="COPY_DEST" ReadBack="true" />
291292
<Resource Name="U0" Dimension="BUFFER" Width="16384"
292293
Flags="ALLOW_UNORDERED_ACCESS" InitialResourceState="COPY_DEST"
293294
Init="Zero" ReadBack="true" />
@@ -309,11 +310,17 @@
309310
<Descriptor Name='U2' Kind='UAV' ResName='U2'
310311
NumElements="1024" StructureByteStride="16" />
311312
</DescriptorHeap>
313+
<DescriptorHeap Name="RtvHeap" NumDescriptors="1" Type="RTV">
314+
<Descriptor Name="RTarget" Kind="RTV"/>
315+
</DescriptorHeap>
312316

313317
<InputElements>
314318
<InputElement SemanticName="POSITION" Format="R32G32B32_FLOAT" AlignedByteOffset="0" />
315319
<InputElement SemanticName="TEXCOORD" Format="R32G32_FLOAT" AlignedByteOffset="12" />
316320
</InputElements>
321+
<RenderTargets>
322+
<RenderTarget Name="RTarget"/>
323+
</RenderTargets>
317324
<Shader Name="CS" Target="cs_6_0" EntryPoint="CSMain" Text="@PS"/>
318325
<Shader Name="AS" Target="as_6_6" EntryPoint="ASMain" Text="@PS"/>
319326
<Shader Name="MS" Target="ms_6_6" EntryPoint="MSMain" Text="@PS"/>

0 commit comments

Comments
 (0)