diff options
| author | 2017-08-28 03:21:51 -0500 | |
|---|---|---|
| committer | 2017-08-28 03:21:51 -0500 | |
| commit | 647f017c6d42121808aa4522049e3ea8f4d5ed31 (patch) | |
| tree | 38f1ac4e26d827d64a8e09d168da24dea9c56286 /src/video_core/regs_framebuffer.h | |
| parent | Merge pull request #2897 from bunnei/telemetry-ui (diff) | |
| parent | Warnings: Fixed a few missing-return warnings in video_core. (diff) | |
| download | yuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.tar.gz yuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.tar.xz yuzu-647f017c6d42121808aa4522049e3ea8f4d5ed31.zip | |
Merge pull request #2892 from Subv/warnings2
Warnings: Fixed a few missing-return warnings in video_core.
Diffstat (limited to 'src/video_core/regs_framebuffer.h')
| -rw-r--r-- | src/video_core/regs_framebuffer.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/video_core/regs_framebuffer.h b/src/video_core/regs_framebuffer.h index a50bd4111..7b565f911 100644 --- a/src/video_core/regs_framebuffer.h +++ b/src/video_core/regs_framebuffer.h | |||
| @@ -256,10 +256,9 @@ struct FramebufferRegs { | |||
| 256 | return 3; | 256 | return 3; |
| 257 | case DepthFormat::D24S8: | 257 | case DepthFormat::D24S8: |
| 258 | return 4; | 258 | return 4; |
| 259 | default: | ||
| 260 | LOG_CRITICAL(HW_GPU, "Unknown depth format %u", format); | ||
| 261 | UNIMPLEMENTED(); | ||
| 262 | } | 259 | } |
| 260 | |||
| 261 | ASSERT_MSG(false, "Unknown depth format %u", format); | ||
| 263 | } | 262 | } |
| 264 | 263 | ||
| 265 | // Returns the number of bits per depth component of the specified depth format | 264 | // Returns the number of bits per depth component of the specified depth format |
| @@ -270,10 +269,9 @@ struct FramebufferRegs { | |||
| 270 | case DepthFormat::D24: | 269 | case DepthFormat::D24: |
| 271 | case DepthFormat::D24S8: | 270 | case DepthFormat::D24S8: |
| 272 | return 24; | 271 | return 24; |
| 273 | default: | ||
| 274 | LOG_CRITICAL(HW_GPU, "Unknown depth format %u", format); | ||
| 275 | UNIMPLEMENTED(); | ||
| 276 | } | 272 | } |
| 273 | |||
| 274 | ASSERT_MSG(false, "Unknown depth format %u", format); | ||
| 277 | } | 275 | } |
| 278 | 276 | ||
| 279 | INSERT_PADDING_WORDS(0x20); | 277 | INSERT_PADDING_WORDS(0x20); |