summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-27 17:49:29 -0300
committerGravatar ameerj2021-07-22 21:51:33 -0400
commit83db7abae6550f89ba907789efdf818d93be1b5d (patch)
treecfcd80a451cd53a540d08fee11989b58c37caf73 /src/shader_recompiler/backend
parentglasm: Prepare XFB from state instead of global registers (diff)
downloadyuzu-83db7abae6550f89ba907789efdf818d93be1b5d.tar.gz
yuzu-83db7abae6550f89ba907789efdf818d93be1b5d.tar.xz
yuzu-83db7abae6550f89ba907789efdf818d93be1b5d.zip
glasm: Use integer lod for TXQ
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_image.cpp2
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_instructions.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
index 34725b8c6..1c8c70661 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_image.cpp
@@ -529,7 +529,7 @@ void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
529} 529}
530 530
531void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, 531void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
532 ScalarF32 lod) { 532 ScalarS32 lod) {
533 const auto info{inst.Flags<IR::TextureInstInfo>()}; 533 const auto info{inst.Flags<IR::TextureInstInfo>()};
534 const std::string texture{Texture(ctx, info, index)}; 534 const std::string texture{Texture(ctx, info, index)};
535 const std::string_view type{TextureType(info)}; 535 const std::string_view type{TextureType(info)};
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
index 7b0f75405..c9f4826ce 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
+++ b/src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
@@ -546,7 +546,7 @@ void EmitImageGatherDref(EmitContext& ctx, IR::Inst& inst, const IR::Value& inde
546void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, 546void EmitImageFetch(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
547 const IR::Value& coord, const IR::Value& offset, ScalarS32 lod, ScalarS32 ms); 547 const IR::Value& coord, const IR::Value& offset, ScalarS32 lod, ScalarS32 ms);
548void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, 548void EmitImageQueryDimensions(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
549 ScalarF32 lod); 549 ScalarS32 lod);
550void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Register coord); 550void EmitImageQueryLod(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, Register coord);
551void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index, 551void EmitImageGradient(EmitContext& ctx, IR::Inst& inst, const IR::Value& index,
552 const IR::Value& coord, const IR::Value& derivatives, 552 const IR::Value& coord, const IR::Value& derivatives,