Zero-initialized images: an enables test, API.md's runtime-own extensions, the signature table

Enables::enable_zero_initialize_device_memory gets the test each runtime-own enable has
(tests/enables.rs: the structure, of the registry's type 1000620000, is chained only once
enabled, its member TRUE, the extension's name after host image copy's). docs/API.md's paragraph
of what the runtime enables for itself outside the vocabulary names VK_EXT_zero_initialize_device_memory
and when. api_signatures.tsv gains WorkCounts::images_started_zeroed (scripts/api-signatures, --bless).

Not yet built; the next gem10 build runs it.

(cherry picked from commit 2ec9061a61c7262e7a05b4e42f0e1122518439cf)
This commit is contained in:
Anees Iqbal committed 2026-11-07 19:14:46 -08:00
1 parent c38616e00d
commit a508b327de
3 files changed
+55 -3

No files matched your search

+5 -1
View File
@@ -308,7 +308,11 @@ the device refuses (`HostMemory::with_dma_buf`), `VK_EXT_external_memory_dma_buf
`VK_EXT_queue_family_foreign` beside them, wherever a device lists them, and
`VK_EXT_pageable_device_local_memory` with `VK_EXT_memory_priority`, where a device lists both and
has `pageableDeviceLocalMemory`: its driver may then move device-local memory to host-local memory
to make room rather than fail an allocation, every allocation at the default priority.
to make room rather than fail an allocation, every allocation at the default priority; and
`VK_EXT_zero_initialize_device_memory`, where a device the runtime made lists it, has
`zeroInitializeDeviceMemory` and copies textures on the host: a `Shared` or `Managed` texture's
image that copies on the host then starts in memory of its own the driver zeroed, with no write of
the host's (`WorkCounts::images_started_zeroed`).
A texture over host pages is one over a no-copy buffer's (imported by their pointer or as
dma-bufs), or over a host-visible buffer of the runtime's own longer than 32 MiB where the device