mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Only use the optimized decoders if SSE or NEON is available.
This commit is contained in:
parent
6452ce8ac5
commit
fb599cd0a6
1 changed files with 3 additions and 0 deletions
|
@ -1283,6 +1283,8 @@ void VertexDecoder::SetVertexType(u32 fmt, const VertexDecoderOptions &options,
|
|||
|
||||
_assert_msg_(decFmt.uvfmt == DEC_FLOAT_2 || decFmt.uvfmt == DEC_NONE, "Reader only supports float UV");
|
||||
|
||||
// Only use the handwritten decoders if we have SSE or NEON. Don't want to use these on RISC-V, probably?
|
||||
#if PPSSPP_ARCH(ARM_NEON) || PPSSPP_ARCH(SSE2)
|
||||
// See GetVertTypeID
|
||||
uint32_t fmtWithoutSkinFlag = (fmt_ & ~0x04000000);
|
||||
if (fmtWithoutSkinFlag == (GE_VTYPE_TC_8BIT | GE_VTYPE_COL_5551 | GE_VTYPE_POS_16BIT)) {
|
||||
|
@ -1295,6 +1297,7 @@ void VertexDecoder::SetVertexType(u32 fmt, const VertexDecoderOptions &options,
|
|||
jitted_ = &VtxDec_Tu16_C8888_Pfloat;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Attempt to JIT as well. But only do that if the main CPU JIT is enabled, in order to aid
|
||||
// debugging attempts - if the main JIT doesn't work, this one won't do any better, probably.
|
||||
|
|
Loading…
Add table
Reference in a new issue