mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 09:24:58 +00:00
Silence unhandled case warns (#823)
This commit is contained in:
parent
a49c7e9dcb
commit
b911c70d35
4 changed files with 17 additions and 0 deletions
|
@ -162,6 +162,8 @@ uint32_t GcnDecodeContext::getEncodingLength(InstEncoding encoding) {
|
|||
case InstEncoding::EXP:
|
||||
instLength = sizeof(uint64_t);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return instLength;
|
||||
}
|
||||
|
@ -217,6 +219,8 @@ uint32_t GcnDecodeContext::getOpMapOffset(InstEncoding encoding) {
|
|||
case InstEncoding::VOP2:
|
||||
offset = (uint32_t)OpcodeMap::OP_MAP_VOP2;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return offset;
|
||||
}
|
||||
|
@ -311,6 +315,8 @@ void GcnDecodeContext::repairOperandType() {
|
|||
case Opcode::IMAGE_GATHER4_C:
|
||||
m_instruction.src[0].type = ScalarType::Any;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -363,6 +369,8 @@ void GcnDecodeContext::decodeInstruction32(InstEncoding encoding, GcnCodeSlice&
|
|||
case InstEncoding::VINTRP:
|
||||
decodeInstructionVINTRP(hexInstruction);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -387,6 +395,8 @@ void GcnDecodeContext::decodeInstruction64(InstEncoding encoding, GcnCodeSlice&
|
|||
case InstEncoding::EXP:
|
||||
decodeInstructionEXP(hexInstruction);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -995,6 +1005,8 @@ u32 GcnDecodeContext::getMimgModifier(Opcode opcode) {
|
|||
flags.set(MimgModifier::Pcf, MimgModifier::CoarseDerivative, MimgModifier::LodClamp,
|
||||
MimgModifier::Offset);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return flags.raw();
|
||||
|
|
|
@ -3718,6 +3718,8 @@ InstFormat InstructionFormat(InstEncoding encoding, uint32_t opcode) {
|
|||
return InstructionFormatSOP2[opcode];
|
||||
case InstEncoding::VOP2:
|
||||
return InstructionFormatVOP2[opcode];
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue