summaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer.cpp
diff options
context:
space:
mode:
authorGravatar archshift2015-01-20 17:16:47 -0800
committerGravatar archshift2015-02-10 18:30:31 -0800
commitef24e72b2618806f64345544fa46c84f3f494890 (patch)
treefca138e8377c4d66bd1fe026a3d2fef54a7f090c /src/video_core/rasterizer.cpp
parentGSP: Fixed typo in SignalInterrupt (diff)
downloadyuzu-ef24e72b2618806f64345544fa46c84f3f494890.tar.gz
yuzu-ef24e72b2618806f64345544fa46c84f3f494890.tar.xz
yuzu-ef24e72b2618806f64345544fa46c84f3f494890.zip
Asserts: break/crash program, fit to style guide; log.h->assert.h
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.
Diffstat (limited to 'src/video_core/rasterizer.cpp')
-rw-r--r--src/video_core/rasterizer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 06fd8d140..617c767e7 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -216,7 +216,7 @@ void ProcessTriangle(const VertexShader::OutputVertex& v0,
216 if (!texture.enabled) 216 if (!texture.enabled)
217 continue; 217 continue;
218 218
219 _dbg_assert_(HW_GPU, 0 != texture.config.address); 219 DEBUG_ASSERT(0 != texture.config.address);
220 220
221 int s = (int)(uv[i].u() * float24::FromFloat32(static_cast<float>(texture.config.width))).ToFloat32(); 221 int s = (int)(uv[i].u() * float24::FromFloat32(static_cast<float>(texture.config.width))).ToFloat32();
222 int t = (int)(uv[i].v() * float24::FromFloat32(static_cast<float>(texture.config.height))).ToFloat32(); 222 int t = (int)(uv[i].v() * float24::FromFloat32(static_cast<float>(texture.config.height))).ToFloat32();
@@ -232,7 +232,7 @@ void ProcessTriangle(const VertexShader::OutputVertex& v0,
232 232
233 default: 233 default:
234 LOG_ERROR(HW_GPU, "Unknown texture coordinate wrapping mode %x\n", (int)mode); 234 LOG_ERROR(HW_GPU, "Unknown texture coordinate wrapping mode %x\n", (int)mode);
235 _dbg_assert_(HW_GPU, 0); 235 UNIMPLEMENTED();
236 return 0; 236 return 0;
237 } 237 }
238 }; 238 };
@@ -282,7 +282,7 @@ void ProcessTriangle(const VertexShader::OutputVertex& v0,
282 282
283 default: 283 default:
284 LOG_ERROR(HW_GPU, "Unknown color combiner source %d\n", (int)source); 284 LOG_ERROR(HW_GPU, "Unknown color combiner source %d\n", (int)source);
285 _dbg_assert_(HW_GPU, 0); 285 UNIMPLEMENTED();
286 return {}; 286 return {};
287 } 287 }
288 }; 288 };
@@ -380,7 +380,7 @@ void ProcessTriangle(const VertexShader::OutputVertex& v0,
380 380
381 default: 381 default:
382 LOG_ERROR(HW_GPU, "Unknown color combiner operation %d\n", (int)op); 382 LOG_ERROR(HW_GPU, "Unknown color combiner operation %d\n", (int)op);
383 _dbg_assert_(HW_GPU, 0); 383 UNIMPLEMENTED();
384 return {}; 384 return {};
385 } 385 }
386 }; 386 };
@@ -404,7 +404,7 @@ void ProcessTriangle(const VertexShader::OutputVertex& v0,
404 404
405 default: 405 default:
406 LOG_ERROR(HW_GPU, "Unknown alpha combiner operation %d\n", (int)op); 406 LOG_ERROR(HW_GPU, "Unknown alpha combiner operation %d\n", (int)op);
407 _dbg_assert_(HW_GPU, 0); 407 UNIMPLEMENTED();
408 return 0; 408 return 0;
409 } 409 }
410 }; 410 };