summaryrefslogtreecommitdiff
path: root/src/core/hw/gpu.cpp
diff options
context:
space:
mode:
authorGravatar MerryMage2016-02-11 17:41:15 +0000
committerGravatar MerryMage2016-02-12 19:51:16 +0000
commit6c71858c5c698a718045ba44eda495080417a84b (patch)
tree0dc7778532b0e2d1c5acd0224266b8a67d961155 /src/core/hw/gpu.cpp
parentMerge pull request #1264 from bunnei/fragment-lighting-hw (diff)
downloadyuzu-6c71858c5c698a718045ba44eda495080417a84b.tar.gz
yuzu-6c71858c5c698a718045ba44eda495080417a84b.tar.xz
yuzu-6c71858c5c698a718045ba44eda495080417a84b.zip
BitField: Make trivially copyable and remove assignment operator
Diffstat (limited to 'src/core/hw/gpu.cpp')
-rw-r--r--src/core/hw/gpu.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index 4bd3a632d..c60310586 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -146,8 +146,8 @@ inline void Write(u32 addr, const T data) {
146 146
147 // Reset "trigger" flag and set the "finish" flag 147 // Reset "trigger" flag and set the "finish" flag
148 // NOTE: This was confirmed to happen on hardware even if "address_start" is zero. 148 // NOTE: This was confirmed to happen on hardware even if "address_start" is zero.
149 config.trigger = 0; 149 config.trigger.Assign(0);
150 config.finished = 1; 150 config.finished.Assign(1);
151 } 151 }
152 break; 152 break;
153 } 153 }
@@ -444,16 +444,16 @@ void Init() {
444 framebuffer_sub.address_left1 = 0x1848F000; 444 framebuffer_sub.address_left1 = 0x1848F000;
445 framebuffer_sub.address_left2 = 0x184C7800; 445 framebuffer_sub.address_left2 = 0x184C7800;
446 446
447 framebuffer_top.width = 240; 447 framebuffer_top.width.Assign(240);
448 framebuffer_top.height = 400; 448 framebuffer_top.height.Assign(400);
449 framebuffer_top.stride = 3 * 240; 449 framebuffer_top.stride = 3 * 240;
450 framebuffer_top.color_format = Regs::PixelFormat::RGB8; 450 framebuffer_top.color_format.Assign(Regs::PixelFormat::RGB8);
451 framebuffer_top.active_fb = 0; 451 framebuffer_top.active_fb = 0;
452 452
453 framebuffer_sub.width = 240; 453 framebuffer_sub.width.Assign(240);
454 framebuffer_sub.height = 320; 454 framebuffer_sub.height.Assign(320);
455 framebuffer_sub.stride = 3 * 240; 455 framebuffer_sub.stride = 3 * 240;
456 framebuffer_sub.color_format = Regs::PixelFormat::RGB8; 456 framebuffer_sub.color_format.Assign(Regs::PixelFormat::RGB8);
457 framebuffer_sub.active_fb = 0; 457 framebuffer_sub.active_fb = 0;
458 458
459 last_skip_frame = false; 459 last_skip_frame = false;