diff options
author | Justin Weiss | 2020-02-27 23:42:43 -0800 |
---|---|---|
committer | Justin Weiss | 2020-02-27 23:42:43 -0800 |
commit | 788f5e89c29daab31f1099f081ca92d72e507bf1 (patch) | |
tree | 6316593c464c53439b4162b743dc00ae045d8bd5 /plugins/gpu_unai/gpu_inner_light.h | |
parent | fa5e72593d53107d966daea66898c25dce553dc8 (diff) | |
download | pcsx_rearmed-788f5e89c29daab31f1099f081ca92d72e507bf1.tar.gz pcsx_rearmed-788f5e89c29daab31f1099f081ca92d72e507bf1.tar.bz2 pcsx_rearmed-788f5e89c29daab31f1099f081ca92d72e507bf1.zip |
WIP: Add ARM-assembly versions of lighting and blending
Diffstat (limited to 'plugins/gpu_unai/gpu_inner_light.h')
-rw-r--r-- | plugins/gpu_unai/gpu_inner_light.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gpu_unai/gpu_inner_light.h b/plugins/gpu_unai/gpu_inner_light.h index b041dc3..71d85b1 100644 --- a/plugins/gpu_unai/gpu_inner_light.h +++ b/plugins/gpu_unai/gpu_inner_light.h @@ -127,7 +127,7 @@ GPU_INLINE u32 gpuPackGouraudColInc(s32 dr, s32 dg, s32 db) // ^ bit 16 // Where 'r,g,b' are integer bits of colors, 'X' fixed-pt, and '0' zero //////////////////////////////////////////////////////////////////////////////// -GPU_INLINE u16 gpuLightingRGB(u32 gCol) +GPU_INLINE u16 gpuLightingRGBGeneric(u32 gCol) { return ((gCol<< 5)&0x7C00) | ((gCol>>11)&0x03E0) | @@ -168,7 +168,7 @@ GPU_INLINE u32 gpuLightingRGB24(u32 gCol) // u16 output: 0bbbbbgggggrrrrr // Where 'X' are fixed-pt bits, '0' is zero-padding, and '-' is don't care //////////////////////////////////////////////////////////////////////////////// -GPU_INLINE u16 gpuLightingTXT(u16 uSrc, u8 r5, u8 g5, u8 b5) +GPU_INLINE u16 gpuLightingTXTGeneric(u16 uSrc, u8 r5, u8 g5, u8 b5) { return (gpu_unai.LightLUT[((uSrc&0x7C00)>>5) | b5] << 10) | (gpu_unai.LightLUT[ (uSrc&0x03E0) | g5] << 5) | @@ -190,7 +190,7 @@ GPU_INLINE u16 gpuLightingTXT(u16 uSrc, u8 r5, u8 g5, u8 b5) // u16 output: 0bbbbbgggggrrrrr // Where 'X' are fixed-pt bits, '0' is zero-padding, and '-' is don't care //////////////////////////////////////////////////////////////////////////////// -GPU_INLINE u16 gpuLightingTXTGouraud(u16 uSrc, u32 gCol) +GPU_INLINE u16 gpuLightingTXTGouraudGeneric(u16 uSrc, u32 gCol) { return (gpu_unai.LightLUT[((uSrc&0x7C00)>>5) | ((gCol>> 5)&0x1F)]<<10) | (gpu_unai.LightLUT[ (uSrc&0x03E0) | ((gCol>>16)&0x1F)]<< 5) | |