Skip to content

Commit ae1935d

Browse files
mmereckisys_zuul
authored andcommitted
Add possibility to control partial component packing via shader metadata.
Change-Id: I9fb34374e3c9fa7d6d1d01abf34f40bc4fff995d
1 parent d662161 commit ae1935d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

IGC/Compiler/CISACodeGen/VertexShaderCodeGen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ namespace IGC
120120

121121
void CVertexShader::PackVFInput(unsigned int index, unsigned int& offset)
122122
{
123-
bool dontPackPartialElement = IGC_IS_FLAG_ENABLED(VFPackingDisablePartialElements);
123+
bool dontPackPartialElement = m_ModuleMetadata->compOpt.disablePartialVertexComponentPacking ||
124+
IGC_IS_FLAG_ENABLED(VFPackingDisablePartialElements);
124125
if (dontPackPartialElement)
125126
{
126127
if (m_ElementComponentEnableMask[index / 4] == 0)

IGC/common/MDFrameWork.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ namespace IGC
214214
bool pixelShaderDoNotAbortOnSpill = false;
215215
bool UniformWGS = false;
216216
bool disableVertexComponentPacking = false;
217+
bool disablePartialVertexComponentPacking = false;
217218
bool PreferBindlessImages = false;
218219
bool disableMathRefactoring = false;
219220
bool EnableTakeGlobalAddress = false;

0 commit comments

Comments
 (0)