An extended-range sample's filter note through a runtime sampler follows the bound word
What: a sample of an extended-range or padded texture that the module filters itself (`sampler::extended`, through the slot's variant, and `sampler::heap_raw`, through an argument buffer's raw element) recorded `PrecisionNote::BicubicFilterArithmetic` unconditionally through a runtime sampler slot. It is now specialized on the word of the sampler bound at that slot (`NoteOn::BoundSampler`, `SpecKey::BoundSamplerWord`), with the two tests `linear::filtering_word` gives, as the YCbCr filter note does: a linear minification or magnification filter, anisotropy or a cubic filter (any of those bits), or a linear mip filter. The level blend of a word-stated mip filter holds on the linear mip test alone. A constexpr sampler keeps its rule (linear: unconditional; nearest: none). Runtime: the clauses test a bound value, so `Device::degrade_bound_values` reads them at each draw or dispatch of the variant (no runtime code changes: the path is generic, and `slots::record_noted` already records the word for a noted key). A nearest runtime sampler over such a texture no longer announces bicubic-filter-arithmetic; a filtering one still does. Why: a nearest sample is the decoded texel at Metal's position (no filter arithmetic), yet it announced the note, so the conformance suite's nearest cases (`rgb10a2-srgb-samples-nearest-*`, the eight `xr-two-plane-samples-*-n*-*`) declared it. Tests: engine_extended_range::samples::a_runtime_sampler_s_filter_note_holds_only_where_the_bound_word_filters (every form, half and float, runtime / constexpr linear / constexpr nearest, on lavapipe, moltenvk-m3 and the RTX 5080 profile: clauses hold for linear, linear min, linear mag, linear mip, anisotropic and cubic words, not for nearest or nearest-mip ones; bfloat forms record none) and heap::a_heap_sample_s_filter_note_follows_the_bound_sampler_word. The rgb10a2_srgb lane now checks its nearest samples announce no filter note. The conformance allowances of the rgb10a2 sRGB and two-plane sample cases name the note for the linear cases only. Docs: the note's rustdoc and API.md's catalogue entry. SEMANTICS_VERSION 2016: an artifact's notes change. (cherry picked from commit fd5212bee216b823ba18d3c5ba5e5a74a4b12073)
This commit is contained in:
1 parent
c79814eb0d
commit
445d410eda
9 files changed
+329
-42
No files matched your search
+4
-1
@@ -3663,7 +3663,10 @@ bound.
|
||||
filter choice, level and clamps are Metal's. Metal's fixed-point weights, exact grid sums, float
|
||||
accumulators and sixty-fourth level fractions are not reproduced: a lane may differ by a few grid
|
||||
steps (`1/4080` at 8 bits), by up to `2.1e-3` on an extended-range sRGB texture's bicubic sample,
|
||||
and by up to `1/64` of the two levels' difference under a linear mip filter.
|
||||
and by up to `1/64` of the two levels' difference under a linear mip filter. Through a runtime
|
||||
sampler slot it is announced at a draw or dispatch only where the bound sampler filters (a linear
|
||||
minification or magnification filter, anisotropy, a cubic filter or a linear mip filter): a
|
||||
nearest sampler's sample is the decoded texel at Metal's position.
|
||||
- `metal2vulkan-degrade-sparse-residency` (precision). `PrecisionNote::SparseResidency`: A stage
|
||||
samples or gathers a texture whose residency it observes (`sparse_color::resident()`) through the
|
||||
slot's sparse form, which the module has where the profile enables `shaderResourceResidency`:
|
||||
|
||||
Reference in new issue
Block a user