diff --git a/rpcs3/Emu/RSX/Common/texture_cache_helpers.h b/rpcs3/Emu/RSX/Common/texture_cache_helpers.h index 394053807c..0a26b36e3c 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache_helpers.h +++ b/rpcs3/Emu/RSX/Common/texture_cache_helpers.h @@ -329,8 +329,8 @@ namespace rsx auto add_local_resource = [&](auto& section, u32 address, u16 slice, bool scaling = true) { // Intersect this resource with the original one - const auto section_bpp = get_format_block_size_in_bytes(section->get_gcm_format()); - const auto normalized_width = (section->get_width() * section_bpp) / attr.bpp; + const u32 section_bpp = get_format_block_size_in_bytes(section->get_gcm_format()); + const u32 normalized_width = (section->get_width() * section_bpp) / attr.bpp; const auto [src_offset, dst_offset, dst_size] = rsx::intersect_region( section->get_section_base(), normalized_width, section->get_height(), section_bpp, /* parent region (extractee) */ diff --git a/rpcs3/Emu/RSX/RSXFIFO.cpp b/rpcs3/Emu/RSX/RSXFIFO.cpp index 562737d89a..e1bc929a93 100644 --- a/rpcs3/Emu/RSX/RSXFIFO.cpp +++ b/rpcs3/Emu/RSX/RSXFIFO.cpp @@ -123,7 +123,8 @@ namespace rsx const auto src = vm::_ptr(addr1); // Find the next set bit after every iteration - for (u32 i = 0, start_time = 0;; i = (std::countr_zero(utils::rol8(to_fetch, 0 - i - 1)) + i + 1) % 8) + u64 start_time = 0; + for (int i = 0;; i = (std::countr_zero(utils::rol8(to_fetch, 0 - i - 1)) + i + 1) % 8) { // If a reservation is being updated, try to load another const auto& res = vm::reservation_acquire(addr1 + i * 128);