summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-07-22 13:21:57 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-07-23 00:44:31 +0200
commit61e2ffd4483bf2da0862e32449caa9f1cecc5b72 (patch)
treef49e4c830aa879fdcb3a0c9147fac0dadeacf268
parentGSP: Add a few comments. (diff)
downloadyuzu-61e2ffd4483bf2da0862e32449caa9f1cecc5b72.tar
yuzu-61e2ffd4483bf2da0862e32449caa9f1cecc5b72.tar.gz
yuzu-61e2ffd4483bf2da0862e32449caa9f1cecc5b72.tar.bz2
yuzu-61e2ffd4483bf2da0862e32449caa9f1cecc5b72.tar.lz
yuzu-61e2ffd4483bf2da0862e32449caa9f1cecc5b72.tar.xz
yuzu-61e2ffd4483bf2da0862e32449caa9f1cecc5b72.tar.zst
yuzu-61e2ffd4483bf2da0862e32449caa9f1cecc5b72.zip
-rw-r--r--src/core/hw/gpu.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.h
index 4ef0a047f..3078e4142 100644
--- a/src/core/hw/gpu.h
+++ b/src/core/hw/gpu.h
@@ -84,11 +84,14 @@ struct Regs::Struct<Regs::FramebufferTop> {
union {
u32 active_fb;
+ // 0: Use parameters ending with "1"
+ // 1: Use parameters ending with "2"
BitField<0, 1, u32> second_fb_active;
};
u32 pad2[5];
+ // Distance between two pixel rows, in bytes
u32 stride;
u32 address_right1;
@@ -132,23 +135,32 @@ struct Regs::Struct<Regs::DisplayTransfer> {
union {
u32 flags;
- BitField< 0, 1, u32> flip_data;
+ BitField< 0, 1, u32> flip_data; // flips input data horizontally (TODO) if true
BitField< 8, 3, Format> input_format;
BitField<12, 3, Format> output_format;
- BitField<16, 1, u32> output_tiled;
+ BitField<16, 1, u32> output_tiled; // stores output in a tiled format
};
u32 unknown;
+
+ // it seems that writing to this field triggers the display transfer
u32 trigger;
};
static_assert(sizeof(Regs::Struct<Regs::DisplayTransfer>) == 0x1C, "Structure size and register block length don't match");
template<>
struct Regs::Struct<Regs::CommandProcessor> {
+ // command list size
u32 size;
+
u32 pad0;
+
+ // command list address
u32 address;
+
u32 pad1;
+
+ // it seems that writing to this field triggers command list processing
u32 trigger;
};
static_assert(sizeof(Regs::Struct<Regs::CommandProcessor>) == 0x14, "Structure size and register block length don't match");