diff options
| author | 2016-02-13 21:10:05 -0500 | |
|---|---|---|
| committer | 2016-02-13 21:10:05 -0500 | |
| commit | 0d086616d1af239b8e41b246bea3c1ef85fc907f (patch) | |
| tree | 0dc7778532b0e2d1c5acd0224266b8a67d961155 /src/video_core | |
| parent | Merge pull request #1264 from bunnei/fragment-lighting-hw (diff) | |
| parent | BitField: Make trivially copyable and remove assignment operator (diff) | |
| download | yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.tar.gz yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.tar.xz yuzu-0d086616d1af239b8e41b246bea3c1ef85fc907f.zip | |
Merge pull request #1406 from MerryMage/bitfield2
BitField: Make trivially copyable and remove assignment operator.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/command_processor.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 5dfedfe31..ed20057b5 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp | |||
| @@ -429,7 +429,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { | |||
| 429 | uniform.w.ToFloat32()); | 429 | uniform.w.ToFloat32()); |
| 430 | 430 | ||
| 431 | // TODO: Verify that this actually modifies the register! | 431 | // TODO: Verify that this actually modifies the register! |
| 432 | uniform_setup.index = uniform_setup.index + 1; | 432 | uniform_setup.index.Assign(uniform_setup.index + 1); |
| 433 | } | 433 | } |
| 434 | break; | 434 | break; |
| 435 | } | 435 | } |
| @@ -478,7 +478,7 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { | |||
| 478 | ASSERT_MSG(lut_config.index < 256, "lut_config.index exceeded maximum value of 255!"); | 478 | ASSERT_MSG(lut_config.index < 256, "lut_config.index exceeded maximum value of 255!"); |
| 479 | 479 | ||
| 480 | g_state.lighting.luts[lut_config.type][lut_config.index].raw = value; | 480 | g_state.lighting.luts[lut_config.type][lut_config.index].raw = value; |
| 481 | lut_config.index = lut_config.index + 1; | 481 | lut_config.index.Assign(lut_config.index + 1); |
| 482 | break; | 482 | break; |
| 483 | } | 483 | } |
| 484 | 484 | ||
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index 4f66dbd65..6e6fd7335 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp | |||
| @@ -201,11 +201,11 @@ void DumpShader(const std::string& filename, const Regs::ShaderConfig& config, c | |||
| 201 | 201 | ||
| 202 | if (it == output_info_table.end()) { | 202 | if (it == output_info_table.end()) { |
| 203 | output_info_table.emplace_back(); | 203 | output_info_table.emplace_back(); |
| 204 | output_info_table.back().type = type; | 204 | output_info_table.back().type.Assign(type); |
| 205 | output_info_table.back().component_mask = component_mask; | 205 | output_info_table.back().component_mask.Assign(component_mask); |
| 206 | output_info_table.back().id = i; | 206 | output_info_table.back().id.Assign(i); |
| 207 | } else { | 207 | } else { |
| 208 | it->component_mask = it->component_mask | component_mask; | 208 | it->component_mask.Assign(it->component_mask | component_mask); |
| 209 | } | 209 | } |
| 210 | } catch (const std::out_of_range& ) { | 210 | } catch (const std::out_of_range& ) { |
| 211 | DEBUG_ASSERT_MSG(false, "Unknown output attribute mapping"); | 211 | DEBUG_ASSERT_MSG(false, "Unknown output attribute mapping"); |