early-access version 3325

This commit is contained in:
pineappleEA
2023-01-24 00:01:56 +01:00
parent 13810b8a83
commit c99dcbc427
5 changed files with 10 additions and 8 deletions

View File

@@ -121,6 +121,8 @@ void Impl(TranslatorVisitor& v, u64 insn, bool is_bindless) {
}
if (tld.lod != 0) {
lod = v.X(meta_reg++);
} else {
lod = v.ir.Imm32(0U);
}
if (tld.aoffi != 0) {
offset = MakeOffset(v, meta_reg, tld.type);

View File

@@ -73,7 +73,7 @@ IR::Value Sample(TranslatorVisitor& v, u64 insn) {
const IR::Reg reg_a{tlds.src_reg_a};
const IR::Reg reg_b{tlds.src_reg_b};
IR::Value coords;
IR::U32 lod;
IR::U32 lod{v.ir.Imm32(0U)};
IR::Value offsets;
IR::U32 multisample;
Shader::TextureType texture_type{};