[PR #2985] [MERGED] shader_recompiler: Fix incorrect float type on FPRecip64 #3129

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2985
Author: @LNDF
Created: 5/25/2025
Status: Merged
Merged: 5/25/2025
Merged by: @squidbus

Base: mainHead: fix-f64


📝 Commits (1)

📊 Changes

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

View changed files

📝 src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp (+1 -1)

📄 Description

Currently erroneously a float is emitted insteed of a double, cusing a SPIR-V validation error.

For example, in InFamous: First Light (shader 0xa71733ca):

error: line 256: Invalid word count: OpConstant starting at word 1043 says it has 4 words, but found 5 words instead.

🔄 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/2985 **Author:** [@LNDF](https://github.com/LNDF) **Created:** 5/25/2025 **Status:** ✅ Merged **Merged:** 5/25/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `fix-f64` --- ### 📝 Commits (1) - [`177424f`](https://github.com/shadps4-emu/shadPS4/commit/177424f8d6c7a4e33d07d969c5cb5304b40820a8) Fix float on f64 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp` (+1 -1) </details> ### 📄 Description Currently erroneously a float is emitted insteed of a double, cusing a SPIR-V validation error. For example, in InFamous: First Light (shader 0xa71733ca): ``` error: line 256: Invalid word count: OpConstant starting at word 1043 says it has 4 words, but found 5 words instead. ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:02:33 +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#3129
No description provided.