static analysis: less references
This commit is contained in:
@@ -256,13 +256,13 @@ public:
|
|||||||
|
|
||||||
program_buffer_patch_entry() = default;
|
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_key = key;
|
||||||
fp_value = value;
|
fp_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
program_buffer_patch_entry(u32& key, u32& value)
|
program_buffer_patch_entry(u32 key, u32 value)
|
||||||
{
|
{
|
||||||
hex_key = key;
|
hex_key = key;
|
||||||
hex_value = value;
|
hex_value = value;
|
||||||
|
|||||||
@@ -110,14 +110,14 @@ namespace rsx
|
|||||||
return result;
|
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;
|
red = blue;
|
||||||
blue = false;
|
blue = false;
|
||||||
alpha = 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;
|
red = blue;
|
||||||
}
|
}
|
||||||
@@ -132,12 +132,12 @@ namespace rsx
|
|||||||
return result;
|
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);
|
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);
|
std::swap(red, blue);
|
||||||
}
|
}
|
||||||
@@ -151,7 +151,7 @@ namespace rsx
|
|||||||
return static_cast<u8>((value * 255) / base);
|
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
|
// 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;
|
const u16 raw_value = static_cast<u16>(green) << 8 | blue;
|
||||||
@@ -189,7 +189,7 @@ namespace rsx
|
|||||||
alpha = false;
|
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);
|
std::swap(red, blue);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user