Skip to content

Commit ba1357c

Browse files
Sodmentigcbot
authored andcommitted
Changes in code.
1 parent ec4c755 commit ba1357c

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5644,7 +5644,7 @@ namespace IGC
56445644
// and Slot0 is used for IGC private memory
56455645
if (m_program->m_Platform->hasScratchSurface() &&
56465646
m_program->m_DriverInfo->supportsSeparatingSpillAndPrivateScratchMemorySpace() &&
5647-
!m_program->GetContext()->getModuleMetaData()->disableSeparateSpillPvtScratchSpace)
5647+
m_program->GetContext()->getModuleMetaData()->enableSeparateSpillPvtScratchSpace)
56485648
{
56495649
V(vKernel->AddKernelAttribute("SepSpillPvtSS", 0, nullptr));
56505650
}

IGC/Compiler/CISACodeGen/CShader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ CShader::CShader(Function* pFunc, CShaderProgram* pProgram)
7474

7575
bool SepSpillPvtSS = m_ctx->platform.hasScratchSurface() &&
7676
m_ctx->m_DriverInfo.supportsSeparatingSpillAndPrivateScratchMemorySpace() &&
77-
!m_ctx->getModuleMetaData()->disableSeparateSpillPvtScratchSpace;
77+
m_ctx->getModuleMetaData()->enableSeparateSpillPvtScratchSpace;
7878
bool SeparateScratchWA =
7979
IGC_IS_FLAG_ENABLED(EnableSeparateScratchWA) &&
8080
!m_ctx->getModuleMetaData()->disableSeparateScratchWA;
@@ -4081,7 +4081,7 @@ bool CShader::CompileSIMDSizeInCommon(SIMDMode simdMode)
40814081

40824082
if (m_ctx->platform.hasScratchSurface() &&
40834083
m_ctx->m_DriverInfo.supportsSeparatingSpillAndPrivateScratchMemorySpace() &&
4084-
!m_ctx->getModuleMetaData()->disableSeparateSpillPvtScratchSpace)
4084+
m_ctx->getModuleMetaData()->enableSeparateSpillPvtScratchSpace)
40854085
{
40864086
ret = ((m_simdProgram.getScratchSpaceUsageInSlot0() <= maxPerThreadScratchSpace) &&
40874087
(m_simdProgram.getScratchSpaceUsageInSlot1() <= maxPerThreadScratchSpace));

IGC/Compiler/ModuleAllocaAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ bool ModuleAllocaAnalysis::safeToUseScratchSpace() const
204204
// which can hold more pvt_data to avoid error out.
205205
if (Ctx.platform.hasScratchSurface() &&
206206
Ctx.m_DriverInfo.supportsSeparatingSpillAndPrivateScratchMemorySpace() &&
207-
!Ctx.getModuleMetaData()->disableSeparateSpillPvtScratchSpace &&
207+
Ctx.getModuleMetaData()->enableSeparateSpillPvtScratchSpace &&
208208
!supportsStatelessSpacePrivateMemory)
209209
simd_size = numLanes(Ctx.platform.getMinDispatchMode());
210210

IGC/Compiler/tests/EmitVISAPass/wavebarrier-typed-pointers.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ attributes #0 = { convergent nounwind }
339339
!292 = !{!"statefulResourcesNotAliased", i1 false}
340340
!293 = !{!"disableMixMode", i1 false}
341341
!294 = !{!"genericAccessesResolved", i1 false}
342-
!295 = !{!"disableSeparateSpillPvtScratchSpace", i1 false}
342+
!295 = !{!"enableSeparateSpillPvtScratchSpace", i1 false}
343343
!296 = !{!"disableSeparateScratchWA", i1 false}
344344
!297 = !{!"PrivateMemoryPerFG", !298, !299}
345345
!298 = !{!"PrivateMemoryPerFGMap[0]", void (<8 x i32>, <8 x i32>)* @test}

IGC/Compiler/tests/EmitVISAPass/wavebarrier.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ attributes #0 = { convergent nounwind }
339339
!292 = !{!"statefulResourcesNotAliased", i1 false}
340340
!293 = !{!"disableMixMode", i1 false}
341341
!294 = !{!"genericAccessesResolved", i1 false}
342-
!295 = !{!"disableSeparateSpillPvtScratchSpace", i1 false}
342+
!295 = !{!"enableSeparateSpillPvtScratchSpace", i1 false}
343343
!296 = !{!"disableSeparateScratchWA", i1 false}
344344
!297 = !{!"PrivateMemoryPerFG", !298, !299}
345345
!298 = !{!"PrivateMemoryPerFGMap[0]", void (<8 x i32>, <8 x i32>)* @test}

IGC/Compiler/tests/VectorPreProcess/ldraw-32byte-lsc-message-ocl.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ attributes #6 = { argmemonly nounwind writeonly }
388388
!324 = !{!"statefulResourcesNotAliased", i1 false}
389389
!325 = !{!"disableMixMode", i1 false}
390390
!326 = !{!"genericAccessesResolved", i1 false}
391-
!327 = !{!"disableSeparateSpillPvtScratchSpace", i1 false}
391+
!327 = !{!"enableSeparateSpillPvtScratchSpace", i1 false}
392392
!328 = !{!"disableSeparateScratchWA", i1 false}
393393
!329 = !{!"PrivateMemoryPerFG", !330, !331}
394394
!330 = !{!"PrivateMemoryPerFGMap[0]", void (<3 x i64> addrspace(1)*, i64 addrspace(1)*, <8 x i32>, <8 x i32>, <3 x i32>, i16, i16, i16, i8*, i32, i32, i32, i32)* @test_kernel}

IGC/common/MDFrameWork.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,8 @@ namespace IGC
754754
// some memory accesses.
755755
bool genericAccessesResolved = false;
756756

757-
//when true, compiler disables separate spill pvt scratch space
758-
bool disableSeparateSpillPvtScratchSpace = false;
757+
//when true, compiler separates spill and IGC private scratch spaces
758+
bool enableSeparateSpillPvtScratchSpace = false;
759759

760760
//when true, compiler disables scratch space slot0/slot1 sizes workaround
761761
bool disableSeparateScratchWA = false;

0 commit comments

Comments
 (0)