summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-11-29 14:04:40 +0100
committerLioncash <mathew1800@gmail.com>2022-11-29 14:38:46 +0100
commitd7ec031419f7eef3f85210659cf7f6dc8c50d791 (patch)
treeccc3c652023497a48af86a2842480d88949c2804 /src/video_core/engines/maxwell_3d.cpp
parentMerge pull request #9325 from german77/default_by_default (diff)
downloadyuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar
yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.gz
yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.bz2
yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.lz
yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.xz
yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.tar.zst
yuzu-d7ec031419f7eef3f85210659cf7f6dc8c50d791.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 212427b8b..55462752c 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -370,11 +370,11 @@ void Maxwell3D::CallMultiMethod(u32 method, const u32* base_start, u32 amount,
ProcessCBMultiData(base_start, amount);
break;
case MAXWELL3D_REG_INDEX(inline_data):
- upload_state.ProcessData(base_start, static_cast<size_t>(amount));
+ upload_state.ProcessData(base_start, amount);
return;
default:
- for (std::size_t i = 0; i < amount; i++) {
- CallMethod(method, base_start[i], methods_pending - static_cast<u32>(i) <= 1);
+ for (u32 i = 0; i < amount; i++) {
+ CallMethod(method, base_start[i], methods_pending - i <= 1);
}
break;
}
@@ -652,12 +652,12 @@ void Maxwell3D::ProcessDeferredDraw() {
return;
}
- u32 method_count = static_cast<u32>(deferred_draw_method.size());
+ const auto method_count = deferred_draw_method.size();
u32 instance_count = 1;
u32 vertex_buffer_count = 0;
u32 index_buffer_count = 0;
- for (u32 index = 0; index < method_count; ++index) {
- u32 method = deferred_draw_method[index];
+ for (size_t index = 0; index < method_count; ++index) {
+ const u32 method = deferred_draw_method[index];
if (method == MAXWELL3D_REG_INDEX(vertex_buffer.count)) {
instance_count = ++vertex_buffer_count;
} else if (method == MAXWELL3D_REG_INDEX(index_buffer.count)) {