VERY experimental Nintendo Switch 2 emulator
C++
Add Documentation Headers to all the GPU Engines
Fernando Sahmkowbcf4b19fca64
diff --git a/src/video_core/engines/fermi_2d.h b/src/video_core/engines/fermi_2d.hindex 2e51b7f13d..45f59a4d99 100644--- a/src/video_core/engines/fermi_2d.h+++ b/src/video_core/engines/fermi_2d.h@@ -21,6 +21,12 @@ class RasterizerInterface;namespace Tegra::Engines {+/**+ * This Engine is known as G80_2D. Documentation can be found in:+ * https://github.com/envytools/envytools/blob/master/rnndb/graph/g80_2d.xml+ * https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nv50/nv50_2d.xml.h+ */+#define FERMI2D_REG_INDEX(field_name) \(offsetof(Tegra::Engines::Fermi2D::Regs, field_name) / sizeof(u32))diff --git a/src/video_core/engines/kepler_compute.h b/src/video_core/engines/kepler_compute.hindex ab2781b4b4..50f3188487 100644--- a/src/video_core/engines/kepler_compute.h+++ b/src/video_core/engines/kepler_compute.h@@ -27,6 +27,12 @@ class RasterizerInterface;namespace Tegra::Engines {+/**+ * This Engine is known as GK104_Compute. Documentation can be found in:+ * https://github.com/envytools/envytools/blob/master/rnndb/graph/gk104_compute.xml+ * https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nvc0/nve4_compute.xml.h+ */+#define KEPLER_COMPUTE_REG_INDEX(field_name) \(offsetof(Tegra::Engines::KeplerCompute::Regs, field_name) / sizeof(u32))diff --git a/src/video_core/engines/kepler_memory.h b/src/video_core/engines/kepler_memory.hindex c6b738eb95..473bff20ae 100644--- a/src/video_core/engines/kepler_memory.h+++ b/src/video_core/engines/kepler_memory.h@@ -23,6 +23,12 @@ class MemoryManager;namespace Tegra::Engines {+/**+ * This Engine is known as P2MF. Documentation can be found in:+ * https://github.com/envytools/envytools/blob/master/rnndb/graph/gk104_p2mf.xml+ * https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nvc0/nve4_p2mf.xml.h+ */+#define KEPLERMEMORY_REG_INDEX(field_name) \(offsetof(Tegra::Engines::KeplerMemory::Regs, field_name) / sizeof(u32))diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.hindex 47fe1f1375..eae4274120 100644--- a/src/video_core/engines/maxwell_3d.h+++ b/src/video_core/engines/maxwell_3d.h@@ -33,6 +33,12 @@ class RasterizerInterface;namespace Tegra::Engines {+/**+ * This Engine is known as GF100_3D. Documentation can be found in:+ * https://github.com/envytools/envytools/blob/master/rnndb/graph/gf100_3d.xml+ * https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/drivers/nouveau/nvc0/nvc0_3d.xml.h+ */+#define MAXWELL3D_REG_INDEX(field_name) \(offsetof(Tegra::Engines::Maxwell3D::Regs, field_name) / sizeof(u32))diff --git a/src/video_core/engines/maxwell_dma.h b/src/video_core/engines/maxwell_dma.hindex c6b6498420..35b25e6b9f 100644--- a/src/video_core/engines/maxwell_dma.h+++ b/src/video_core/engines/maxwell_dma.h@@ -25,6 +25,11 @@ class RasterizerInterface;namespace Tegra::Engines {+/**+ * This Engine is known as GK104_Copy. Documentation can be found in:+ * https://github.com/envytools/envytools/blob/master/rnndb/fifo/gk104_copy.xml+ */+class MaxwellDMA final {public:explicit MaxwellDMA(Core::System& system, VideoCore::RasterizerInterface& rasterizer,