Skip to content

Commit 9ae0af4

Browse files
houjenkosys_zuul
authored andcommitted
[IGC Feature][IGC] Dump Compiler Input Structure (CIS) for pixel shaders
Change-Id: Iaf6112badd6ae674bbca6ca9a908c75c4d6853b0
1 parent aea157f commit 9ae0af4

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

IGC/AdaptorCommon/customApi.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ namespace IGC
101101
{
102102
NOS_TEXT, //!< Non-orthogonal states (numan readable)
103103

104+
CIS_TEXT, //!< Compiler input structure (human readable)
104105
COS_TEXT, //!< Compiler output structure (human readable)
105106

106107
ASM_TEXT, //!< Input assembly (human readable)

IGC/common/debug/Dump.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ namespace {
428428
switch ( type )
429429
{
430430
case DumpType::NOS_TEXT : return true;
431+
case DumpType::CIS_TEXT : return true;
431432
case DumpType::COS_TEXT : return true;
432433
case DumpType::ASM_TEXT : return true;
433434
case DumpType::ASM_BC : return false;
@@ -455,6 +456,7 @@ namespace {
455456
switch ( type )
456457
{
457458
case DumpType::NOS_TEXT : return "// ";
459+
case DumpType::CIS_TEXT : return "// ";
458460
case DumpType::COS_TEXT : return "// ";
459461
case DumpType::ASM_TEXT : return "// ";
460462
case DumpType::TRANSLATED_IR_TEXT : return "; ";

IGC/common/igc_flags.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ DECLARE_IGC_REGKEY(bool, EnableRTmaskPso, false, "Enable render ta
213213

214214
DECLARE_IGC_GROUP("Shader dumping")
215215
DECLARE_IGC_REGKEY(bool, EnableCosDump, false, "Enable cos dump", true)
216+
DECLARE_IGC_REGKEY(bool, EnableCisDump, false, "Enable cis dump", true)
216217
DECLARE_IGC_REGKEY(bool, DumpLLVMIR, false, "dump LLVM IR", true)
217218
DECLARE_IGC_REGKEY(bool, QualityMetricsEnable, false, "Enable Quality Metrics for IGC", true)
218219
DECLARE_IGC_REGKEY(bool, ShaderDumpEnable, false, "dump LLVM IR, visaasm, and GenISA", true)

0 commit comments

Comments
 (0)