summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-12-24 21:49:54 +0100
committerLiam <byteslice@airmail.cc>2024-01-19 03:12:30 +0100
commitc85d7ccd79fb69bc096cd19bb8f95ac9534ffc23 (patch)
tree7634acb7cfbee7829f958ad6ba03028c13a4ffec /src/video_core
parentNVDRV: Implement sessions and initial implementation of SMMU (diff)
downloadyuzu-c85d7ccd79fb69bc096cd19bb8f95ac9534ffc23.tar
yuzu-c85d7ccd79fb69bc096cd19bb8f95ac9534ffc23.tar.gz
yuzu-c85d7ccd79fb69bc096cd19bb8f95ac9534ffc23.tar.bz2
yuzu-c85d7ccd79fb69bc096cd19bb8f95ac9534ffc23.tar.lz
yuzu-c85d7ccd79fb69bc096cd19bb8f95ac9534ffc23.tar.xz
yuzu-c85d7ccd79fb69bc096cd19bb8f95ac9534ffc23.tar.zst
yuzu-c85d7ccd79fb69bc096cd19bb8f95ac9534ffc23.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/host1x/gpu_device_memory_manager.cpp11
-rw-r--r--src/video_core/host1x/gpu_device_memory_manager.h3
2 files changed, 14 insertions, 0 deletions
diff --git a/src/video_core/host1x/gpu_device_memory_manager.cpp b/src/video_core/host1x/gpu_device_memory_manager.cpp
index 2ca445081..668c2f08b 100644
--- a/src/video_core/host1x/gpu_device_memory_manager.cpp
+++ b/src/video_core/host1x/gpu_device_memory_manager.cpp
@@ -5,6 +5,17 @@
#include "video_core/host1x/gpu_device_memory_manager.h"
#include "video_core/rasterizer_interface.h"
+namespace Tegra {
+
+struct MaxwellDeviceMethods {
+ static inline void MarkRegionCaching(Core::Memory::Memory* interface, VAddr address,
+ size_t size, bool caching) {
+ interface->RasterizerMarkRegionCached(address, size, caching);
+ }
+};
+
+} // namespace Tegra
+
template struct Core::DeviceMemoryManagerAllocator<Tegra::MaxwellDeviceTraits>;
template class Core::DeviceMemoryManager<Tegra::MaxwellDeviceTraits>;
diff --git a/src/video_core/host1x/gpu_device_memory_manager.h b/src/video_core/host1x/gpu_device_memory_manager.h
index 30ad52017..2fb77605e 100644
--- a/src/video_core/host1x/gpu_device_memory_manager.h
+++ b/src/video_core/host1x/gpu_device_memory_manager.h
@@ -9,10 +9,13 @@ class RasterizerInterface;
namespace Tegra {
+struct MaxwellDeviceMethods;
+
struct MaxwellDeviceTraits {
static constexpr bool supports_pinning = true;
static constexpr size_t device_virtual_bits = 34;
using DeviceInterface = typename VideoCore::RasterizerInterface;
+ using DeviceMethods = typename MaxwellDeviceMethods;
};
using MaxwellDeviceMemoryManager = Core::DeviceMemoryManager<MaxwellDeviceTraits>;