diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2023-10-29 17:54:51 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2023-11-11 23:32:14 -0800 |
| commit | 6bad17b1706940afd616cfc07f3b8c3997bbb515 (patch) | |
| tree | 16211afb2fabe62e22c29933a68cd4480a961bad /Source/Core/VideoBackends/Software/TextureEncoder.cpp | |
| parent | 9543555bfe8eb311920720a1af3638eac9ee5386 (diff) | |
Rename bpmem.copyMipMapStrideChannels to bpmem.copyDestStride
As far as I can tell, it has nothing to do with the mipmap/half_scale functionality, but does change based on the width of the destination texture (and the destination texture is half the width if half_scale is set). The comment that was there (which dates back to the initial megacommit) seems to not have accounted for the width aspect; it was first used as an actual stride in bbbe898839467c312c31456334540c20fedc7be3 (the first commit that used it at all).
Diffstat (limited to 'Source/Core/VideoBackends/Software/TextureEncoder.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/TextureEncoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/TextureEncoder.cpp b/Source/Core/VideoBackends/Software/TextureEncoder.cpp index 2624bf0e04..19880312ac 100644 --- a/Source/Core/VideoBackends/Software/TextureEncoder.cpp +++ b/Source/Core/VideoBackends/Software/TextureEncoder.cpp @@ -231,7 +231,7 @@ static void SetSpans(int sBlkSize, int tBlkSize, s32* tSpan, s32* sBlkSpan, s32* *tBlkSpan = ((640 * tBlkSize) - alignedWidth) * readStride; // bytes to advance src pointer after each row of blocks - *writeStride = bpmem.copyMipMapStrideChannels * 32; + *writeStride = bpmem.copyDestStride << 5; } #define ENCODE_LOOP_BLOCKS \ |
