Drop the deleted half-float alias write from five comments
One work packet, landed as 2 commits (16adc36586..9dff7633fa on archive/development-linear-2026-10-28), in order: * Drop the deleted half-float alias write from five comments The half-bits write paths are gone: a half texel write to a 16-bit float storage image is the device's, noted as DeviceNanEncoding where unmeasured. Five comments still described the unsigned integer alias that route took: DriverDeviation::MetalHalfTexelWrites, VkProperty::MetalHalfTexelWrites, the fragment snapshot's raw-view rule (whose raw view is now only an 8-bit sRGB slot's), the cross-class write's alias example, and the doc of every_alpha_code_of_a_texture_whose_alpha_reads_one_reads_one. Comments only; cargo fmt clean. * Re-pin the runtime sources at the landing tip The landed packet changed a runtime-sources input, so the committed digest no longer described the sources and `the_runtime_sources_are_the_committed_ones` would fail. Recomputed over the same inputs and committed by land-pkt.sh.
This commit is contained in:
1 parent
d72fd04a73
commit
504f26bb80
6 files changed
+9
-14
No files matched your search
@@ -1 +1 @@
|
||||
4cbdf0184b91c0c1769d469dda76befee0c1ac4ad864071e3991d14b1c6e3fd4
|
||||
b9e86bd4bb90ad6a4f063d652c3b932588b1c51948e2df15cbe5c1800cae1041
|
||||
@@ -892,10 +892,8 @@ const CODE_STRIDE: usize = 256;
|
||||
/// Every one of the 65,536 `half` codes an `RGBA16Float` texture's alpha can hold reads 1 through
|
||||
/// a texture whose alpha reads 1, and stays the texture's own code: the code is written into texel
|
||||
/// `(0, 0)` by `replace_region`, read back by `get_bytes`, and read by `rrp_sw_read_f` through the
|
||||
/// slot the swizzle reaches ([`CODES_AT_ONCE`] textures a round, one pipeline). The slot reads a
|
||||
/// 16-bit float texel's own bits from its unsigned integer alias view under the exact policy, in
|
||||
/// which the swizzle's `One` is the code 1 (the `half` 2 ^ -24) and not the value 1: the read
|
||||
/// answered that for every code before the function applied the swizzle itself.
|
||||
/// slot the swizzle reaches ([`CODES_AT_ONCE`] textures a round, one pipeline). The swizzle's
|
||||
/// `One` is the value 1 whatever code the texel holds, a NaN's included.
|
||||
#[test]
|
||||
fn every_alpha_code_of_a_texture_whose_alpha_reads_one_reads_one() {
|
||||
on_device(|device, _| {
|
||||
|
||||
@@ -758,7 +758,7 @@ pub enum VkProperty {
|
||||
/// [`DriverDeviation::MetalHalfTexelWrites`](crate::error::DriverDeviation::MetalHalfTexelWrites)).
|
||||
/// No Vulkan query reports it. A module whose `half` texel write to a 16-bit float format
|
||||
/// leaves its NaN to the device requires it; without it, the write records
|
||||
/// `PrecisionNote::DeviceNanEncoding`, or takes the texture's unsigned integer alias.
|
||||
/// `PrecisionNote::DeviceNanEncoding`.
|
||||
MetalHalfTexelWrites,
|
||||
/// The device stores a `float` texel a shader writes to a unorm or snorm storage image as
|
||||
/// Metal's code, the exact product rounded to nearest with a tie away from zero (the driver's
|
||||
|
||||
@@ -739,10 +739,8 @@ pub enum DriverDeviation {
|
||||
/// signalling NaN's unquieted, in the first, and the format's canonical NaN in the second.
|
||||
/// Where the profile takes it, a write to a slot whose storage choice declares a 16-bit float
|
||||
/// format records no `PrecisionNote::DeviceNanEncoding` and the module requires the property.
|
||||
/// Unmeasured, such a slot writes the half's bits through the texture's unsigned integer alias
|
||||
/// where the device stores one (`StorageImageClass::HalfBits`), and otherwise records the
|
||||
/// note, which the runtime announces at the bind of such a texture to a slot whose storage
|
||||
/// choice declares no format. A packed small float channel's NaN, the half widened, records
|
||||
/// Unmeasured, such a write records the note, which the runtime announces at the bind of such
|
||||
/// a texture to a slot whose storage choice declares no format. A packed small float channel's NaN, the half widened, records
|
||||
/// the note on every device.
|
||||
MetalHalfTexelWrites,
|
||||
/// The device stores a `float` texel a shader writes to a unorm or snorm storage image (not
|
||||
|
||||
@@ -2657,8 +2657,7 @@ fn read(cx: &mut EmitCx<'_>, fb: &mut FunctionBuilder<'_>, r: &Read) -> BResult<
|
||||
// A slot the draw reads through a snapshot (`LoweringInputs::snapshot_textures`): its
|
||||
// interface fact admits only the plain fetch of a level the snapshot's copy makes, through the
|
||||
// image the copy fetches from (`snapshot_fetches_raw`: the slot's raw view where its reads
|
||||
// take the raw codes, else its image, so a slot with an unsigned integer alias beside its
|
||||
// image is read through its image, as the copy fetches it).
|
||||
// take an 8-bit sRGB texel's raw codes, else its image).
|
||||
let snapshot = match r.image {
|
||||
ImageRef::Slot(index) => {
|
||||
let plain = sampled
|
||||
|
||||
@@ -3222,8 +3222,8 @@ fn select_write(
|
||||
let format = match image {
|
||||
ImageRef::Slot(index) => {
|
||||
let slot = slot_of(cx, index)?.slot;
|
||||
// The bound image's own format: an alias view's image (a half-float
|
||||
// texture written through its integer alias), else the declared one.
|
||||
// The bound image's own format: an alias view's image (an `RGB9E5Float`
|
||||
// texture written through its `R32_UINT` view), else the declared one.
|
||||
cx.inputs
|
||||
.storage_images
|
||||
.get(&slot)
|
||||
|
||||
Reference in new issue
Block a user