Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tile: Fix some tile thickness calculation errors. #2203

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

squidbus
Copy link
Collaborator

Fix some mistakes from updates to tile calculations related to volume thickness:

  • Typo in arg order to ImageSizeMicroTiled in UpdateSize.
  • ImageSizeMicroTiled should not return size multiplied with thickness, only use it for pitch alignment padding condition. Returned value will be multiplied with full texture depth after.

@squidbus
Copy link
Collaborator Author

One more fix: the mip height should not be padded to tile height as this is handled with appropriate mip size value calculation. Height should still just be the actual mip image height. This fixes some of the remaining issues I was seeing with a 3D image where one of the slices would be garbage.

@psucien psucien merged commit 2a4798c into shadps4-emu:main Jan 22, 2025
12 checks passed
@squidbus squidbus deleted the tile-fix-2 branch January 27, 2025 12:54
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