mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
shader_bytecode: Rename BytesN enums to BitsN
This commit is contained in:
parent
0be835132c
commit
9feb68085d
2 changed files with 7 additions and 7 deletions
|
@ -217,9 +217,9 @@ enum class StoreType : u64 {
|
||||||
Signed8 = 1,
|
Signed8 = 1,
|
||||||
Unsigned16 = 2,
|
Unsigned16 = 2,
|
||||||
Signed16 = 3,
|
Signed16 = 3,
|
||||||
Bytes32 = 4,
|
Bits32 = 4,
|
||||||
Bytes64 = 5,
|
Bits64 = 5,
|
||||||
Bytes128 = 6,
|
Bits128 = 6,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class IMinMaxExchange : u64 {
|
enum class IMinMaxExchange : u64 {
|
||||||
|
|
|
@ -115,10 +115,10 @@ u32 ShaderIR::DecodeMemory(BasicBlock& bb, const BasicBlock& code, u32 pc) {
|
||||||
};
|
};
|
||||||
|
|
||||||
switch (instr.ldst_sl.type.Value()) {
|
switch (instr.ldst_sl.type.Value()) {
|
||||||
case Tegra::Shader::StoreType::Bytes32:
|
case Tegra::Shader::StoreType::Bits32:
|
||||||
SetRegister(bb, instr.gpr0, GetLmem(0));
|
SetRegister(bb, instr.gpr0, GetLmem(0));
|
||||||
break;
|
break;
|
||||||
case Tegra::Shader::StoreType::Bytes64: {
|
case Tegra::Shader::StoreType::Bits64: {
|
||||||
SetTemporal(bb, 0, GetLmem(0));
|
SetTemporal(bb, 0, GetLmem(0));
|
||||||
SetTemporal(bb, 1, GetLmem(4));
|
SetTemporal(bb, 1, GetLmem(4));
|
||||||
SetRegister(bb, instr.gpr0, GetTemporal(0));
|
SetRegister(bb, instr.gpr0, GetTemporal(0));
|
||||||
|
@ -127,7 +127,7 @@ u32 ShaderIR::DecodeMemory(BasicBlock& bb, const BasicBlock& code, u32 pc) {
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
UNIMPLEMENTED_MSG("LD_L Unhandled type: {}",
|
UNIMPLEMENTED_MSG("LD_L Unhandled type: {}",
|
||||||
static_cast<unsigned>(instr.ldst_sl.type.Value()));
|
static_cast<u32>(instr.ldst_sl.type.Value()));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -217,7 +217,7 @@ u32 ShaderIR::DecodeMemory(BasicBlock& bb, const BasicBlock& code, u32 pc) {
|
||||||
Immediate(static_cast<s32>(instr.smem_imm)));
|
Immediate(static_cast<s32>(instr.smem_imm)));
|
||||||
|
|
||||||
switch (instr.ldst_sl.type.Value()) {
|
switch (instr.ldst_sl.type.Value()) {
|
||||||
case Tegra::Shader::StoreType::Bytes32:
|
case Tegra::Shader::StoreType::Bits32:
|
||||||
SetLocalMemory(bb, index, GetRegister(instr.gpr0));
|
SetLocalMemory(bb, index, GetRegister(instr.gpr0));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue