diff options
| author | bunnei <bunneidev@gmail.com> | 2022-11-03 22:21:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-03 22:21:58 -0700 |
| commit | 7c3bee5601fd87bda663f85d0ea74e6e408ff1ca (patch) | |
| tree | b9af6ed0a26285f4b0dcd5c21028601004267607 /src/shader_recompiler/backend/glasm/emit_glasm.cpp | |
| parent | 900d89f2b9e278edf88acb236f398cc5d3c3d65a (diff) | |
| parent | 328ad69854496822f6058407485a0da7be6f3631 (diff) | |
Merge pull request #8858 from vonchenplus/mipmap
video_core: Generate mipmap texture by drawing
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp index 01f9abc718..3b0176bf68 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp @@ -450,6 +450,9 @@ std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info, I if (program.info.uses_rescaling_uniform) { header += "PARAM scaling[1]={program.local[0..0]};"; } + if (program.info.uses_render_area) { + header += "PARAM render_area[1]={program.local[1..1]};"; + } header += "TEMP "; for (size_t index = 0; index < ctx.reg_alloc.NumUsedRegisters(); ++index) { header += fmt::format("R{},", index); |
