Skip to content

Commit

Permalink
Merge pull request #18595 from fp64/fix-texture-upscale-bug
Browse files Browse the repository at this point in the history
Fix texture upscaler bug
  • Loading branch information
hrydgard committed Dec 21, 2023
2 parents 9a276c6 + d35c10b commit 5fccf64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GPU/Common/TextureScalerCommon.cpp
Expand Up @@ -236,7 +236,7 @@ static void load_sample(ptrdiff_t w, ptrdiff_t h, ptrdiff_t s, const u8 *pixels,
break;
case 2: // Zero
memset(output, 0, 4);
break;
return;
}
}
memcpy(output, pixels + s*y + 4*x, 4);
Expand Down Expand Up @@ -395,7 +395,7 @@ static void upscale_block_sse2(
_mm_add_ps(_mm_mul_ps(_mm_loadu_ps(S(0)), C0),
_mm_add_ps(_mm_mul_ps(_mm_loadu_ps(S(1)), C1),
_mm_add_ps(_mm_mul_ps(_mm_loadu_ps(S(2)), C2),
_mm_mul_ps(_mm_loadu_ps(S(3)), C3)))));
_mm_mul_ps(_mm_loadu_ps(S(3)), C3)))));
#undef S
}
// Vertical pass.
Expand All @@ -410,7 +410,7 @@ static void upscale_block_sse2(
_mm_add_ps(_mm_mul_ps(_mm_loadu_ps(S(0)), C0),
_mm_add_ps(_mm_mul_ps(_mm_loadu_ps(S(1)), C1),
_mm_add_ps(_mm_mul_ps(_mm_loadu_ps(S(2)), C2),
_mm_mul_ps(_mm_loadu_ps(S(3)), C3)))));
_mm_mul_ps(_mm_loadu_ps(S(3)), C3)))));
#undef S
}
// Pack destination pixels.
Expand Down

0 comments on commit 5fccf64

Please sign in to comment.