summaryrefslogtreecommitdiffstats
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-03 07:04:22 +0100
committerbunnei <bunneidev@gmail.com>2014-12-10 01:07:14 +0100
commitf94d8f960361e36c5436717924bda5a3a6c6d47a (patch)
treeecad0fa27f48e672af06218ef850c9ae673147a3 /src/video_core/pica.h
parentGSP: Updated TriggerCmdReqQueue to return success code. (diff)
downloadyuzu-f94d8f960361e36c5436717924bda5a3a6c6d47a.tar
yuzu-f94d8f960361e36c5436717924bda5a3a6c6d47a.tar.gz
yuzu-f94d8f960361e36c5436717924bda5a3a6c6d47a.tar.bz2
yuzu-f94d8f960361e36c5436717924bda5a3a6c6d47a.tar.lz
yuzu-f94d8f960361e36c5436717924bda5a3a6c6d47a.tar.xz
yuzu-f94d8f960361e36c5436717924bda5a3a6c6d47a.tar.zst
yuzu-f94d8f960361e36c5436717924bda5a3a6c6d47a.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/pica.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index e7ca38978..8bac178ca 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -45,10 +45,16 @@ struct Regs {
#define INSERT_PADDING_WORDS_HELPER2(x, y) INSERT_PADDING_WORDS_HELPER1(x, y)
#define INSERT_PADDING_WORDS(num_words) u32 INSERT_PADDING_WORDS_HELPER2(pad, __LINE__)[(num_words)];
- INSERT_PADDING_WORDS(0x41);
+ INSERT_PADDING_WORDS(0x10);
+
+ u32 trigger_irq;
+
+ INSERT_PADDING_WORDS(0x30);
BitField<0, 24, u32> viewport_size_x;
+
INSERT_PADDING_WORDS(0x1);
+
BitField<0, 24, u32> viewport_size_y;
INSERT_PADDING_WORDS(0x9);
@@ -544,6 +550,7 @@ struct Regs {
map.insert({i, #name + std::string("+") + std::to_string(i-PICA_REG_INDEX(name))}); \
} while(false)
+ ADD_FIELD(trigger_irq);
ADD_FIELD(viewport_size_x);
ADD_FIELD(viewport_size_y);
ADD_FIELD(viewport_depth_range);
@@ -607,6 +614,7 @@ private:
#ifndef _MSC_VER
#define ASSERT_REG_POSITION(field_name, position) static_assert(offsetof(Regs, field_name) == position * 4, "Field "#field_name" has invalid position")
+ASSERT_REG_POSITION(trigger_irq, 0x10);
ASSERT_REG_POSITION(viewport_size_x, 0x41);
ASSERT_REG_POSITION(viewport_size_y, 0x43);
ASSERT_REG_POSITION(viewport_depth_range, 0x4d);