mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
static analysis: less references
This commit is contained in:
parent
df2f68da44
commit
815a4e7dc1
2 changed files with 8 additions and 8 deletions
|
@ -256,13 +256,13 @@ public:
|
|||
|
||||
program_buffer_patch_entry() = default;
|
||||
|
||||
program_buffer_patch_entry(f32& key, f32& value)
|
||||
program_buffer_patch_entry(f32 key, f32 value)
|
||||
{
|
||||
fp_key = key;
|
||||
fp_value = value;
|
||||
}
|
||||
|
||||
program_buffer_patch_entry(u32& key, u32& value)
|
||||
program_buffer_patch_entry(u32 key, u32 value)
|
||||
{
|
||||
hex_key = key;
|
||||
hex_value = value;
|
||||
|
|
|
@ -110,14 +110,14 @@ namespace rsx
|
|||
return result;
|
||||
}
|
||||
|
||||
static inline void get_g8b8_r8g8_colormask(bool& red, bool&/*green*/, bool& blue, bool& alpha)
|
||||
static inline void get_g8b8_r8g8_colormask(bool& red, bool/*green*/, bool& blue, bool& alpha)
|
||||
{
|
||||
red = blue;
|
||||
blue = false;
|
||||
alpha = false;
|
||||
}
|
||||
|
||||
static inline void get_g8b8_clear_color(u8& red, u8& /*green*/, u8& blue, u8& /*alpha*/)
|
||||
static inline void get_g8b8_clear_color(u8& red, u8 /*green*/, u8 blue, u8 /*alpha*/)
|
||||
{
|
||||
red = blue;
|
||||
}
|
||||
|
@ -132,12 +132,12 @@ namespace rsx
|
|||
return result;
|
||||
}
|
||||
|
||||
static inline void get_abgr8_colormask(bool& red, bool& /*green*/, bool& blue, bool& /*alpha*/)
|
||||
static inline void get_abgr8_colormask(bool& red, bool /*green*/, bool& blue, bool /*alpha*/)
|
||||
{
|
||||
std::swap(red, blue);
|
||||
}
|
||||
|
||||
static inline void get_abgr8_clear_color(u8& red, u8& /*green*/, u8& blue, u8& /*alpha*/)
|
||||
static inline void get_abgr8_clear_color(u8& red, u8 /*green*/, u8& blue, u8 /*alpha*/)
|
||||
{
|
||||
std::swap(red, blue);
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ namespace rsx
|
|||
return static_cast<u8>((value * 255) / base);
|
||||
}
|
||||
|
||||
static inline void get_rgb565_clear_color(u8& red, u8& green, u8& blue, u8& /*alpha*/)
|
||||
static inline void get_rgb565_clear_color(u8& red, u8& green, u8& blue, u8 /*alpha*/)
|
||||
{
|
||||
// RSX clear color is just a memcpy, so in this case the input is ARGB8 so only BG have the 16-bit input
|
||||
const u16 raw_value = static_cast<u16>(green) << 8 | blue;
|
||||
|
@ -189,7 +189,7 @@ namespace rsx
|
|||
alpha = false;
|
||||
}
|
||||
|
||||
static inline void get_b8_clear_color(u8& red, u8& /*green*/, u8& blue, u8& /*alpha*/)
|
||||
static inline void get_b8_clear_color(u8& red, u8 /*green*/, u8& blue, u8 /*alpha*/)
|
||||
{
|
||||
std::swap(red, blue);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue