[PR #2185] [MERGED] tile: Account for thickness in micro tiled size calculation. #2545

Closed
opened 2026-02-27 22:00:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2185
Author: @squidbus
Created: 1/19/2025
Status: Merged
Merged: 1/19/2025
Merged by: @psucien

Base: mainHead: tile-thick


📝 Commits (1)

  • 7ffdd9a tile: Account for thickness in micro tiled size calculation.

📊 Changes

2 files changed (+11 additions, -9 deletions)

View changed files

📝 src/video_core/texture_cache/image_info.cpp (+6 -4)
📝 src/video_core/texture_cache/tile.h (+5 -5)

📄 Description

When calculating micro-tiled mip sizes, account for tile thickness when aligning tile size.

Fixes some instances of incorrect pitch in 3D textures in Hedgehog Engine 2.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2185 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 1/19/2025 **Status:** ✅ Merged **Merged:** 1/19/2025 **Merged by:** [@psucien](https://github.com/psucien) **Base:** `main` ← **Head:** `tile-thick` --- ### 📝 Commits (1) - [`7ffdd9a`](https://github.com/shadps4-emu/shadPS4/commit/7ffdd9aa25c87b86bcbc2fbf1ed702fe86a2eb45) tile: Account for thickness in micro tiled size calculation. ### 📊 Changes **2 files changed** (+11 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/video_core/texture_cache/image_info.cpp` (+6 -4) 📝 `src/video_core/texture_cache/tile.h` (+5 -5) </details> ### 📄 Description When calculating micro-tiled mip sizes, account for tile thickness when aligning tile size. Fixes some instances of incorrect pitch in 3D textures in Hedgehog Engine 2. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:00:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2545
No description provided.