mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Use helper method to program DSH size
Change-Id: I2c6502b58f83941f547b53bbd8fa44748cbd2746 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
@@ -46,7 +46,7 @@ void StateBaseAddressHelper<GfxFamily>::programStateBaseAddress(
|
||||
pCmd->setIndirectObjectBufferSizeModifyEnable(true);
|
||||
pCmd->setInstructionBufferSizeModifyEnable(true);
|
||||
|
||||
pCmd->setDynamicStateBufferSize(static_cast<uint32_t>((dsh.getMaxAvailableSpace() + MemoryConstants::pageMask) / MemoryConstants::pageSize));
|
||||
pCmd->setDynamicStateBufferSize(dsh.getHeapSizeInPages());
|
||||
pCmd->setGeneralStateBufferSize(0xfffff);
|
||||
|
||||
pCmd->setIndirectObjectBaseAddress(ioh.getHeapGpuBase());
|
||||
|
||||
Reference in New Issue
Block a user