Skip to content

Commit 14db196

Browse files
jjarzabeigcbot
authored andcommitted
Changes in code.
1 parent 693eb0b commit 14db196

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -3944,6 +3944,10 @@ namespace IGC
39443944
}
39453945
}
39463946

3947+
if (context->type == ShaderType::COMPUTE_SHADER && context->getModuleMetaData()->csInfo.forceSpillCompression)
3948+
{
3949+
params.push_back(param_uptr("-forcespillcompression", literal_deleter));
3950+
}
39473951
// Ensure VISA_Opts has the same scope as CreateVISABuilder so that valid
39483952
// strings are checked by vISA and freed out of this function.
39493953
if (IGC_IS_FLAG_ENABLED(VISAOptions))

IGC/common/MDFrameWork.h

+1
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ namespace IGC
469469
unsigned int forceTotalGRFNum = 0; // 0 means not forced
470470
unsigned int VISAPreSchedRPThreshold = 0; // 0 means use the default
471471
unsigned int SetLoopUnrollThreshold = 0; // 0 means use the default
472+
bool forceSpillCompression = false;
472473
bool allowLowerSimd = false;
473474
bool disableSimd32Slicing = false;
474475
bool disableSplitOnSpill = false;

0 commit comments

Comments
 (0)