Skip to content

Commit 7a522cd

Browse files
traoux1gfxbot
traoux1
authored andcommitted
Fix URB allocation and lenght output for DS. Fix regressions
Change-Id: I7d5760fda67fa13407264b5edea929f2f6869cc4
1 parent b537140 commit 7a522cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/Compiler/CISACodeGen/DomainShaderCodeGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ void CDomainShader::FillProgram(SDomainShaderKernelProgram* pKernelProgram)
277277

278278
pKernelProgram->MaxNumberOfThreads = m_Platform->getMaxDomainShaderThreads();
279279
pKernelProgram->ComputeWAttribute = !m_properties.m_WArg->use_empty();
280-
pKernelProgram->URBAllocationSize = GetURBAllocationSize() + GetURBHeaderSize();
281-
pKernelProgram->VertexURBEntryOutputLength = GetURBAllocationSize();
280+
pKernelProgram->URBAllocationSize = GetURBAllocationSize();
281+
pKernelProgram->VertexURBEntryOutputLength = GetURBAllocationSize() - GetURBHeaderSize();
282282
pKernelProgram->VertexURBEntryReadLength = GetVertexURBEntryReadLength();
283283
pKernelProgram->VertexURBEntryReadOffset = OctEltUnit(0);
284284
pKernelProgram->VertexURBEntryOutputReadOffset = GetURBHeaderSize();

0 commit comments

Comments
 (0)