mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Program correct number of bits to state base address
Change-Id: If423f9e83fcfd7ca5cbe2411e644a9c45f27b086
This commit is contained in:

committed by
sys_ocldev

parent
1616c529bc
commit
2107af3a3b
@ -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());
|
||||||
|
Reference in New Issue
Block a user