Program correct number of bits to state base address

Change-Id: If423f9e83fcfd7ca5cbe2411e644a9c45f27b086
This commit is contained in:
Maciej Dziuban
2019-08-30 11:40:46 +02:00
committed by sys_ocldev
parent 1616c529bc
commit 2107af3a3b

View File

@ -48,7 +48,7 @@ void StateBaseAddressHelper<GfxFamily>::programStateBaseAddress(
pCmd->setInstructionBufferSizeModifyEnable(true); pCmd->setInstructionBufferSizeModifyEnable(true);
pCmd->setDynamicStateBufferSize(static_cast<uint32_t>((dsh.getMaxAvailableSpace() + MemoryConstants::pageMask) / MemoryConstants::pageSize)); pCmd->setDynamicStateBufferSize(static_cast<uint32_t>((dsh.getMaxAvailableSpace() + MemoryConstants::pageMask) / MemoryConstants::pageSize));
pCmd->setGeneralStateBufferSize(static_cast<uint32_t>(-1)); pCmd->setGeneralStateBufferSize(0xfffff);
pCmd->setIndirectObjectBaseAddress(ioh.getHeapGpuBase()); pCmd->setIndirectObjectBaseAddress(ioh.getHeapGpuBase());
pCmd->setIndirectObjectBufferSize(ioh.getHeapSizeInPages()); pCmd->setIndirectObjectBufferSize(ioh.getHeapSizeInPages());