mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 07:12:46 +01: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,
|
||||
Unsigned16 = 2,
|
||||
Signed16 = 3,
|
||||
Bytes32 = 4,
|
||||
Bytes64 = 5,
|
||||
Bytes128 = 6,
|
||||
Bits32 = 4,
|
||||
Bits64 = 5,
|
||||
Bits128 = 6,
|
||||
};
|
||||
|
||||
enum class IMinMaxExchange : u64 {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue