The RTX 3090 and the RTX 5080 Laptop GPU (NVIDIA 620.70.06) give every plane format's linear
tiling, and its DRM_FORMAT_MOD_LINEAR modifier where listed,
VK_FORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV in place of the colour attachment feature.
Query::plane asked the image format query alone, which offers the colour attachment usage there,
so rt rendered NVIDIA's in-place planes through that bit with the extension off.
- Floor: VK_NV_linear_color_attachment joins OPTIONAL_EXTENSIONS (enabled where listed), and its
linearColorAttachment feature (LINEAR_ATTACHMENTS) is enabled where the device lists the
extension and reports it, which Vulkan requires of a device that lists it. Vulkan 1.3 needs no
other extension for it (its dependency is VK_KHR_get_physical_device_properties2 or 1.1). The
translator is told of neither. Core::linear_attachments carries the enabled feature.
- The plane test (surface::held_usage): a usage is offered where the image format query offers it
AND the plane's own tiling's format features (LINEAR's for an opaque handle, the
DRM_FORMAT_MOD_LINEAR modifier's for a dma-buf, read through VkDrmFormatModifierPropertiesList2EXT)
hold what the optimal image has for that usage (texture::kept_features, the test a texture over a
buffer takes), and for rendering the colour attachment feature itself
(VUID-VkImageViewCreateInfo-usage-08931). The NV bit stands for the colour attachment feature only
where linearColorAttachment is enabled AND the image is VK_IMAGE_TILING_LINEAR: Vulkan sets it
"for renderable color formats in the linearTilingFeatures" alone. So NVIDIA's opaque fd planes stay
in place on the enabled path and its dma-buf planes take the copy form (SurfaceCopy::Tiling).
- The condition, held by rt: a plane accepted through the NV bit is marked at its make
(surface::linear_alone, SurfaceImage and Image linear_attachment, Attachment::linear). A pass's
begin (Pass::check, pass::linear_shape, one mark read an attachment) refuses with the new
Gap::LinearPlanePass { kind: LinearPlanePassKind }: OtherColor, a colour attachment that is not a
marked plane (the extension's rule: "as long as all the color attachments in the render pass
instance have VK_IMAGE_TILING_LINEAR tiling"); DepthStencil, a depth or stencil attachment (not
Vulkan's rule: an RTX 3090 lost the device on that shape, and rt recovers from no loss, so by the
ladder's third rung it is not used; the words name the driver); Resolve, a multisample
attachment resolving into a marked plane. Every colour attachment marked (both planes of a
picture in one pass among them) with nothing else set renders.
- Unchanged: a texture over a Shared buffer keeps its plain-bit test and its counted copy; the old
runtime is not touched.
The rt README: the surface test and the marking (Exported surfaces), NVIDIA's dma-buf planes as a
copy-form known gap, the refusal among the render encoders' known gaps, the extension row and a
Linear attachments feature table (Floor); the clear-reach slip "inside the Metal's render area"
fixed. docs/REFUSALS.md regenerated; api_signatures.tsv blessed: the new variant and enum,
floor::Features::linear_attachment, OPTIONAL_EXTENSIONS' value.
Tests: tests::floor (the extension and feature enabled where listed and reported, the README
table); tests::surface::verdicts (NVIDIA's linear word: held and marked only as LINEAR with the
feature, the copy form without it and under the modifier either way, the plain bit unmarked,
blend and filter held to the optimal image); tests::pass (linear_shape: one and two marked planes
render, the three shapes refused); tests::linear_planes on device (a draw into one plane and both
planes in one pass rendered and compared on every device; the three shapes refused where the
plane is marked and rendered, compared, where it is not).