mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
RSX: ProgramStateCache logic cleanup and microoptimizations
- Eliminate some redundant checks in fragment and vertex comparison functions - Add is_any_src_constant optimization, eliminates 1 instruction per loop
This commit is contained in:
parent
d891b83e4b
commit
7b9aaacc4b
2 changed files with 12 additions and 24 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "Utilities/mutex.h"
|
||||
#include "util/logs.hpp"
|
||||
#include "util/fnv_hash.hpp"
|
||||
#include "util/v128.hpp"
|
||||
|
||||
#include <span>
|
||||
#include <unordered_map>
|
||||
|
|
@ -61,7 +62,8 @@ namespace program_hash_util
|
|||
/**
|
||||
* returns true if the given source Operand is a constant
|
||||
*/
|
||||
static bool is_constant(u32 sourceOperand);
|
||||
|
||||
static bool is_any_src_constant(v128 sourceOperand);
|
||||
|
||||
static usz get_fragment_program_ucode_size(const void* ptr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue