diff options
| author | 2020-03-22 20:39:16 +0700 | |
|---|---|---|
| committer | 2020-04-05 10:31:31 +0700 | |
| commit | 3e3afa9be646f218a417097d1bd139f2008a90e7 (patch) | |
| tree | d6c5e27676da5e5266bb57ac631d93ccb5c2b652 /src | |
| parent | cleanup debug code. (diff) | |
| download | yuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.tar.gz yuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.tar.xz yuzu-3e3afa9be646f218a417097d1bd139f2008a90e7.zip | |
cleanup unuse params
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/decode/image.cpp | 14 |
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) { | |||
| 338 | switch (component_type) { | 338 | switch (component_type) { |
| 339 | case ComponentType::SNORM: { | 339 | case ComponentType::SNORM: { |
| 340 | // range [-1.0, 1.0] | 340 | // range [-1.0, 1.0] |
| 341 | auto cnv_value = Operation(OperationCode::FMul, NO_PRECISE, | 341 | auto cnv_value = |
| 342 | original_value, Immediate(128.f)); | 342 | Operation(OperationCode::FMul, original_value, Immediate(128.f)); |
| 343 | return SignedOperation(OperationCode::ICastFloat, is_signed, NO_PRECISE, | 343 | return SignedOperation(OperationCode::ICastFloat, is_signed, |
| 344 | std::move(cnv_value)); | 344 | std::move(cnv_value)); |
| 345 | } | 345 | } |
| 346 | case ComponentType::UNORM: { | 346 | case ComponentType::UNORM: { |
| 347 | // range [0.0, 1.0] | 347 | // range [0.0, 1.0] |
| 348 | auto cnv_value = Operation(OperationCode::FMul, NO_PRECISE, | 348 | auto cnv_value = |
| 349 | original_value, Immediate(255.f)); | 349 | Operation(OperationCode::FMul, original_value, Immediate(255.f)); |
| 350 | is_signed = false; | 350 | is_signed = false; |
| 351 | return SignedOperation(OperationCode::ICastFloat, is_signed, NO_PRECISE, | 351 | return SignedOperation(OperationCode::ICastFloat, is_signed, |
| 352 | std::move(cnv_value)); | 352 | std::move(cnv_value)); |
| 353 | } | 353 | } |
| 354 | case ComponentType::SINT: // range [-128,128] | 354 | case ComponentType::SINT: // range [-128,128] |
| @@ -374,10 +374,8 @@ u32 ShaderIR::DecodeImage(NodeBlock& bb, u32 pc) { | |||
| 374 | 374 | ||
| 375 | // add value into result | 375 | // add value into result |
| 376 | value = Operation(OperationCode::UBitwiseOr, value, std::move(converted_value)); | 376 | value = Operation(OperationCode::UBitwiseOr, value, std::move(converted_value)); |
| 377 | break; | ||
| 378 | } | 377 | } |
| 379 | SetRegister(bb, instr.gpr0.Value(), std::move(value)); | 378 | SetRegister(bb, instr.gpr0.Value(), std::move(value)); |
| 380 | |||
| 381 | break; | 379 | break; |
| 382 | } | 380 | } |
| 383 | default: | 381 | default: |