mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
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 bbbe898839
(the first commit that used it at all).
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user