[PR #902] [MERGED] Implement S_ABSDIFF_I32 shader instruction #1821

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/902
Author: @LukeWarnut
Created: 9/13/2024
Status: Merged
Merged: 9/13/2024
Merged by: @polybiusproxy

Base: mainHead: main


📝 Commits (3)

📊 Changes

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

View changed files

📝 src/shader_recompiler/frontend/translate/scalar_alu.cpp (+10 -0)
📝 src/shader_recompiler/frontend/translate/translate.h (+1 -0)

📄 Description

Implements the S_ABSDIFF_I32 (Scalar ALU 44) shader instruction.

This fixes a crash in Atelier Lulua ~The Scion of Arland~ after the opening movie, and is likely used in other Atelier games. Atelier Lulua now hangs on the loading screen after the opening.

AMD documentation was used as reference.

screenshot


🔄 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/902 **Author:** [@LukeWarnut](https://github.com/LukeWarnut) **Created:** 9/13/2024 **Status:** ✅ Merged **Merged:** 9/13/2024 **Merged by:** [@polybiusproxy](https://github.com/polybiusproxy) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`fb47a12`](https://github.com/shadps4-emu/shadPS4/commit/fb47a12b63fa1e2a082993f86d277e8d76a4d473) Implement S_ABSDIFF_I32 - [`74e6637`](https://github.com/shadps4-emu/shadPS4/commit/74e6637714b61adf8d807b69dfffd7ef208d7be0) SCC fix - [`abb658f`](https://github.com/shadps4-emu/shadPS4/commit/abb658fa8e874fb87898442c423d5b41f50c9e7a) Reorder declarations ### 📊 Changes **2 files changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/frontend/translate/scalar_alu.cpp` (+10 -0) 📝 `src/shader_recompiler/frontend/translate/translate.h` (+1 -0) </details> ### 📄 Description Implements the S_ABSDIFF_I32 (Scalar ALU 44) shader instruction. This fixes a crash in **Atelier Lulua \~The Scion of Arland~** after the opening movie, and is likely used in other Atelier games. Atelier Lulua now hangs on the loading screen after the opening. [AMD documentation ](https://www.amd.com/content/dam/amd/en/documents/radeon-tech-docs/instruction-set-architectures/rdna2-shader-instruction-set-architecture.pdf)was used as reference. ![screenshot](https://github.com/user-attachments/assets/3c48d1bc-36e7-42b5-9d6a-91fb0aa8f09a) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:14: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#1821
No description provided.