mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 02:38:37 +12:00
rsx: Possible fix for UB data type consistency
This commit is contained in:
parent
5a08b690d5
commit
2e0ecb556c
2 changed files with 11 additions and 14 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue