diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-23 21:25:59 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-16 06:52:51 +0200 |
commit | 9ae5a09655a568b55279f9b3cb6704144d9c442f (patch) | |
tree | 2001047afb3ba55683a4d795ff62c2c799d927bd /src/core/hw/gpu.h | |
parent | Merge pull request #1031 from bbarenblat/master (diff) | |
download | yuzu-9ae5a09655a568b55279f9b3cb6704144d9c442f.tar yuzu-9ae5a09655a568b55279f9b3cb6704144d9c442f.tar.gz yuzu-9ae5a09655a568b55279f9b3cb6704144d9c442f.tar.bz2 yuzu-9ae5a09655a568b55279f9b3cb6704144d9c442f.tar.lz yuzu-9ae5a09655a568b55279f9b3cb6704144d9c442f.tar.xz yuzu-9ae5a09655a568b55279f9b3cb6704144d9c442f.tar.zst yuzu-9ae5a09655a568b55279f9b3cb6704144d9c442f.zip |
Diffstat (limited to 'src/core/hw/gpu.h')
-rw-r--r-- | src/core/hw/gpu.h | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.h index daad506fe..2e3a9f779 100644 --- a/src/core/hw/gpu.h +++ b/src/core/hw/gpu.h @@ -201,12 +201,14 @@ struct Regs { u32 flags; BitField< 0, 1, u32> flip_vertically; // flips input data vertically - BitField< 1, 1, u32> output_tiled; // Converts from linear to tiled format - BitField< 3, 1, u32> raw_copy; // Copies the data without performing any processing + BitField< 1, 1, u32> input_linear; // Converts from linear to tiled format + BitField< 2, 1, u32> crop_input_lines; + BitField< 3, 1, u32> is_texture_copy; // Copies the data without performing any processing and respecting texture copy fields BitField< 5, 1, u32> dont_swizzle; BitField< 8, 3, PixelFormat> input_format; BitField<12, 3, PixelFormat> output_format; - + /// Uses some kind of 32x32 block swizzling mode, instead of the usual 8x8 one. + BitField<16, 1, u32> block_32; // TODO(yuriks): unimplemented BitField<24, 2, ScalingMode> scaling; // Determines the scaling mode of the transfer }; @@ -214,10 +216,30 @@ struct Regs { // it seems that writing to this field triggers the display transfer u32 trigger; + + INSERT_PADDING_WORDS(0x1); + + struct { + u32 size; + + union { + u32 input_size; + + BitField< 0, 16, u32> input_width; + BitField<16, 16, u32> input_gap; + }; + + union { + u32 output_size; + + BitField< 0, 16, u32> output_width; + BitField<16, 16, u32> output_gap; + }; + } texture_copy; } display_transfer_config; - ASSERT_MEMBER_SIZE(display_transfer_config, 0x1c); + ASSERT_MEMBER_SIZE(display_transfer_config, 0x2c); - INSERT_PADDING_WORDS(0x331); + INSERT_PADDING_WORDS(0x32D); struct { // command list size (in bytes) |