mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
sofjit: Move common types to reg cache header.
This makes it easier to use vectors elsewhere.
This commit is contained in:
1 parent
3d5bced296
commit
96a7554053
6 files changed
+60
-65
No files matched your search
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user