[PR #959] gfx10: preserve the separate volume filter in sampler words #995

Open
opened 2026-11-26 20:19:44 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/959
Author: @Kadamitas
Created: 11/24/2026
Status: 🔄 Open

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


📝 Commits (1)

  • c614d98 gfx10: preserve the separate volume filter in sampler words

📊 Changes

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

View changed files

📝 runtime/src/gfx10_descriptors.h (+12 -3)
📝 runtime/test/gfx10_descriptors_test.cpp (+8 -0)

📄 Description

Claimed in the coordination issue as: Preserve the separate Z filter in GFX10 sampler descriptor words. This is a descriptive claim for an unlisted item. A formal ID was requested in the original finding.

What and why

A sampler with word2 = 0x01000000 loses its volume filter when decoded and re-encoded on a28927849. Z_FILTER occupies bits 25–24, between the XY filters and MIP_FILTER. Preserving those two bits lets the codec reproduce the sampler words supplied by the application. The change is confined to the descriptor representation and its CPU test. Independent reproduction

Tested

Built runtime/test/gfx10_descriptors_test.cpp with MinGW-w64 GCC 15.2, -std=c++20 -O2 and Vulkan headers on Windows x64. The test passed the point and linear encodings, all nine combinations of the defined Z and mip filter values, and the existing descriptor and 94-format checks. git diff --check and the repository game-data guard passed for both changed files.

GPUs tested: n/a. All changes and checks here concern CPU descriptor encoding.

AI-assisted: yes.


🔄 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/959 **Author:** [@Kadamitas](https://github.com/Kadamitas) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/gfx10-sampler-z-filter` --- ### 📝 Commits (1) - [`c614d98`](https://github.com/ubiquitarianism/leonida/commit/c614d98b671fb8283da164a04531dafcd318c260) gfx10: preserve the separate volume filter in sampler words ### 📊 Changes **2 files changed** (+20 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `runtime/src/gfx10_descriptors.h` (+12 -3) 📝 `runtime/test/gfx10_descriptors_test.cpp` (+8 -0) </details> ### 📄 Description Claimed in the coordination issue as: [Preserve the separate Z filter in GFX10 sampler descriptor words](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136491390). This is a descriptive claim for an unlisted item. A formal ID was requested in [the original finding](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136312517). ### What and why A sampler with `word2 = 0x01000000` loses its volume filter when decoded and re-encoded on `a28927849`. `Z_FILTER` occupies bits 25–24, between the XY filters and `MIP_FILTER`. Preserving those two bits lets the codec reproduce the sampler words supplied by the application. The change is confined to the descriptor representation and its CPU test. [Independent reproduction](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136418737) ### Tested Built `runtime/test/gfx10_descriptors_test.cpp` with MinGW-w64 GCC 15.2, `-std=c++20 -O2` and Vulkan headers on Windows x64. The test passed the point and linear encodings, all nine combinations of the defined Z and mip filter values, and the existing descriptor and 94-format checks. `git diff --check` and the repository game-data guard passed for both changed files. GPUs tested: n/a. All changes and checks here concern CPU descriptor encoding. AI-assisted: yes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#995
No description provided.