summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornamkazy <nam.kazt.91@gmail.com>2020-03-22 14:39:16 +0100
committernamkazy <nam.kazt.91@gmail.com>2020-04-05 05:31:31 +0200
commit3e3afa9be646f218a417097d1bd139f2008a90e7 (patch)
treed6c5e27676da5e5266bb57ac631d93ccb5c2b652 /src
parentcleanup debug code. (diff)
downloadyuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.tar
yuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.tar.gz
yuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.tar.bz2
yuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.tar.lz
yuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.tar.xz
yuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.tar.zst
yuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode/image.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/video_core/shader/decode/image.cpp b/src/video_core/shader/decode/image.cpp
index e6cc831fc..cc5d2424c 100644
--- a/src/video_core/shader/decode/image.cpp
+++ b/src/video_core/shader/decode/image.cpp
@@ -338,17 +338,17 @@ u32 ShaderIR::DecodeImage(NodeBlock& bb, u32 pc) {
switch (component_type) {
case ComponentType::SNORM: {
// range [-1.0, 1.0]
- auto cnv_value = Operation(OperationCode::FMul, NO_PRECISE,
- original_value, Immediate(128.f));
- return SignedOperation(OperationCode::ICastFloat, is_signed, NO_PRECISE,
+ auto cnv_value =
+ Operation(OperationCode::FMul, original_value, Immediate(128.f));
+ return SignedOperation(OperationCode::ICastFloat, is_signed,
std::move(cnv_value));
}
case ComponentType::UNORM: {
// range [0.0, 1.0]
- auto cnv_value = Operation(OperationCode::FMul, NO_PRECISE,
- original_value, Immediate(255.f));
+ auto cnv_value =
+ Operation(OperationCode::FMul, original_value, Immediate(255.f));
is_signed = false;
- return SignedOperation(OperationCode::ICastFloat, is_signed, NO_PRECISE,
+ return SignedOperation(OperationCode::ICastFloat, is_signed,
std::move(cnv_value));
}
case ComponentType::SINT: // range [-128,128]
@@ -374,10 +374,8 @@ u32 ShaderIR::DecodeImage(NodeBlock& bb, u32 pc) {
// add value into result
value = Operation(OperationCode::UBitwiseOr, value, std::move(converted_value));
- break;
}
SetRegister(bb, instr.gpr0.Value(), std::move(value));
-
break;
}
default: