rsx: Possible fix for UB data type consistency

This commit is contained in:
kd-11 2018-09-03 17:14:53 +03:00 committed by kd-11
parent 5a08b690d5
commit 2e0ecb556c
2 changed files with 11 additions and 14 deletions

View file

@ -224,6 +224,16 @@ namespace rsx
static const size_t vertex_subreg = index % increment_per_array_index;
const auto vtype = vertex_data_type_from_element_type<type>::type;
verify(HERE), vtype != rsx::vertex_base_type::cmp;
switch (vtype)
{
case rsx::vertex_base_type::ub:
case rsx::vertex_base_type::ub256:
// One-way byteswap
arg = se_storage<u32>::swap(arg);
break;
}
if (rsx->in_begin_end)
{