Math3D: Allow construction from NEON vectors.
This makes it match SSE and easier to keep things generic. Will impact alignment of non-packed Vec2/Vec3.
This commit is contained in:
parent
96a7554053
commit
2d8fdd8cf4
2 changed files with 27 additions and 6 deletions
|
@ -379,13 +379,7 @@ static inline u32 ApplyLogicOp(GELogicOp op, u32 old_color, u32 new_color) {
|
|||
|
||||
template <bool clearMode, GEBufferFormat fbFormat>
|
||||
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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue