rsx: Fix some more warnings

This commit is contained in:
kd-11 2022-09-22 20:06:50 +03:00 committed by kd-11
parent 0572d44996
commit dd8a337b14
3 changed files with 13 additions and 9 deletions

View File

@ -43,7 +43,7 @@ namespace rsx
public:
surface_cache_dma()
{
for (usz i = 0; i < m_buffer_list.size(); ++i)
for (u32 i = 0; i < ::size32(m_buffer_list); ++i)
{
m_buffer_list[i].id = i;
}

View File

@ -718,7 +718,8 @@ namespace rsx
while (length >= 8)
{
auto& value = *utils::bless<u64>(dst_ptr);
mask |= (~value); // If the value is not all 1s, set valid to true
const u64 block_mask = ~value; // If the value is not all 1s, set valid to true
mask |= block_mask;
value = umax;
dst_ptr += 8;
@ -728,7 +729,8 @@ namespace rsx
if (length >= 4)
{
auto& value = *utils::bless<u32>(dst_ptr);
mask |= (~value);
const u32 block_mask = ~value;
mask |= block_mask;
value = umax;
dst_ptr += 4;
@ -738,7 +740,8 @@ namespace rsx
if (length >= 2)
{
auto& value = *utils::bless<u16>(dst_ptr);
mask |= (~value);
const u16 block_mask = ~value;
mask |= block_mask;
value = umax;
dst_ptr += 2;
@ -748,7 +751,8 @@ namespace rsx
if (length)
{
auto& value = *dst_ptr;
mask |= (~value);
const u8 block_mask = ~value;
mask |= block_mask;
value = umax;
}

View File

@ -258,8 +258,8 @@ namespace gl
cs_shuffle_base::run(cmd, data, num_texels * 4, data_offset);
}
template class cs_shuffle_d32fx8_to_x8d24f<true>;
template class cs_shuffle_d32fx8_to_x8d24f<false>;
template struct cs_shuffle_d32fx8_to_x8d24f<true>;
template struct cs_shuffle_d32fx8_to_x8d24f<false>;
template <bool SwapBytes>
cs_shuffle_x8d24f_to_d32fx8<SwapBytes>::cs_shuffle_x8d24f_to_d32fx8()
@ -313,8 +313,8 @@ namespace gl
cs_shuffle_base::run(cmd, data, num_texels * 4, data_offset);
}
template class cs_shuffle_x8d24f_to_d32fx8<true>;
template class cs_shuffle_x8d24f_to_d32fx8<false>;
template struct cs_shuffle_x8d24f_to_d32fx8<true>;
template struct cs_shuffle_x8d24f_to_d32fx8<false>;
cs_d24x8_to_ssbo::cs_d24x8_to_ssbo()
{