mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
[34/N] Internal 4GB allocator.
- Change dirty state helpers to work on IndirectHeaps. - Instead of comparing size in bytes and cpu pointers, compare gpu base address and size of the heap in pages - That allows to not have dirty flag for heaps that are coming from 4GB allocator. Change-Id: I0ff81e3c0945b32e4f872a100cd10b332b27ed24
This commit is contained in:
committed by
sys_ocldev
parent
10e5b71111
commit
621a2dfcd1
@@ -516,7 +516,7 @@ HWTEST_F(CommandStreamReceiverFlushTaskTests, givenStateBaseAddressWhenItIsRequi
|
||||
typedef typename FamilyType::STATE_BASE_ADDRESS STATE_BASE_ADDRESS;
|
||||
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<FamilyType>();
|
||||
configureCSRtoNonDirtyState<FamilyType>();
|
||||
ioh.replaceBuffer(ptrOffset(ioh.getCpuBase(), +1u), ioh.getMaxAvailableSpace() - 1);
|
||||
ioh.replaceBuffer(ptrOffset(ioh.getCpuBase(), +1u), ioh.getMaxAvailableSpace() + MemoryConstants::pageSize * 3);
|
||||
|
||||
flushTask(commandStreamReceiver);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user