X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpu_unai%2Fgpu_inner.h;h=197d7adebf45c3ccf87c3e59543db2f65a66d5c7;hb=788f5e89c29daab31f1099f081ca92d72e507bf1;hp=723e09f2e8de8f90143b827df902a4736d56f16f;hpb=e989dfc6d5e44b0c61c481399e40833ffce6942a;p=pcsx_rearmed.git diff --git a/plugins/gpu_unai/gpu_inner.h b/plugins/gpu_unai/gpu_inner.h index 723e09f2..197d7ade 100644 --- a/plugins/gpu_unai/gpu_inner.h +++ b/plugins/gpu_unai/gpu_inner.h @@ -48,12 +48,30 @@ //#include "gpu_inner_blend.h" //#endif -// TODO: use the arm-optimized gpu_inner_blends for arm builds #include "gpu_inner_blend.h" +#ifdef __arm__ +#include "gpu_inner_blend_arm.h" +#define gpuBlending gpuBlendingARM +#else +#define gpuBlending gpuBlendingGeneric +#endif + #include "gpu_inner_quantization.h" #include "gpu_inner_light.h" +#ifdef __arm__ +#include "gpu_inner_light_arm.h" +#define gpuLightingRGB gpuLightingRGBARM +#define gpuLightingTXT gpuLightingTXTARM +#define gpuLightingTXTGouraud gpuLightingTXTGouraudARM +#else +#define gpuLightingRGB gpuLightingRGBGeneric +#define gpuLightingTXT gpuLightingTXTGeneric +#define gpuLightingTXTGouraud gpuLightingTXTGouraudGeneric +#endif + + // If defined, Gouraud colors are fixed-point 5.11, otherwise they are 8.16 // This is only for debugging/verification of low-precision colors in C. // Low-precision Gouraud is intended for use by SIMD-optimized inner drivers