summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authornamkazy <nam.kazt.91@gmail.com>2020-04-05 11:02:07 +0200
committernamkazy <nam.kazt.91@gmail.com>2020-04-05 11:02:07 +0200
commit730f9b55b35e3b1871285760cca35219ebb871d0 (patch)
tree0e85cedf3f245e9aa5d29ebb4a50d8865f8ff405 /src/video_core
parentshader_decode: SULD.D -> SINT actually same as UNORM. (diff)
downloadyuzu-730f9b55b35e3b1871285760cca35219ebb871d0.tar
yuzu-730f9b55b35e3b1871285760cca35219ebb871d0.tar.gz
yuzu-730f9b55b35e3b1871285760cca35219ebb871d0.tar.bz2
yuzu-730f9b55b35e3b1871285760cca35219ebb871d0.tar.lz
yuzu-730f9b55b35e3b1871285760cca35219ebb871d0.tar.xz
yuzu-730f9b55b35e3b1871285760cca35219ebb871d0.tar.zst
yuzu-730f9b55b35e3b1871285760cca35219ebb871d0.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/shader/decode/image.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/image.cpp b/src/video_core/shader/decode/image.cpp
index 999cfda78..8d4530386 100644
--- a/src/video_core/shader/decode/image.cpp
+++ b/src/video_core/shader/decode/image.cpp
@@ -314,7 +314,8 @@ u32 ShaderIR::DecodeImage(NodeBlock& bb, u32 pc) {
auto descriptor = [this, instr] {
std::optional<Tegra::Engines::SamplerDescriptor> descriptor;
if (instr.suldst.is_immediate) {
- descriptor = registry.ObtainBoundSampler(instr.image.index.Value());
+ descriptor =
+ registry.ObtainBoundSampler(static_cast<u32>(instr.image.index.Value()));
} else {
const Node image_register = GetRegister(instr.gpr39);
const auto [base_image, buffer, offset] = TrackCbuf(
@@ -328,8 +329,6 @@ u32 ShaderIR::DecodeImage(NodeBlock& bb, u32 pc) {
}();
const auto comp_mask = GetImageComponentMask(descriptor.format);
- // TODO(namkazt): let's suppose image format is same as store type. we check on it
- // later.
switch (instr.suldst.GetStoreDataLayout()) {
case StoreType::Bits32: {