rsx: Silence compiler warnings

This commit is contained in:
kd-11 2025-04-26 21:24:39 +03:00
parent 91ec5367f3
commit 33b9aaeee8
4 changed files with 8 additions and 8 deletions

View file

@ -465,7 +465,7 @@ namespace
const unsigned step = 8; // We do 8 entries per step
const __m128i vec_step = _mm_set1_epi16(8); // Constant to increment the raw values
__m128i values = _mm_set_epi16(7, 6, 5, 4, 3, 2, 1, 0);
__m128i* vec_ptr = reinterpret_cast<__m128i*>(dst);
__m128i* vec_ptr = utils::bless<__m128i>(dst);
for (; (i + step) <= count; i += step, vec_ptr++)
{

View file

@ -36,8 +36,8 @@ using namespace program_hash_util;
AVX512_ICL_FUNC usz get_vertex_program_ucode_hash_512(const RSXVertexProgram &program)
{
// Load all elements of the instruction_mask bitset
const __m512i* instMask512 = reinterpret_cast<const __m512i*>(&program.instruction_mask);
const __m128i* instMask128 = reinterpret_cast<const __m128i*>(&program.instruction_mask);
const __m512i* instMask512 = utils::bless<const __m512i>(&program.instruction_mask);
const __m128i* instMask128 = utils::bless<const __m128i>(&program.instruction_mask);
const __m512i lowerMask = _mm512_loadu_si512(instMask512);
const __m128i upper128 = _mm_loadu_si128(instMask128 + 4);
@ -453,8 +453,8 @@ usz vertex_program_storage_hash::operator()(const RSXVertexProgram &program) con
AVX512_ICL_FUNC bool vertex_program_compare_512(const RSXVertexProgram &binary1, const RSXVertexProgram &binary2)
{
// Load all elements of the instruction_mask bitset
const __m512i* instMask512 = reinterpret_cast<const __m512i*>(&binary1.instruction_mask);
const __m128i* instMask128 = reinterpret_cast<const __m128i*>(&binary1.instruction_mask);
const __m512i* instMask512 = utils::bless<const __m512i>(&binary1.instruction_mask);
const __m128i* instMask128 = utils::bless<const __m128i>(&binary1.instruction_mask);
const __m512i lowerMask = _mm512_loadu_si512(instMask512);
const __m128i upper128 = _mm_loadu_si128(instMask128 + 4);

View file

@ -939,7 +939,7 @@ void VKGSRender::emit_geometry(u32 sub_index)
else if (m_device->get_multidraw_support())
{
const auto subranges = draw_call.get_subranges();
auto ptr = reinterpret_cast<const VkMultiDrawInfoEXT*>(& subranges.front().first);
auto ptr = utils::bless<const VkMultiDrawInfoEXT>(& subranges.front().first);
_vkCmdDrawMultiEXT(*m_current_command_buffer, ::size32(subranges), ptr, 1, 0, sizeof(rsx::draw_range_t));
}
else
@ -986,7 +986,7 @@ void VKGSRender::emit_geometry(u32 sub_index)
*_ptr++ = count;
vertex_offset += count;
}
_vkCmdDrawMultiIndexedEXT(*m_current_command_buffer, subranges_count, reinterpret_cast<const VkMultiDrawIndexedInfoEXT*>(_ptr), 1, 0, sizeof(u32) * 3, nullptr);
_vkCmdDrawMultiIndexedEXT(*m_current_command_buffer, subranges_count, utils::bless<const VkMultiDrawIndexedInfoEXT>(_ptr), 1, 0, sizeof(u32) * 3, nullptr);
}
else
{

View file

@ -2196,7 +2196,7 @@ void VKGSRender::update_vertex_env(u32 id, const vk::vertex_upload_info& vertex_
}
const u32 vertex_layout_offset = (id * 16) + (base_offset / 8);
const volatile u32 constant_id_offset = static_cast<volatile u32>(m_xform_constants_dynamic_offset) / 16u;
const u32 constant_id_offset = static_cast<u32>(m_xform_constants_dynamic_offset) / 16u;
u32 push_constants[6];
u32 data_length = 20;