rsx: Silence some warnings

This commit is contained in:
kd-11 2022-08-18 22:42:02 +03:00 committed by kd-11
parent 6e9df9e452
commit 2e504b2dac
2 changed files with 4 additions and 3 deletions

View File

@ -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) */

View File

@ -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);