[PR #1339] [MERGED] resource_tracking_pass: Make sure immediate offset is accessed as correct type. #2059

Closed
opened 2026-02-27 21:15:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1339
Author: @squidbus
Created: 10/10/2024
Status: Merged
Merged: 10/10/2024
Merged by: @raphaelthegreat

Base: mainHead: offset-type-2


📝 Commits (1)

  • e368229 resource_tracking_pass: Make sure immediate offset is accessed as correct type.

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 src/shader_recompiler/ir/passes/resource_tracking_pass.cpp (+3 -1)

📄 Description

Offset immediate may be an F32 type, in which case it needs to be accessed with F32() and bit cast to u32.


🔄 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/1339 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 10/10/2024 **Status:** ✅ Merged **Merged:** 10/10/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `offset-type-2` --- ### 📝 Commits (1) - [`e368229`](https://github.com/shadps4-emu/shadPS4/commit/e368229a0bb8195ca84aed3914d3a1e860d202aa) resource_tracking_pass: Make sure immediate offset is accessed as correct type. ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/ir/passes/resource_tracking_pass.cpp` (+3 -1) </details> ### 📄 Description Offset immediate may be an F32 type, in which case it needs to be accessed with `F32()` and bit cast to `u32`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:15:01 +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#2059
No description provided.