vkback: draws into an A4R4G4B4 render target on a device that cannot render to it (NVIDIA) #158

Open
opened 2026-12-01 23:15:43 +00:00 by github-bot · 0 comments
Owner

@⁠360900 on GitHub · 2026-12-01 23:12 UTC · original

RTX 5080, NVIDIA 620.73.04, main d59b4f8 with the NVIDIA pull requests. Validation layer 1.4.363.

NVIDIA's driver has no COLOR_ATTACHMENT for A4R4G4B4_UNORM_PACK16 (DXGI 115) and E5B9G9R9_UFLOAT_PACK32 (67). One 115 image is a render target in the world (attachment 1 of mesh draws, blended). make_image creates it without COLOR_ATTACHMENT ("census: render target image without COLOR_ATTACHMENT (format cannot be rendered to)", quiet) and the draws use an attachment view of it all the same:

  • VUID-VkImageViewCreateInfo-pNext-02662, VUID-VkImageViewCreateInfo-usage-08931
  • VUID-VkGraphicsPipelineCreateInfo-renderPass-06582, -06062
  • VUID-vkCmdDrawMeshTasksEXT-blendEnable-04727

What the driver draws there is not known. A stand-in format for render targets would need the image's bytes converted where it is copied or read in place (2 bytes a texel against 4).

**@⁠360900** on GitHub · 2026-12-01 23:12 UTC · [original](https://github.com/vktory6/VKtory/issues/158) RTX 5080, NVIDIA 620.73.04, main d59b4f8 with the NVIDIA pull requests. Validation layer 1.4.363. NVIDIA's driver has no COLOR_ATTACHMENT for A4R4G4B4_UNORM_PACK16 (DXGI 115) and E5B9G9R9_UFLOAT_PACK32 (67). One 115 image is a render target in the world (attachment 1 of mesh draws, blended). `make_image` creates it without COLOR_ATTACHMENT ("census: render target image without COLOR_ATTACHMENT (format cannot be rendered to)", quiet) and the draws use an attachment view of it all the same: - `VUID-VkImageViewCreateInfo-pNext-02662`, `VUID-VkImageViewCreateInfo-usage-08931` - `VUID-VkGraphicsPipelineCreateInfo-renderPass-06582`, `-06062` - `VUID-vkCmdDrawMeshTasksEXT-blendEnable-04727` What the driver draws there is not known. A stand-in format for render targets would need the image's bytes converted where it is copied or read in place (2 bytes a texel against 4).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 23:15:43 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/vktory6--VKtory#158
No description provided.