summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2023-10-29 17:54:51 -0700
committerPokechu22 <Pokechu022@gmail.com>2023-11-11 23:32:14 -0800
commit6bad17b1706940afd616cfc07f3b8c3997bbb515 (patch)
tree16211afb2fabe62e22c29933a68cd4480a961bad /Source/Core/VideoCommon/BPStructs.cpp
parent9543555bfe8eb311920720a1af3638eac9ee5386 (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/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index 0beb464eae..091c09ee13 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -246,7 +246,7 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager,
// this function
u32 destAddr = bpmem.copyTexDest << 5;
- u32 destStride = bpmem.copyMipMapStrideChannels << 5;
+ u32 destStride = bpmem.copyDestStride << 5;
MathUtil::Rectangle<s32> srcRect;
srcRect.left = bpmem.copyTexSrcXY.x;
@@ -515,8 +515,8 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager,
pixel_shader_manager.SetZModeControl();
return;
- case BPMEM_MIPMAP_STRIDE: // MipMap Stride Channel
- case BPMEM_COPYYSCALE: // Display Copy Y Scale
+ case BPMEM_EFB_STRIDE: // Display Copy Stride
+ case BPMEM_COPYYSCALE: // Display Copy Y Scale
/* 24 RID
* 21 BC3 - Ind. Tex Stage 3 NTexCoord
@@ -982,8 +982,8 @@ std::pair<std::string, std::string> GetBPRegInfo(u8 cmd, u32 cmddata)
RegName(BPMEM_EFB_ADDR),
fmt::format("EFB Target address (32 byte aligned): 0x{:06X}", cmddata << 5));
- case BPMEM_MIPMAP_STRIDE: // 0x4D
- return DescriptionlessReg(BPMEM_MIPMAP_STRIDE);
+ case BPMEM_EFB_STRIDE: // 0x4D
+ return DescriptionlessReg(BPMEM_EFB_STRIDE);
// TODO: Description
case BPMEM_COPYYSCALE: // 0x4E