File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments