|
|
@ -30,12 +30,12 @@ public:
|
|
|
|
explicit CachedGlobalRegion(VAddr addr, u32 size);
|
|
|
|
explicit CachedGlobalRegion(VAddr addr, u32 size);
|
|
|
|
|
|
|
|
|
|
|
|
/// Gets the address of the shader in guest memory, required for cache management
|
|
|
|
/// Gets the address of the shader in guest memory, required for cache management
|
|
|
|
VAddr GetAddr() const {
|
|
|
|
VAddr GetAddr() const override {
|
|
|
|
return addr;
|
|
|
|
return addr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Gets the size of the shader in guest memory, required for cache management
|
|
|
|
/// Gets the size of the shader in guest memory, required for cache management
|
|
|
|
std::size_t GetSizeInBytes() const {
|
|
|
|
std::size_t GetSizeInBytes() const override {
|
|
|
|
return size;
|
|
|
|
return size;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -70,7 +70,7 @@ public:
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
GlobalRegion TryGetReservedGlobalRegion(VAddr addr, u32 size) const;
|
|
|
|
GlobalRegion TryGetReservedGlobalRegion(VAddr addr, u32 size) const;
|
|
|
|
GlobalRegion GetUncachedGlobalRegion(VAddr addr, u32 size);
|
|
|
|
GlobalRegion GetUncachedGlobalRegion(VAddr addr, u32 size);
|
|
|
|
void ReserveGlobalRegion(const GlobalRegion& region);
|
|
|
|
void ReserveGlobalRegion(GlobalRegion region);
|
|
|
|
|
|
|
|
|
|
|
|
std::unordered_map<VAddr, GlobalRegion> reserve;
|
|
|
|
std::unordered_map<VAddr, GlobalRegion> reserve;
|
|
|
|
};
|
|
|
|
};
|
|
|
|