소스 검색

shader: Fix TXQ

FernandoS27 5 년 전
부모
커밋
cdf0cc3869
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/shader_recompiler/frontend/maxwell/translate/impl/texture_query.cpp

+ 1 - 1
src/shader_recompiler/frontend/maxwell/translate/impl/texture_query.cpp

@@ -66,7 +66,7 @@ void TranslatorVisitor::TXQ(u64 insn) {
         BitField<36, 13, u64> cbuf_offset;
     } const txq{insn};
 
-    Impl(*this, insn, static_cast<u32>(txq.cbuf_offset));
+    Impl(*this, insn, static_cast<u32>(txq.cbuf_offset * 4));
 }
 
 void TranslatorVisitor::TXQ_b(u64 insn) {