Skip to content

UE5.4-5.5 Posible Fix#97

Merged
getnamo merged 1 commit intogetnamo:masterfrom
miketgv:master
Nov 23, 2024
Merged

UE5.4-5.5 Posible Fix#97
getnamo merged 1 commit intogetnamo:masterfrom
miketgv:master

Conversation

@miketgv
Copy link
Copy Markdown

@miketgv miketgv commented Nov 21, 2024

I've removed
+ RegionData->Regions[RegionIndex].SrcY * RegionData->SrcPitch
+ RegionData->Regions[RegionIndex].SrcX * RegionData->SrcBpp
because when debugging the RHIUpdateTexture2D in FD3D11DynamicRHI it seemed that when
for (uint32 BlockRow = 0; BlockRow < HeightInBlocks; BlockRow++)
{
FMemory::Memcpy(CopyDst, CopySrc, WidthInBlocks * FormatInfo.BlockBytes);
CopySrc += SourcePitch;
CopyDst += StagingPitch;
}

was running the last loop it's throwing AccessViolation error, so it seemed like the "array index" was shifted by one, so in removing that the code in the PR I think the for loop starts from index 0 or whatever is the equivalent in that case

probably the issue is generated by this commit in Epic repo

@getnamo
Copy link
Copy Markdown
Owner

getnamo commented Nov 23, 2024

Looking into this fix, will give a review shortly

@getnamo
Copy link
Copy Markdown
Owner

getnamo commented Nov 23, 2024

This appears to work on all the webpages I consider heavy hitters, well done. Merging, thanks for contributing the fix :).

@getnamo getnamo merged commit 3eea412 into getnamo:master Nov 23, 2024
getnamo added a commit that referenced this pull request Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants