summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_processor.h
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2018-09-06 15:48:08 +0200
committerMarkus Wick <markus@selfnet.de>2018-09-10 22:06:13 +0200
commit0cfb0bacb2581d79631f496afbc3a3d5dd19eb42 (patch)
treec6fdc90795dc4e1851e2b3e3bd792e48f19251ba /src/video_core/command_processor.h
parentrasterizer: Drop unused handler. (diff)
downloadyuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.tar
yuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.tar.gz
yuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.tar.bz2
yuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.tar.lz
yuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.tar.xz
yuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.tar.zst
yuzu-0cfb0bacb2581d79631f496afbc3a3d5dd19eb42.zip
Diffstat (limited to 'src/video_core/command_processor.h')
-rw-r--r--src/video_core/command_processor.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/video_core/command_processor.h b/src/video_core/command_processor.h
index a01153e0b..bd766e77a 100644
--- a/src/video_core/command_processor.h
+++ b/src/video_core/command_processor.h
@@ -7,6 +7,7 @@
#include <type_traits>
#include "common/bit_field.h"
#include "common/common_types.h"
+#include "video_core/memory_manager.h"
namespace Tegra {
@@ -19,6 +20,22 @@ enum class SubmissionMode : u32 {
IncreaseOnce = 5
};
+struct CommandListHeader {
+ u32 entry0; // gpu_va_lo
+ union {
+ u32 entry1; // gpu_va_hi | (unk_0x02 << 0x08) | (size << 0x0A) | (unk_0x01 << 0x1F)
+ BitField<0, 8, u32> gpu_va_hi;
+ BitField<8, 2, u32> unk1;
+ BitField<10, 21, u32> sz;
+ BitField<31, 1, u32> unk2;
+ };
+
+ GPUVAddr Address() const {
+ return (static_cast<GPUVAddr>(gpu_va_hi) << 32) | entry0;
+ }
+};
+static_assert(sizeof(CommandListHeader) == 8, "CommandListHeader is incorrect size");
+
union CommandHeader {
u32 hex;