ソースを参照

emit_glasm: Fix lmem size computation

ameerj 3 年 前
コミット
b198339580
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/shader_recompiler/backend/glasm/emit_glasm.cpp

+ 1 - 1
src/shader_recompiler/backend/glasm/emit_glasm.cpp

@@ -461,7 +461,7 @@ std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info, I
         header += fmt::format("R{},", index);
     }
     if (program.local_memory_size > 0) {
-        header += fmt::format("lmem[{}],", program.local_memory_size);
+        header += fmt::format("lmem[{}],", Common::DivCeil(program.local_memory_size, 4U));
     }
     if (program.info.uses_fswzadd) {
         header += "FSWZA[4],FSWZB[4],";