From 730f9b55b35e3b1871285760cca35219ebb871d0 Mon Sep 17 00:00:00 2001 From: namkazy Date: Sun, 5 Apr 2020 16:02:07 +0700 Subject: silent warning (conversion error) --- src/video_core/shader/decode/image.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 descriptor; if (instr.suldst.is_immediate) { - descriptor = registry.ObtainBoundSampler(instr.image.index.Value()); + descriptor = + registry.ObtainBoundSampler(static_cast(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: { -- cgit v1.2.3