Files
metal2vulkan/docs
Anees Iqbal fc79fdd4e9 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)
2026-11-05 05:10:38 -08:00
..