mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-04 15:19:47 +00:00
rsx: Fix unknown vertex base types
Clamp vertex type field into 3-bits instead of 4-bit value Case 0 is UB256
This commit is contained in:
parent
fa00fb3eac
commit
688d5a9919
2 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ rsx::vertex_base_type rsx::to_vertex_base_type(u8 in)
|
||||||
{
|
{
|
||||||
switch (in)
|
switch (in)
|
||||||
{
|
{
|
||||||
|
case 0: return rsx::vertex_base_type::ub256;
|
||||||
case 1: return rsx::vertex_base_type::s1;
|
case 1: return rsx::vertex_base_type::s1;
|
||||||
case 2: return rsx::vertex_base_type::f;
|
case 2: return rsx::vertex_base_type::f;
|
||||||
case 3: return rsx::vertex_base_type::sf;
|
case 3: return rsx::vertex_base_type::sf;
|
||||||
|
|
|
@ -4598,7 +4598,7 @@ struct vertex_array_helper
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
u32 raw_value;
|
u32 raw_value;
|
||||||
bitfield_decoder_t<0, 4> type;
|
bitfield_decoder_t<0, 3> type;
|
||||||
bitfield_decoder_t<4, 4> size;
|
bitfield_decoder_t<4, 4> size;
|
||||||
bitfield_decoder_t<8, 8> stride;
|
bitfield_decoder_t<8, 8> stride;
|
||||||
bitfield_decoder_t<16, 16> frequency;
|
bitfield_decoder_t<16, 16> frequency;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue