mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-19 12:40:29 +00:00
rsx: Rework gamma override mask from RGBA to ARGB to match other per-channel mask registers
This commit is contained in:
parent
a5e455d8ed
commit
b5dcfb3431
@ -9,10 +9,10 @@ namespace rsx
|
||||
// TODO: Move this somewhere else once more compilers are supported other than glsl
|
||||
enum texture_control_bits
|
||||
{
|
||||
GAMMA_R = 0,
|
||||
GAMMA_A = 0,
|
||||
GAMMA_R,
|
||||
GAMMA_G,
|
||||
GAMMA_B,
|
||||
GAMMA_A,
|
||||
ALPHAKILL,
|
||||
RENORMALIZE,
|
||||
EXPAND_A,
|
||||
|
@ -107,7 +107,9 @@ namespace rsx
|
||||
|
||||
u8 fragment_texture::gamma() const
|
||||
{
|
||||
return ((registers[NV4097_SET_TEXTURE_ADDRESS + (m_index * 8)] >> 20) & 0xf);
|
||||
// Converts gamma mask from RGBA to ARGB for compatibility with other per-channel mask registers
|
||||
const u32 rgba8_ctrl = ((registers[NV4097_SET_TEXTURE_ADDRESS + (m_index * 8)] >> 20) & 0xf);
|
||||
return ((rgba8_ctrl << 1) & 0xF) | (rgba8_ctrl >> 3);
|
||||
}
|
||||
|
||||
u8 fragment_texture::aniso_bias() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user