[PR #3162] [CLOSED] video_core: Calculate anisotrophic ratio #3274

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3162
Author: @StevenMiller123
Created: 6/27/2025
Status: Closed

Base: mainHead: calc-aniso


📝 Commits (1)

  • 576be34 Calculate anisotrophic ratio

📊 Changes

2 files changed (+3 additions, -24 deletions)

View changed files

📝 src/video_core/amdgpu/resource.h (+2 -23)
📝 src/video_core/renderer_vulkan/vk_rasterizer.cpp (+1 -1)

📄 Description

Some games use higher max_aniso values than what our enum provides, this PR swaps the enum for a simple formula to calculate the appropriate anisotrophic filtering ratio.

This fixes cases of [Debug] <Critical> resource.h:519 MaxAniso: Unreachable code!, and improves NEO : The World Ends with You (CUSA26376).


🔄 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/3162 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 6/27/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `calc-aniso` --- ### 📝 Commits (1) - [`576be34`](https://github.com/shadps4-emu/shadPS4/commit/576be3448f47f430a4f3e752cd6ec99f3f201222) Calculate anisotrophic ratio ### 📊 Changes **2 files changed** (+3 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `src/video_core/amdgpu/resource.h` (+2 -23) 📝 `src/video_core/renderer_vulkan/vk_rasterizer.cpp` (+1 -1) </details> ### 📄 Description Some games use higher max_aniso values than what our enum provides, this PR swaps the enum for a simple formula to calculate the appropriate anisotrophic filtering ratio. This fixes cases of `[Debug] <Critical> resource.h:519 MaxAniso: Unreachable code!`, and improves NEO : The World Ends with You (CUSA26376). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:03:05 +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#3274
No description provided.