summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar bunnei2018-04-27 11:09:56 -0400
committerGravatar GitHub2018-04-27 11:09:56 -0400
commitacede1f1d3309e629b1ddc55ad22f920fe50f681 (patch)
tree899731d5c75a7b40a8aa72f5e115f86e10078745 /src/video_core
parentMerge pull request #380 from ogniK5377/service-impl (diff)
parentgeneral: Convert assertion macros over to be fmt-compatible (diff)
downloadyuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.tar.gz
yuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.tar.xz
yuzu-acede1f1d3309e629b1ddc55ad22f920fe50f681.zip
Merge pull request #409 from lioncash/assert
general: Convert assertion macros over to be fmt-compatible
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp4
-rw-r--r--src/video_core/gpu.cpp2
-rw-r--r--src/video_core/macro_interpreter.cpp6
-rw-r--r--src/video_core/renderer_opengl/gl_shader_manager.cpp2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 4306b894f..835e5fe78 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -168,7 +168,7 @@ void Maxwell3D::ProcessQueryGet() {
168 result = 0; 168 result = 0;
169 break; 169 break;
170 default: 170 default:
171 UNIMPLEMENTED_MSG("Unimplemented query select type %u", 171 UNIMPLEMENTED_MSG("Unimplemented query select type {}",
172 static_cast<u32>(regs.query.query_get.select.Value())); 172 static_cast<u32>(regs.query.query_get.select.Value()));
173 } 173 }
174 174
@@ -186,7 +186,7 @@ void Maxwell3D::ProcessQueryGet() {
186 break; 186 break;
187 } 187 }
188 default: 188 default:
189 UNIMPLEMENTED_MSG("Query mode %u not implemented", 189 UNIMPLEMENTED_MSG("Query mode {} not implemented",
190 static_cast<u32>(regs.query.query_get.mode.Value())); 190 static_cast<u32>(regs.query.query_get.mode.Value()));
191 } 191 }
192} 192}
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 9eb143918..756518ee7 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -30,7 +30,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
30 case RenderTargetFormat::RGB10_A2_UNORM: 30 case RenderTargetFormat::RGB10_A2_UNORM:
31 return 4; 31 return 4;
32 default: 32 default:
33 UNIMPLEMENTED_MSG("Unimplemented render target format %u", static_cast<u32>(format)); 33 UNIMPLEMENTED_MSG("Unimplemented render target format {}", static_cast<u32>(format));
34 } 34 }
35} 35}
36 36
diff --git a/src/video_core/macro_interpreter.cpp b/src/video_core/macro_interpreter.cpp
index 993a67746..44ece01c1 100644
--- a/src/video_core/macro_interpreter.cpp
+++ b/src/video_core/macro_interpreter.cpp
@@ -113,7 +113,7 @@ bool MacroInterpreter::Step(const std::vector<u32>& code, bool is_delay_slot) {
113 break; 113 break;
114 } 114 }
115 default: 115 default:
116 UNIMPLEMENTED_MSG("Unimplemented macro operation %u", 116 UNIMPLEMENTED_MSG("Unimplemented macro operation {}",
117 static_cast<u32>(opcode.operation.Value())); 117 static_cast<u32>(opcode.operation.Value()));
118 } 118 }
119 119
@@ -154,7 +154,7 @@ u32 MacroInterpreter::GetALUResult(ALUOperation operation, u32 src_a, u32 src_b)
154 return ~(src_a & src_b); 154 return ~(src_a & src_b);
155 155
156 default: 156 default:
157 UNIMPLEMENTED_MSG("Unimplemented ALU operation %u", static_cast<u32>(operation)); 157 UNIMPLEMENTED_MSG("Unimplemented ALU operation {}", static_cast<u32>(operation));
158 } 158 }
159} 159}
160 160
@@ -201,7 +201,7 @@ void MacroInterpreter::ProcessResult(ResultOperation operation, u32 reg, u32 res
201 Send((result >> 12) & 0b111111); 201 Send((result >> 12) & 0b111111);
202 break; 202 break;
203 default: 203 default:
204 UNIMPLEMENTED_MSG("Unimplemented result operation %u", static_cast<u32>(operation)); 204 UNIMPLEMENTED_MSG("Unimplemented result operation {}", static_cast<u32>(operation));
205 } 205 }
206} 206}
207 207
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp
index 17b3925a0..ccdfc2718 100644
--- a/src/video_core/renderer_opengl/gl_shader_manager.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp
@@ -17,7 +17,7 @@ void SetShaderUniformBlockBinding(GLuint shader, const char* name,
17 GLint ub_size = 0; 17 GLint ub_size = 0;
18 glGetActiveUniformBlockiv(shader, ub_index, GL_UNIFORM_BLOCK_DATA_SIZE, &ub_size); 18 glGetActiveUniformBlockiv(shader, ub_index, GL_UNIFORM_BLOCK_DATA_SIZE, &ub_size);
19 ASSERT_MSG(ub_size == expected_size, 19 ASSERT_MSG(ub_size == expected_size,
20 "Uniform block size did not match! Got %d, expected %zu", 20 "Uniform block size did not match! Got {}, expected {}",
21 static_cast<int>(ub_size), expected_size); 21 static_cast<int>(ub_size), expected_size);
22 glUniformBlockBinding(shader, ub_index, static_cast<GLuint>(binding)); 22 glUniformBlockBinding(shader, ub_index, static_cast<GLuint>(binding));
23 } 23 }