From 6bad17b1706940afd616cfc07f3b8c3997bbb515 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 29 Oct 2023 17:54:51 -0700 Subject: 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). --- Source/Core/VideoBackends/Software/TextureEncoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/Software/TextureEncoder.cpp') 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 \ -- cgit v1.2.3