shader: Always pass a lod for TexelFetch

This commit is contained in:
ReinUsesLisp 2021-03-29 01:08:25 -03:00 committed by ameerj
parent 630273b629
commit cb6fc03e55
3 changed files with 17 additions and 25 deletions

View file

@ -124,6 +124,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);