feat(gpu,shader): implementa ClearUnorderedAccessViewUint/Float (0x1a8/0x1b0) e fallback de contêiner XDAT sem DXIL #122

Open
github-bot wants to merge 1 commit from github-bot/gh-122 into main AGit
Owner

@⁠ItzMeGamer on GitHub · 2026-11-26 11:57 UTC · original
ItzMeGamer:feat/series-s-fsr4-shader-container → main · +540 −56 · 9 files · 1 commits · open

Resumo

Ao testar --console series-s com amd_fidelityfx_upscaler_xbox.dll, identificamos duas lacunas no pipeline de compute/upscaling:

  1. ClearUnorderedAccessViewUint (0x1a8) e ClearUnorderedAccessViewFloat (0x1b0) em victory-gpu (list.rs, host.rs, descriptor.rs):
    • Implementados os slots f[53] (0x1a8) e f[54] (0x1b0) de ID3D12GraphicsCommandList (chamados por amd_fidelityfx_upscaler_xbox.dll em +0x72f4), com anel de descritores CPU não-visível ao shader (cpu_uav_slot) e suporte a UAVs de textura, depth twins e buffers (R32_UINT / R32_FLOAT).
  2. Fallback para partes XDAT fora de DXIL + diagnóstico de chunks (victory-shader, victory-gpu::pipeline):
    • Adicionado container_native_programs para procurar programas nativos XDAT em qualquer chunk do contêiner DXBC quando FourCC::DXIL estiver ausente, além de logar os chunks presentes uma única vez.
    • Achado sobre amd_fidelityfx_upscaler_xbox.dll (Series S): todos os 29 shaders FFX_FSR4_* dessa DLL possuem os chunks [SFI0, ISG1, OSG1, PSV0, RTS0, HASH, ACCC] (onde ACCC inicia com FSPX, formato pré-compilado ACO para RDNA2), sem chunk DXIL ou XDAT — o que explica o fallback ACO -> NewBE falhar com no DXIL part.

Verificação

  • cargo test -p victory-shader -p victory-gpu -> 242 passed + 206 passed (0 failed).

(Assistido por IA com Antigravity).

**@⁠ItzMeGamer** on GitHub · 2026-11-26 11:57 UTC · [original](https://github.com/uiliannn/VItoriaBr/pull/122) `ItzMeGamer:feat/series-s-fsr4-shader-container` → `main` · +540 −56 · 9 files · 1 commits · open ## Resumo Ao testar `--console series-s` com `amd_fidelityfx_upscaler_xbox.dll`, identificamos duas lacunas no pipeline de compute/upscaling: 1. **`ClearUnorderedAccessViewUint` (`0x1a8`) e `ClearUnorderedAccessViewFloat` (`0x1b0`) em `victory-gpu` (`list.rs`, `host.rs`, `descriptor.rs`)**: - Implementados os slots `f[53]` (`0x1a8`) e `f[54]` (`0x1b0`) de `ID3D12GraphicsCommandList` (chamados por `amd_fidelityfx_upscaler_xbox.dll` em `+0x72f4`), com anel de descritores CPU não-visível ao shader (`cpu_uav_slot`) e suporte a UAVs de textura, depth twins e buffers (`R32_UINT` / `R32_FLOAT`). 2. **Fallback para partes `XDAT` fora de `DXIL` + diagnóstico de chunks (`victory-shader`, `victory-gpu::pipeline`)**: - Adicionado `container_native_programs` para procurar programas nativos `XDAT` em qualquer chunk do contêiner DXBC quando `FourCC::DXIL` estiver ausente, além de logar os chunks presentes uma única vez. - **Achado sobre `amd_fidelityfx_upscaler_xbox.dll` (Series S)**: todos os 29 shaders `FFX_FSR4_*` dessa DLL possuem os chunks `[SFI0, ISG1, OSG1, PSV0, RTS0, HASH, ACCC]` (onde `ACCC` inicia com `FSPX`, formato pré-compilado ACO para RDNA2), sem chunk `DXIL` ou `XDAT` — o que explica o fallback ACO -> NewBE falhar com `no DXIL part`. ### Verificação - `cargo test -p victory-shader -p victory-gpu` -> **242 passed + 206 passed** (`0 failed`). *(Assistido por IA com Antigravity).*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:58:50 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/122/head:github-bot/gh-122'
git switch 'github-bot/gh-122'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-122'
git switch 'github-bot/gh-122'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-122'
git switch 'github-bot/gh-122'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-122'
git switch 'main'
git merge --squash 'github-bot/gh-122'
git switch 'main'
git merge --ff-only 'github-bot/gh-122'
git switch 'main'
git merge 'github-bot/gh-122'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.