mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
rsx: Program cache fixes
- Reorganize storage hash vs ucode hash - Scan for actual fragment program start in case leading NOPed code precedes the actual instructions -- e.g FEAR2 Demo has over 32k of padding before actual program code that messes up hashes
This commit is contained in:
parent
f5145943b2
commit
90c2324e47
5 changed files with 66 additions and 12 deletions
|
@ -82,12 +82,12 @@ public:
|
|||
|
||||
u64 get_hash(RSXVertexProgram &prog)
|
||||
{
|
||||
return program_hash_util::vertex_program_hash()(prog);
|
||||
return program_hash_util::vertex_program_utils::get_vertex_program_ucode_hash(prog);
|
||||
}
|
||||
|
||||
u64 get_hash(RSXFragmentProgram &prog)
|
||||
{
|
||||
return program_hash_util::fragment_program_hash()(prog);
|
||||
return program_hash_util::fragment_program_utils::get_fragment_program_ucode_hash(prog);
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue