Repository navigation
Conversation
KernelSmoker
left a comment
There was a problem hiding this comment.
Verified on draft head fa90ff469dcd2d19c3af770068a7449d602c76cd with an independent Fedora 45 Linux build of runtime/test/gfx10_descriptors_test.cpp: GCC 16, C++20, -O2 -Wall -Wextra -Werror -Wno-missing-field-initializers -pedantic; the test passed, including the 94 format rows and the new point/linear plus Z/MIP cross-product round trips. check_no_game_data.py and git diff --check passed. Synthetic descriptor words only; no game data/GPU.
This verifies the stated codec round-trip fix. vulkan_sampler() still has no separate Z-filter mapping (Vulkan applies min/mag filtering across spatial axes), so this review does not claim changed runtime 3D texture filtering behavior.
|
Independent CPU check on Windows x64, MSVC 19.44.35220, comparing parent The probe crossed all four XY magnification and minification values with the three defined volume-filter values and three mip-filter values (144 inputs). On the parent, 96 inputs lost their nonzero Z filter. All other bits stayed unchanged. On this head all 144 inputs round-tripped exactly, including the adjacent XY and mip fields. The repository CTest passed on both revisions. This checks descriptor encoding and decoding on the CPU. Synthetic inputs only. AI-assisted: OpenAI Codex. |
fa90ff4 to
c614d98
Compare
c614d98 to
f7f7661
Compare
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 = 0x01000000loses its volume filter when decoded and re-encoded ona28927849.Z_FILTERoccupies bits 25–24, between the XY filters andMIP_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 reproductionTested
Built
runtime/test/gfx10_descriptors_test.cppwith MinGW-w64 GCC 15.2,-std=c++20 -O2and 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 --checkand 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.