summaryrefslogtreecommitdiffstats
path: root/src/core/hw/gpu.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2014-08-28 20:17:09 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-10-12 14:37:24 +0200
commitfec7f6b035c1328cefac8a97cd26f3a79d033fa4 (patch)
tree0451cf6cd83d19aa4bcb8e033546bae3b8cc5bcb /src/core/hw/gpu.h
parentOpenGL renderer: Shuffle initialization code around and rename functions. (diff)
downloadyuzu-fec7f6b035c1328cefac8a97cd26f3a79d033fa4.tar
yuzu-fec7f6b035c1328cefac8a97cd26f3a79d033fa4.tar.gz
yuzu-fec7f6b035c1328cefac8a97cd26f3a79d033fa4.tar.bz2
yuzu-fec7f6b035c1328cefac8a97cd26f3a79d033fa4.tar.lz
yuzu-fec7f6b035c1328cefac8a97cd26f3a79d033fa4.tar.xz
yuzu-fec7f6b035c1328cefac8a97cd26f3a79d033fa4.tar.zst
yuzu-fec7f6b035c1328cefac8a97cd26f3a79d033fa4.zip
Diffstat (limited to 'src/core/hw/gpu.h')
-rw-r--r--src/core/hw/gpu.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.h
index c853429a0..92097d182 100644
--- a/src/core/hw/gpu.h
+++ b/src/core/hw/gpu.h
@@ -56,7 +56,7 @@ struct Regs {
"Structure size and register block length don't match")
#endif
- enum class FramebufferFormat : u32 {
+ enum class PixelFormat : u32 {
RGBA8 = 0,
RGB8 = 1,
RGB565 = 2,
@@ -84,9 +84,7 @@ struct Regs {
INSERT_PADDING_WORDS(0x10b);
- struct {
- using Format = Regs::FramebufferFormat;
-
+ struct FramebufferConfig {
union {
u32 size;
@@ -102,7 +100,7 @@ struct Regs {
union {
u32 format;
- BitField< 0, 3, Format> color_format;
+ BitField< 0, 3, PixelFormat> color_format;
};
INSERT_PADDING_WORDS(0x1);
@@ -130,8 +128,6 @@ struct Regs {
INSERT_PADDING_WORDS(0x169);
struct {
- using Format = Regs::FramebufferFormat;
-
u32 input_address;
u32 output_address;
@@ -161,8 +157,8 @@ struct Regs {
u32 flags;
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< 8, 3, PixelFormat> input_format;
+ BitField<12, 3, PixelFormat> output_format;
BitField<16, 1, u32> output_tiled; // stores output in a tiled format
};