An argument buffer's sample filter note holds only where its heap can name a filtered raw texture
What: a heap sample the function emulates (`sampler::heap_raw`) recorded `PrecisionNote::BicubicFilterArithmetic` whatever the command's heap held: unconditionally through a constexpr linear sampler, and under the bound sampler's word through a runtime slot. A command whose heap holds no raw texture samples through the device's own sampler, and a bfloat form's sample reads the nearest texel, so neither filters by the device's arithmetic. `SpecKey::HeapRawTextures`' value now carries two bits, which the plan gives from the command's heap members (`slots::heap_raw`): `heap_raw::HELD` (1, a raw-held texture: the decode's `DevicePackConversion`, unchanged) and `heap_raw::FILTERED` (2, a raw-held texture of a form the function filters: not a bfloat one). The filter note's clauses each test `FILTERED` (beside the bound word's test through a runtime slot). Runtime: `degrade_bound_values` reads the clause at each draw or dispatch, so a command whose heap holds only RGBA8Unorm or RGBA16Bfloat textures no longer announces bicubic-filter-arithmetic for a linear heap sample; one holding a BGRA10XR texture still does. No runtime code changed (the path is generic). Tests: heap::a_heap_sample_s_filter_note_follows_the_raw_texture_and_the_bound_sampler_word (artifact clauses on every committed profile), heap::a_heap_sample_s_filter_note_holds_where_its_command_can_name_a_filtered_raw_texture (plan values 3/1/0 and the notes bound under them), the decode-note plan test's values (3 for BGRA10XR, 1 for RGBA16Bfloat), engine_sampler's argument-buffer stage check, and the lane heap_extended_reads::a_heap_sample_s_filter_note_is_announced_where_its_command_can_name_a_filtered_raw_texture. Docs: SpecKey::HeapRawTextures, the note's rustdoc, API.md. SEMANTICS_VERSION 2018 (renumbered at landing). (cherry picked from commit dbc8a2781ef6170f797d5b7a7a83b46264c5e4e2)
This commit is contained in:
1 parent
51177a4e20
commit
ff45556bcc
10 files changed
+265
-65
No files matched your search
+3
-1
@@ -3666,7 +3666,9 @@ bound.
|
||||
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.
|
||||
nearest sampler's sample is the decoded texel at Metal's position. Through an argument buffer it
|
||||
is announced only at a draw or dispatch whose command can name a texture held by its raw texels in
|
||||
a form the function filters (`BGR10_XR`, `BGRA10_XR`, the padded forms; not a bfloat one).
|
||||
- `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