mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Refactor PhysicalAddressAllocator
- create allocator dynamically in AUB & TBX CSRs Change-Id: I3b01a3fc2f4824b552ef27cbda5bdcc140e92e53
This commit is contained in:
committed by
sys_ocldev
parent
328ecae57d
commit
91aaa92fb6
@@ -74,12 +74,14 @@ class TbxCommandStreamReceiverHw : public CommandStreamReceiverHw<GfxFamily> {
|
||||
uint64_t getPPGTTAdditionalBits(GraphicsAllocation *gfxAllocation);
|
||||
void getGTTData(void *memory, AubGTTData &data);
|
||||
uint64_t getGTTBits() const;
|
||||
uint32_t getMemoryBankForGtt() const;
|
||||
uint32_t getMemoryBank(GraphicsAllocation *allocation) const;
|
||||
|
||||
TbxCommandStreamReceiver::TbxStream stream;
|
||||
uint32_t aubDeviceId;
|
||||
bool streamInitialized = false;
|
||||
|
||||
PhysicalAddressAllocator physicalAddressAllocator;
|
||||
std::unique_ptr<PhysicalAddressAllocator> physicalAddressAllocator;
|
||||
std::unique_ptr<TypeSelector<PML4, PDPE, sizeof(void *) == 8>::type> ppgtt;
|
||||
std::unique_ptr<PDPE> ggtt;
|
||||
// remap CPU VA -> GGTT VA
|
||||
@@ -91,5 +93,6 @@ class TbxCommandStreamReceiverHw : public CommandStreamReceiverHw<GfxFamily> {
|
||||
|
||||
protected:
|
||||
int getAddressSpace(int hint);
|
||||
void createPhysicalAddressAllocator();
|
||||
};
|
||||
} // namespace OCLRT
|
||||
|
||||
Reference in New Issue
Block a user