mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-16 07:10:40 +00:00
rsx: Silence some warnings
This commit is contained in:
parent
6e9df9e452
commit
2e504b2dac
@ -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) */
|
||||
|
@ -123,7 +123,8 @@ namespace rsx
|
||||
const auto src = vm::_ptr<spu_rdata_t>(addr1);
|
||||
|
||||
// Find the next set bit after every iteration
|
||||
for (u32 i = 0, start_time = 0;; i = (std::countr_zero<u32>(utils::rol8(to_fetch, 0 - i - 1)) + i + 1) % 8)
|
||||
u64 start_time = 0;
|
||||
for (int i = 0;; i = (std::countr_zero<u32>(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);
|
||||
|
Loading…
Reference in New Issue
Block a user