summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2020-12-07 00:41:47 -0500
committerGravatar Lioncash2020-12-07 00:41:50 -0500
commit4c5f5c9bf301d3626df104dbed6fed6f115cedc8 (patch)
tree968245c43735e546fff2a8c7dcecfe653dee33fd /src/video_core/gpu.cpp
parentMerge pull request #5147 from comex/xx-purevirt (diff)
downloadyuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.tar.gz
yuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.tar.xz
yuzu-4c5f5c9bf301d3626df104dbed6fed6f115cedc8.zip
video_core: Remove unnecessary enum class casting in logging messages
fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit.
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 964b3f3dc..e2512a7f2 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -299,8 +299,7 @@ void GPU::CallPullerMethod(const MethodCall& method_call) {
299 break; 299 break;
300 } 300 }
301 default: 301 default:
302 LOG_ERROR(HW_GPU, "Special puller engine method {:X} not implemented", 302 LOG_ERROR(HW_GPU, "Special puller engine method {:X} not implemented", method);
303 static_cast<u32>(method));
304 break; 303 break;
305 } 304 }
306} 305}
@@ -379,7 +378,7 @@ void GPU::ProcessBindMethod(const MethodCall& method_call) {
379 dma_pusher->BindSubchannel(kepler_memory.get(), method_call.subchannel); 378 dma_pusher->BindSubchannel(kepler_memory.get(), method_call.subchannel);
380 break; 379 break;
381 default: 380 default:
382 UNIMPLEMENTED_MSG("Unimplemented engine {:04X}", static_cast<u32>(engine_id)); 381 UNIMPLEMENTED_MSG("Unimplemented engine {:04X}", engine_id);
383 } 382 }
384} 383}
385 384
@@ -392,8 +391,7 @@ void GPU::ProcessFenceActionMethod() {
392 IncrementSyncPoint(regs.fence_action.syncpoint_id); 391 IncrementSyncPoint(regs.fence_action.syncpoint_id);
393 break; 392 break;
394 default: 393 default:
395 UNIMPLEMENTED_MSG("Unimplemented operation {}", 394 UNIMPLEMENTED_MSG("Unimplemented operation {}", regs.fence_action.op.Value());
396 static_cast<u32>(regs.fence_action.op.Value()));
397 } 395 }
398} 396}
399 397