Skip to content

Commit f634848

Browse files
jsantillan2017sys_zuul
authored andcommitted
[Autobackout][FuncReg]Revert of change: c1d99d1
Removing unecessary code Change-Id: Ie7e643d520c334be58fa6875f8a838cc0aa83e2c
1 parent ec3890c commit f634848

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

IGC/Compiler/CISACodeGen/VertexShaderCodeGen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ namespace IGC
192192
pKernelProgram->isMessageTargetDataCacheDataPort = isMessageTargetDataCacheDataPort;
193193
pKernelProgram->singleInstanceVertexShader =
194194
((entry->getParent())->getNamedMetadata("ConstantBufferIndexedWithInstanceId") != nullptr) ? true : false;
195+
pKernelProgram->EnableVertexReordering =
196+
(GetContext()->getModuleMetaData()->vsInfo.DrawIndirectBufferIndex != -1);
195197

196198
CreateGatherMap();
197199
CreateConstantBufferOutput(pKernelProgram);

IGC/Compiler/CodeGenPublic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ namespace IGC
383383

384384
DWORD m_AccessedBySampleC[4];
385385
bool HasClipCullAsOutput;
386-
386+
bool EnableVertexReordering;
387387

388388
unsigned int BindingTableEntryBitmap;
389389
unsigned int m_SamplerCount;

IGC/common/MDFrameWork.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ namespace IGC
230230
bool forcedVISAPreRAScheduler = false;
231231
};
232232

233+
struct VertexShaderInfo
234+
{
235+
int DrawIndirectBufferIndex = -1;
236+
};
233237

234238
struct PixelShaderInfo
235239
{
@@ -338,6 +342,7 @@ namespace IGC
338342
CompOptions compOpt;
339343
std::map<llvm::Function*, IGC::FunctionMetaData> FuncMD;
340344
PushInfo pushInfo;
345+
VertexShaderInfo vsInfo;
341346
PixelShaderInfo psInfo;
342347
ComputeShaderInfo csInfo;
343348
std::map<ConstantAddress, uint32_t> inlineDynConstants;

0 commit comments

Comments
 (0)