yuzu-emu
/
yuzu
Archived
1
0
Fork 0

shader_bytecode: Rename BytesN enums to BitsN

This commit is contained in:
ReinUsesLisp 2019-02-02 23:44:38 -03:00
parent 0be835132c
commit 9feb68085d
2 changed files with 7 additions and 7 deletions

View File

@ -217,9 +217,9 @@ enum class StoreType : u64 {
Signed8 = 1,
Unsigned16 = 2,
Signed16 = 3,
Bytes32 = 4,
Bytes64 = 5,
Bytes128 = 6,
Bits32 = 4,
Bits64 = 5,
Bits128 = 6,
};
enum class IMinMaxExchange : u64 {

View File

@ -115,10 +115,10 @@ u32 ShaderIR::DecodeMemory(BasicBlock& bb, const BasicBlock& code, u32 pc) {
};
switch (instr.ldst_sl.type.Value()) {
case Tegra::Shader::StoreType::Bytes32:
case Tegra::Shader::StoreType::Bits32:
SetRegister(bb, instr.gpr0, GetLmem(0));
break;
case Tegra::Shader::StoreType::Bytes64: {
case Tegra::Shader::StoreType::Bits64: {
SetTemporal(bb, 0, GetLmem(0));
SetTemporal(bb, 1, GetLmem(4));
SetRegister(bb, instr.gpr0, GetTemporal(0));
@ -127,7 +127,7 @@ u32 ShaderIR::DecodeMemory(BasicBlock& bb, const BasicBlock& code, u32 pc) {
}
default:
UNIMPLEMENTED_MSG("LD_L Unhandled type: {}",
static_cast<unsigned>(instr.ldst_sl.type.Value()));
static_cast<u32>(instr.ldst_sl.type.Value()));
}
break;
}
@ -217,7 +217,7 @@ u32 ShaderIR::DecodeMemory(BasicBlock& bb, const BasicBlock& code, u32 pc) {
Immediate(static_cast<s32>(instr.smem_imm)));
switch (instr.ldst_sl.type.Value()) {
case Tegra::Shader::StoreType::Bytes32:
case Tegra::Shader::StoreType::Bits32:
SetLocalMemory(bb, index, GetRegister(instr.gpr0));
break;
default: