[PR #2] [CLOSED] FP: add PK2/4/16/B and UP2/4/16/B #2

Closed
opened 2026-02-15 15:54:08 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RPCS3/rsx_program_decompiler/pull/2
Author: @dbz400
Created: 6/28/2016
Status: Closed

Base: masterHead: pack-unpack


📝 Commits (1)

  • 4b510e7 FP: add PK2/4/16/B and UP2/4/16/B

📊 Changes

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

View changed files

📝 rsx_decompiler/rsx_fp_decompiler.cpp (+8 -8)

📄 Description

Not too sure if it is right . I try to match those in the old decompiler

case RSX_FP_OPCODE_PK2: SetDst("float(packSnorm2x16($0.xy))"); return true;
case RSX_FP_OPCODE_PK4: SetDst("float(packSnorm4x8($0))"); return true;
case RSX_FP_OPCODE_PK16: SetDst("float(packHalf2x16($0.xy))"); return true;
case RSX_FP_OPCODE_PKB: SetDst("packUnorm4x8($0 / 255.)"); return true;

case RSX_FP_OPCODE_UP2: SetDst("unpackSnorm2x16(uint($0.x))"); return true;
case RSX_FP_OPCODE_UP4: SetDst("unpackSnorm4x8(uint($0.x))"); return true;
case RSX_FP_OPCODE_UP16: SetDst("unpackHalf2x16(uint($0.x))"); return true;
case RSX_FP_OPCODE_UPB: SetDst("(unpackUnorm4x8(uint($0.x)) * 255.)"); return true;

🔄 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/RPCS3/rsx_program_decompiler/pull/2 **Author:** [@dbz400](https://github.com/dbz400) **Created:** 6/28/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `pack-unpack` --- ### 📝 Commits (1) - [`4b510e7`](https://github.com/RPCS3/rsx_program_decompiler/commit/4b510e7495ab2b4fba78a966af030ed01d4f8a96) FP: add PK2/4/16/B and UP2/4/16/B ### 📊 Changes **1 file changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `rsx_decompiler/rsx_fp_decompiler.cpp` (+8 -8) </details> ### 📄 Description Not too sure if it is right . I try to match those in the old decompiler ``` case RSX_FP_OPCODE_PK2: SetDst("float(packSnorm2x16($0.xy))"); return true; case RSX_FP_OPCODE_PK4: SetDst("float(packSnorm4x8($0))"); return true; case RSX_FP_OPCODE_PK16: SetDst("float(packHalf2x16($0.xy))"); return true; case RSX_FP_OPCODE_PKB: SetDst("packUnorm4x8($0 / 255.)"); return true; case RSX_FP_OPCODE_UP2: SetDst("unpackSnorm2x16(uint($0.x))"); return true; case RSX_FP_OPCODE_UP4: SetDst("unpackSnorm4x8(uint($0.x))"); return true; case RSX_FP_OPCODE_UP16: SetDst("unpackHalf2x16(uint($0.x))"); return true; case RSX_FP_OPCODE_UPB: SetDst("(unpackUnorm4x8(uint($0.x)) * 255.)"); return true; ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 15:54:08 -05:00
yindo closed this issue 2026-02-15 15:54:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RPCS3/rsx_program_decompiler#2