Announce every NVIDIA RTX 5080 Laptop clear and plain fill off a whole code: its clears take either nearest code
runtime_lane::color_fills::plain_color_fills_are_the_device_s_clear (vkCmdClearColorImage of 762
colours into each of 70 formats) on the RTX 5080 Laptop GPU at 0b556ddfd6: 352 fills stored 382
normalized channels a code from Metal's, each one of the two codes nearest the scaled value,
unannounced where the value was not near a midpoint. Vulkan allows it ("returns one of the two
unsigned binary integer values with exactly b bits which are closest to the floating-point value
r. Implementations should round to nearest"). The 8- and 16-bit unorm and snorm channels went
toward zero (R16Unorm's 0.001, 65.535 codes, stored 65; R8Snorm's -0.5 stored -63), packed and
10-bit channels and an sRGB format's alpha at times to the code above the nearest. An under-note.
What:
- DriverFact::ColorClearTakesEitherCode, on the RTX 5080 Laptop GPU (NVIDIA), with its
measurement in its doc.
- clear_value::rounds_apart takes the fact: on such a driver a normalized channel's clear is in
question wherever its scaled value is off a whole code, not only near a midpoint; the clear and
the plain colour fill (blit_fill, fill_value, render_pass) announce device-color-conversion then.
- docs/API.md's catalogue entry for the clear conversion names the fact.
- Tests: driver_facts' table test; a fill_value unit test of the rule on the measured cases with
and without the fact; api_signatures for the new variant.
Verified: in the lane proof runs on the 5080 and the M3 (counts in the series' last commit). The
M3's and lavapipe's facts are unchanged, so their notices are.
(cherry picked from commit f2da9346bb51ed034f0d5f8bf076c8d55c57f277)
This commit is contained in:
1 parent
3cfd7f7aa0
commit
fc79fdd4e9
10 files changed
+142
-30
No files matched your search
+9
-5
@@ -3321,17 +3321,21 @@ bound.
|
||||
stored up to 11 codes from Metal's).
|
||||
Also a render pass's clear of a normalized, sRGB,
|
||||
packed 16-bit, half or small-float color attachment to a color whose conversion is in question
|
||||
(a normalized channel within 1/1024 of a midpoint between two codes, an sRGB channel inside its
|
||||
range, a value the format does not hold exactly): the device converts the clear color, where
|
||||
Metal's clear rounds each channel to nearest, a tie to even, and truncates a small float's and a
|
||||
shared exponent's mantissas. Not for a clear by the load operation of an attachment the pass's
|
||||
(a normalized channel within 1/1024 of a midpoint between two codes, or anywhere off a whole code
|
||||
on a driver that takes either code nearest it, `DriverFact::ColorClearTakesEitherCode`: NVIDIA's
|
||||
on the RTX 5080 Laptop GPU, whose 8- and 16-bit channels' clears went toward zero; an sRGB channel
|
||||
inside its range, a value the format does not hold exactly): the device converts the clear color,
|
||||
where Metal's clear rounds each channel to nearest, a tie to even, and truncates a small float's
|
||||
and a shared exponent's mantissas. Vulkan lets the device store either of the two codes nearest a
|
||||
normalized channel's scaled value, asking for the nearest. Not for a clear by the load operation of an attachment the pass's
|
||||
render area covers on a driver whose load operation clears as Metal's `Clear` load action does
|
||||
(`DriverFact::ColorClearIsMetals`: MoltenVK on the Apple9 GPUs under macOS 27, measured on the M3
|
||||
Max); a clear made before the pass, of an attachment its first instance leaves out, is announced
|
||||
there too. Also a plain color fill (`BlitCommandEncoder::fill_texture_color` without a pixel
|
||||
format) of a texture of such a format the device renders, which the device's clear of the color
|
||||
writes, to a color whose conversion is in question against Metal's fill packing (a normalized
|
||||
channel within 1/1024 of a midpoint between two codes, more for a packed 16-bit channel, an sRGB
|
||||
channel within 1/1024 of a midpoint between two codes, more for a packed 16-bit channel, or
|
||||
anywhere off a whole code on a driver with `DriverFact::ColorClearTakesEitherCode`; an sRGB
|
||||
channel inside its range, a value a half, small float or shared exponent does not hold exactly):
|
||||
Metal's fill rounds a tie half up and takes an sRGB channel's code whose decoded value is
|
||||
nearest.
|
||||
|
||||
Reference in new issue
Block a user