sofjit: Move common types to reg cache header.

This makes it easier to use vectors elsewhere.
This commit is contained in:
Unknown W. Brackets committed 2021-11-28 08:03:15 -08:00
1 parent 3d5bced296
commit 96a7554053
6 files changed
+60 -65

No files matched your search

+7 -1
View File
@@ -378,8 +378,14 @@ static inline u32 ApplyLogicOp(GELogicOp op, u32 old_color, u32 new_color) {
}
template <bool clearMode, GEBufferFormat fbFormat>
void SOFTPIXEL_CALL DrawSinglePixel(int x, int y, int z, int fog, SOFTPIXEL_VEC4I color_in, const PixelFuncID &pixelID) {
void SOFTRAST_CALL DrawSinglePixel(int x, int y, int z, int fog, Vec4IntArg color_in, const PixelFuncID &pixelID) {
#if PPSSPP_ARCH(ARM64)
Vec4<int> prim_color;
vst1q_s32(prim_color.AsArray(), color_in);
prim_color = prim_color.Clamp(0, 255);
#else
Vec4<int> prim_color = Vec4<int>(color_in).Clamp(0, 255);
#endif
// Depth range test - applied in clear mode, if not through mode.
if (pixelID.applyDepthRange)
if (z < gstate.getDepthRangeMin() || z > gstate.getDepthRangeMax())