[PR #1127] [CLOSED] gfx10: preserve the sampler volume filter #1160

Closed
opened 2026-11-26 20:20:17 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1127
Author: @bobcatchris
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: fix/gfx10-sampler-z-filter


📝 Commits (1)

  • fcb3e7e gfx10: preserve the sampler volume filter

📊 Changes

2 files changed (+26 additions, -3 deletions)

View changed files

📝 runtime/src/gfx10_descriptors.h (+4 -2)
📝 runtime/test/gfx10_descriptors_test.cpp (+22 -1)

📄 Description

Claimed in the coordination issue as: D3D-GFX10-SAMPLER-Z-FILTER

Depends on: none

Fixes: none

What and why

The GFX10 sampler codec omitted WORD2 Z_FILTER [25:24]. decode() therefore lost the volume filter and encode() wrote it back as zero, changing point/linear/anisotropic volume sampling on any descriptor round trip. The field is now stored independently from XY and mip filtering, with all four encodings covered. Original finding by @Kadamitas.

Tested

  • Baseline raw-word probe: fails with Z_FILTER 1 dropped.
  • Patched gfx10_descriptors_test: passes all T#/S#/V# fields, 94 format rows, round trips and Vulkan mappings.
  • ctest -R "^(replay_clear_gate|gfx10_descriptors)$": 2/2 passed.
  • scripts/check_no_game_data.py: clean.
  • Patch security sweep: 0 hits.

GPUs tested: n/a (CPU-only descriptor codec test)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption, including in logs or reports quoted here.
  • N/A — not a translator rule.

🔄 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/ubiquitarianism/leonida/pull/1127 **Author:** [@bobcatchris](https://github.com/bobcatchris) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/gfx10-sampler-z-filter` --- ### 📝 Commits (1) - [`fcb3e7e`](https://github.com/ubiquitarianism/leonida/commit/fcb3e7e7f52b9fa2467e394e7327becc4945230b) gfx10: preserve the sampler volume filter ### 📊 Changes **2 files changed** (+26 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `runtime/src/gfx10_descriptors.h` (+4 -2) 📝 `runtime/test/gfx10_descriptors_test.cpp` (+22 -1) </details> ### 📄 Description Claimed in the coordination issue as: D3D-GFX10-SAMPLER-Z-FILTER Depends on: none Fixes: none ### What and why The GFX10 sampler codec omitted WORD2 `Z_FILTER` [25:24]. `decode()` therefore lost the volume filter and `encode()` wrote it back as zero, changing point/linear/anisotropic volume sampling on any descriptor round trip. The field is now stored independently from XY and mip filtering, with all four encodings covered. Original finding by @Kadamitas. ### Tested - Baseline raw-word probe: fails with `Z_FILTER 1 dropped`. - Patched `gfx10_descriptors_test`: passes all T#/S#/V# fields, 94 format rows, round trips and Vulkan mappings. - `ctest -R "^(replay_clear_gate|gfx10_descriptors)$"`: 2/2 passed. - `scripts/check_no_game_data.py`: clean. - Patch security sweep: 0 hits. GPUs tested: n/a (CPU-only descriptor codec test) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption, including in logs or reports quoted here. - [x] N/A — not a translator rule. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:17 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
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/leonida#1160
No description provided.