mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Loader: Improve just-in-time installation of disc game files (#10719)
* rsx: Indexed access to surface attributes
This commit is contained in:
parent
c13a46b07b
commit
fcfeac818f
3 changed files with 74 additions and 79 deletions
|
@ -1010,17 +1010,17 @@ namespace rsx
|
|||
{
|
||||
u32 offset_color[] =
|
||||
{
|
||||
rsx::method_registers.surface_a_offset(),
|
||||
rsx::method_registers.surface_b_offset(),
|
||||
rsx::method_registers.surface_c_offset(),
|
||||
rsx::method_registers.surface_d_offset(),
|
||||
rsx::method_registers.surface_offset(0),
|
||||
rsx::method_registers.surface_offset(1),
|
||||
rsx::method_registers.surface_offset(2),
|
||||
rsx::method_registers.surface_offset(3),
|
||||
};
|
||||
u32 context_dma_color[] =
|
||||
{
|
||||
rsx::method_registers.surface_a_dma(),
|
||||
rsx::method_registers.surface_b_dma(),
|
||||
rsx::method_registers.surface_c_dma(),
|
||||
rsx::method_registers.surface_d_dma(),
|
||||
rsx::method_registers.surface_dma(0),
|
||||
rsx::method_registers.surface_dma(1),
|
||||
rsx::method_registers.surface_dma(2),
|
||||
rsx::method_registers.surface_dma(3),
|
||||
};
|
||||
return
|
||||
{
|
||||
|
@ -1064,10 +1064,10 @@ namespace rsx
|
|||
layout.zeta_pitch = rsx::method_registers.surface_z_pitch();
|
||||
layout.color_pitch =
|
||||
{
|
||||
rsx::method_registers.surface_a_pitch(),
|
||||
rsx::method_registers.surface_b_pitch(),
|
||||
rsx::method_registers.surface_c_pitch(),
|
||||
rsx::method_registers.surface_d_pitch(),
|
||||
rsx::method_registers.surface_pitch(0),
|
||||
rsx::method_registers.surface_pitch(1),
|
||||
rsx::method_registers.surface_pitch(2),
|
||||
rsx::method_registers.surface_pitch(3),
|
||||
};
|
||||
|
||||
layout.color_format = rsx::method_registers.surface_color();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue