Refactor VideoCore to use AS sepparate from Channel.

This commit is contained in:
Fernando Sahmkow
2021-12-17 16:45:06 +01:00
parent bb74973bba
commit e462191482
10 changed files with 172 additions and 153 deletions

View File

@ -3,6 +3,7 @@
#pragma once
#include <atomic>
#include <map>
#include <optional>
#include <vector>
@ -26,6 +27,10 @@ public:
u64 page_bits_ = 16);
~MemoryManager();
size_t GetID() const {
return unique_identifier;
}
/// Binds a renderer to the memory manager.
void BindRasterizer(VideoCore::RasterizerInterface* rasterizer);
@ -140,6 +145,10 @@ private:
void SetEntry(size_t position, EntryType entry);
Common::MultiLevelPageTable<u32> page_table;
const size_t unique_identifier;
static std::atomic<size_t> unique_identifier_generator;
};
} // namespace Tegra