🔥 Delete VulkanPlatform and the metal2vulkan-runtime crate
RtPlatform, over metal2vulkan-rt, has been the library's platform since the `rt` feature went on by default; VulkanPlatform, over metal2vulkan-runtime, built only without it. This deletes VulkanPlatform, every module only it used, the metal2vulkan-runtime dependency, and the `rt` feature with its cfg arms in reims-vgpu-vulkan, reims-vgpu and reims-vgpu-c. Every handle was already made on RtPlatform, so neither the guest nor the host sees a change; the C header, QEMU, the guest's sets, the ROM and reims-ctl are untouched. The tests of the deleted code go with it. The on_vulkan tests that held the old platform now hold rt. The 15 that rt fails are ignored, each with the gap rt names: texture buffers, a texture over a buffer or an IOSurface plane, a rasterization rate map, visibility result modes, a kernel's stage input, tessellation, a buffer of 0 bytes, a texture at the guest's resource ID, and the guest's class, which rt is not told. .config/nextest.toml drops the overrides of the deleted tests, and lane-gate.sh reads the pin from metal2vulkan-rt's line.
This commit is contained in:
1 parent
c2e6b52847
commit
1ef5403e51
401 files changed
+1058
-153844
No files matched your search
+6
-98
@@ -1,57 +1,8 @@
|
||||
# How cargo-nextest schedules the workspace's tests, `cargo xtask check`'s among them.
|
||||
#
|
||||
# A Mac's GPU is shared by every process on it. The test that holds the most of its memory runs
|
||||
# first, with nothing else in flight; the longest tests start next, so the run does not end on one
|
||||
# that began late. Why, and what such tests did to the others before, is in docs/lessons.md
|
||||
# ("Tools and worktrees", and "The platform and the runtime" for Metal's compiles). The first three
|
||||
# overrides are the Mac's alone; each of the others names its platform or applies on every
|
||||
# platform, and nextest runs the other tests in its own order. A filter that names a package or
|
||||
# binary the workspace no longer has fails every nextest run, so a rename updates this file too.
|
||||
|
||||
# A reservation of 2^31 - 1 resource IDs, opt-in (`#[ignore]`), run only for a change to what it
|
||||
# tests, with `--run-ignored only`: 16 GiB of memory for about a second, six times any other
|
||||
# test's peak, where others' command buffers fail with "Insufficient Memory" when the GPU's memory
|
||||
# runs out.
|
||||
[[profile.default.overrides]]
|
||||
platform = 'cfg(target_os = "macos")'
|
||||
filter = 'binary_id(reims-vgpu-vulkan) & test(=gpu::icb::tests::metal_tests::a_reservation_of_2_31_minus_1_is_metals)'
|
||||
threads-required = "num-test-threads"
|
||||
priority = 100
|
||||
|
||||
# Metal's compute state of a fragment function crashes Metal's compiler service 4 times, 200
|
||||
# crashes a run, and now and then one of these synchronous compiles never returns. The test
|
||||
# makes Metal's answers in a child it kills and starts again after a minute, up to 3 times;
|
||||
# nextest ends the test at 5 minutes should that hang too. It starts early, so that a child
|
||||
# started again runs beside the rest.
|
||||
[[profile.default.overrides]]
|
||||
platform = 'cfg(target_os = "macos")'
|
||||
filter = 'binary_id(reims-vgpu-vulkan) & test(=gpu::resource::tests::metal_tests::compute_state_answers_are_metals_for_every_kernel_here)'
|
||||
priority = 50
|
||||
slow-timeout = { period = "60s", terminate-after = 5 }
|
||||
|
||||
# The tests that take 15 s or more under the check's load, which start right after the ones
|
||||
# that run alone.
|
||||
[[profile.default.overrides]]
|
||||
platform = 'cfg(target_os = "macos")'
|
||||
filter = '''
|
||||
(binary_id(reims-vgpu-vulkan) & (
|
||||
test(/extended_range_.*blends/)
|
||||
| test(/^gpu::ycbcr::sampling::.*_samples_as_metals$/)
|
||||
| test(=gpu::encode_render::tests::metal_tests::resolves_into_other_formats_are_metals_or_die_named)
|
||||
| test(=gpu::encode_render::tests::metal_tests::indexed_strips_restart_at_the_set_index_as_metals_do)
|
||||
| test(=gpu::rgbx::nan_clears_are_metals)
|
||||
| test(=gpu::fill::tests::metal_tests::colors_are_metals)))
|
||||
'''
|
||||
priority = 50
|
||||
|
||||
# The keep-awake's exit test, on every platform with the long tests: it runs 8 child processes
|
||||
# that each make a device and exit amid the keep-awake's touches. Alone the 8 took 7.4 s on msi's
|
||||
# RTX 5080; in the Vulkan crate's whole run there, beside the other test processes making their
|
||||
# devices, each took about 26 s, 211 s in all (measured 2026-11-05), so it starts early rather
|
||||
# than end the run.
|
||||
[[profile.default.overrides]]
|
||||
filter = 'binary_id(reims-vgpu-vulkan) & test(=awake::tests::an_exit_amid_touches_ends_with_its_status)'
|
||||
priority = 50
|
||||
# Each override names its platform or applies on every platform, and nextest runs the other tests
|
||||
# in its own order. A filter that names a package or binary the workspace no longer has fails every
|
||||
# nextest run, so a rename updates this file too.
|
||||
|
||||
# The `vaapi` module's tests of the GPU held (`vaapi::va::spin`, `va::wait::gpu`, `va::wait::held`),
|
||||
# opt-in (`#[ignore]`) and run on the VA-API host with `--run-ignored only`, each alone. Each
|
||||
@@ -64,15 +15,6 @@ platform = 'cfg(target_os = "linux")'
|
||||
filter = 'binary_id(reims-vgpu-video) & test(/^vaapi::va::(spin|wait::(gpu|held))::/)'
|
||||
threads-required = "num-test-threads"
|
||||
|
||||
# A device cache's planes over its exported memory: where the device's verdict for that memory
|
||||
# did not pass (a record of its driver's check, or this process's check), the test checks that
|
||||
# the planes lie on the device's lines alone, and says so; its output shows on a pass too, so a
|
||||
# run shows a pass that skipped the check of the planes in place.
|
||||
[[profile.default.overrides]]
|
||||
platform = 'cfg(target_os = "linux")'
|
||||
filter = 'binary_id(reims-vgpu-vulkan) & test(=gpu::resource::tests::a_device_cache_lays_its_planes_on_the_devices_lines_from_its_first_planes_byte)'
|
||||
success-output = "final"
|
||||
|
||||
# The measurements whose `#[ignore]` says they hold the GPU or run alone, on every platform:
|
||||
# opt-in, taken only by a run of ignored tests (`--run-ignored all` or `only`), and then run with
|
||||
# nothing else in flight, in whatever filter takes them. One beside other GPU tests fails theirs:
|
||||
@@ -88,38 +30,16 @@ filter = '''
|
||||
| test(=graphics::decode::surface_pages::costs::surface_view_costs_vulkan)
|
||||
| test(=graphics::decode::surface_pages::costs::pages_take_costs_vulkan)
|
||||
| test(=graphics::decode::surface_pages::costs::large_take_costs_vulkan)
|
||||
| test(=graphics::decode::icb_slots_cost::on_vulkan_icb_slots_cost)
|
||||
| test(=graphics::decode::handler_cost::on_vulkan_handler_cost)
|
||||
| test(=graphics::decode::close_cost::on_vulkan_close_cost)
|
||||
| test(=graphics::decode::composite_cost::on_vulkan_composite_cost)
|
||||
| test(=graphics::decode::composite_cost::on_rt_composite_cost)
|
||||
| test(=graphics::decode::dispatch_cost::on_vulkan_dispatch_cost)
|
||||
| test(=graphics::decode::dispatch_cost::on_rt_dispatch_cost)
|
||||
| test(=graphics::decode::draw_cost::on_vulkan_draw_cost)))
|
||||
| (binary_id(reims-vgpu-vulkan) & (
|
||||
test(=os::linux::host_ram::tests::slab_heap_costs)
|
||||
| test(=os::linux::host_ram::tests::slab_nocopy_costs)))
|
||||
| test(=graphics::decode::draw_cost::on_rt_draw_cost)))
|
||||
'''
|
||||
threads-required = "num-test-threads"
|
||||
|
||||
# The many-passes tests on Windows, each alone: each submits one command buffer of 706 passes, each
|
||||
# after a 1x1 encoder of its own, as one vkQueueSubmit of 1 VkSubmitInfo and 1413 VkCommandBuffers.
|
||||
# On the UHD Graphics 630 (Intel 31.0.101.2145), beside the rest of the Windows tests, that submit
|
||||
# lost the device (VK_ERROR_DEVICE_LOST, the command buffer's `GpuHang`) in 7 of 90 tests over five
|
||||
# runs, no less often under a 28 GiB commit limit (5 of 54) than under the tests' 20 GiB (2 of 36),
|
||||
# and the longest test beside them, `a_cpu_reset_of_a_range_leaves_its_commands_fresh`, lost its
|
||||
# own device in 4 of the 5 runs, once with no loss of theirs; no display reset (System event 4101)
|
||||
# was logged. Without the other tests beside them they passed 18 of 18, and the new runtime's path
|
||||
# for the same passes (`on_rt`, feature `rt`) passed 117 of 117 beside the same tests, which passed
|
||||
# (m3-max-55538, 55689 to 55733, 2026-11-19; docs/lessons.md, "Tools and worktrees").
|
||||
[[profile.default.overrides]]
|
||||
platform = 'cfg(windows)'
|
||||
filter = 'binary_id(reims-vgpu-vulkan) & test(/^gpu::encode_render::tests::many_passes::many_passes_/)'
|
||||
threads-required = "num-test-threads"
|
||||
|
||||
# The NVIDIA hosts' legs (`--profile nvidia`, AGENTS.md "The video crates' checks"): at most three
|
||||
# tests that make a Vulkan device at a time, the keep-awake's exit test, whose 8 children each
|
||||
# make one, taking all three. Each test process makes a device of its own, up to 16 at once where
|
||||
# tests that make a Vulkan device at a time. Each test process makes a device of its own, up to 16 at once where
|
||||
# a QEMU makes one, and NVIDIA's driver holds what each live device takes. On an RTX 2080 behind a
|
||||
# Thunderbolt 3 link, whose BAR1 is 256 MiB (no Resizable BAR), each device maps 67 MiB of it
|
||||
# (metal2vulkan's first 64 MiB block of write-combined memory), and a `vkCreateDevice` made while
|
||||
@@ -144,26 +64,14 @@ filter = '''
|
||||
| test(=graphics::decode::surface_pages::costs::surface_view_costs_vulkan)
|
||||
| test(=graphics::decode::surface_pages::costs::pages_take_costs_vulkan)
|
||||
| test(=graphics::decode::surface_pages::costs::large_take_costs_vulkan)
|
||||
| test(=graphics::decode::icb_slots_cost::on_vulkan_icb_slots_cost)
|
||||
| test(=graphics::decode::handler_cost::on_vulkan_handler_cost)
|
||||
| test(=graphics::decode::close_cost::on_vulkan_close_cost)
|
||||
| test(=graphics::decode::composite_cost::on_vulkan_composite_cost)
|
||||
| test(=graphics::decode::composite_cost::on_rt_composite_cost)
|
||||
| test(=graphics::decode::dispatch_cost::on_vulkan_dispatch_cost)
|
||||
| test(=graphics::decode::dispatch_cost::on_rt_dispatch_cost)
|
||||
| test(=graphics::decode::draw_cost::on_vulkan_draw_cost)))
|
||||
| (binary_id(reims-vgpu-vulkan) & (
|
||||
test(=os::linux::host_ram::tests::slab_heap_costs)
|
||||
| test(=os::linux::host_ram::tests::slab_nocopy_costs)))
|
||||
| test(=graphics::decode::draw_cost::on_rt_draw_cost)))
|
||||
'''
|
||||
test-group = "@global"
|
||||
|
||||
[[profile.nvidia.overrides]]
|
||||
platform = 'cfg(target_os = "linux")'
|
||||
filter = 'binary_id(reims-vgpu-vulkan) & test(=awake::tests::an_exit_amid_touches_ends_with_its_status)'
|
||||
test-group = "vulkan-devices"
|
||||
threads-required = 3
|
||||
|
||||
[[profile.nvidia.overrides]]
|
||||
platform = 'cfg(target_os = "linux")'
|
||||
filter = '''
|
||||
|
||||
Generated
-13
@@ -270,17 +270,6 @@ dependencies = [
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "metal2vulkan-runtime"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"ash",
|
||||
"libc",
|
||||
"metal2vulkan",
|
||||
"sha2 0.11.1",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "objc2"
|
||||
version = "0.6.4"
|
||||
@@ -455,7 +444,6 @@ dependencies = [
|
||||
"libc",
|
||||
"log",
|
||||
"metal2vulkan-rt",
|
||||
"metal2vulkan-runtime",
|
||||
"objc2",
|
||||
"objc2-foundation",
|
||||
"objc2-metal",
|
||||
@@ -525,7 +513,6 @@ dependencies = [
|
||||
"mach2",
|
||||
"metal2vulkan",
|
||||
"metal2vulkan-rt",
|
||||
"metal2vulkan-runtime",
|
||||
"objc2",
|
||||
"objc2-foundation",
|
||||
"objc2-metal",
|
||||
|
||||
+5
-6
@@ -31,13 +31,12 @@ reims-vgpu-graphics = { path = "crates/reims-vgpu-graphics" }
|
||||
# `reims-vgpu`), and, on Linux, VA-API through libva and NVDEC through CUDA, their libraries
|
||||
# loaded at run time (`graphics::vaapi` and `graphics::nvidia` of `reims-vgpu`).
|
||||
reims-vgpu-video = { path = "crates/reims-vgpu-video" }
|
||||
# The Vulkan platform's runtime (architecture D1): a Metal-shaped API on Vulkan, from
|
||||
# metal2vulkan's public repository at the commit all three name.
|
||||
metal2vulkan-runtime = { git = "https://github.com/steelbrain/metal2vulkan", rev = "953d696ecbfbebc3d3f6728c273207d773fbf8df" }
|
||||
# Its translator, for the Metal enums and descriptor values the runtime's calls take.
|
||||
# metal2vulkan's Metal types, for the Metal enums and descriptor values the runtime's calls take,
|
||||
# from metal2vulkan's public repository at the commit both name.
|
||||
metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "953d696ecbfbebc3d3f6728c273207d773fbf8df" }
|
||||
# The runtime that replaces it at the cutover, metal2vulkan-rt: reims's side of its seam
|
||||
# (reims-vgpu-vulkan's `seam`, reims-vgpu's `pool::rt_blocks`), which only tests reach until then.
|
||||
# The Vulkan platform's runtime (architecture D1), metal2vulkan-rt: a Metal-shaped API on Vulkan,
|
||||
# one path for every device, under reims-vgpu-vulkan's `rt_platform` and `seam` and reims-vgpu's
|
||||
# `pool::rt_blocks`.
|
||||
metal2vulkan-rt = { git = "https://github.com/steelbrain/metal2vulkan", rev = "953d696ecbfbebc3d3f6728c273207d773fbf8df" }
|
||||
# The hashes of the Vulkan platform's metallib sources (reims-vgpu-vulkan/build.rs).
|
||||
sha2 = "0.10.9"
|
||||
|
||||
@@ -14,23 +14,20 @@ license.workspace = true
|
||||
crate-type = ["cdylib", "staticlib", "rlib"]
|
||||
|
||||
[features]
|
||||
default = ["macos-sdl", "rt"]
|
||||
default = ["macos-sdl"]
|
||||
# SDL3's window on macOS (`reims-vgpu`'s `macos-sdl`), on by default: `--no-default-features`
|
||||
# builds the macOS library without SDL, its windows AppKit's alone.
|
||||
macos-sdl = ["reims-vgpu/macos-sdl"]
|
||||
# Kept for the builds that name it (`--features vulkan`): every handle is made on `VulkanPlatform`
|
||||
# Kept for the builds that name it (`--features vulkan`): every handle is made on `RtPlatform`
|
||||
# with or without it (`Plat`, `lib.rs`).
|
||||
vulkan = ["reims-vgpu/vulkan"]
|
||||
# Every handle made on the platform over metal2vulkan-rt (`reims-vgpu`'s `rt`), on by default: the
|
||||
# library's platform. The old platform builds only without it, and goes with its code.
|
||||
rt = ["reims-vgpu/rt"]
|
||||
|
||||
[dependencies]
|
||||
reims-vgpu.workspace = true
|
||||
# The graphics device's wire constants, which the C API's PCI constants are checked against.
|
||||
reims-vgpu-graphics.workspace = true
|
||||
# The death of a NULL handle, and the mark of the library's threads (the unit tests' testkit
|
||||
# platform stands where VulkanPlatform stands in the product).
|
||||
# platform stands where RtPlatform stands in the product).
|
||||
reims-vgpu-vulkan.workspace = true
|
||||
# A refusal of a memory map's files.
|
||||
log.workspace = true
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -51,8 +51,7 @@ pub use status::RvgStatus;
|
||||
#[global_allocator]
|
||||
static ALLOCATOR: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
|
||||
|
||||
/// The platform every handle is made on: the platform over metal2vulkan-rt under the `rt` feature,
|
||||
/// on by default, or without it the old platform over metal2vulkan's runtime (architecture 2.2)
|
||||
/// The platform every handle is made on: the platform over metal2vulkan-rt (architecture 2.2)
|
||||
/// (`reims_vgpu::DefaultPlatform`).
|
||||
#[cfg(not(test))]
|
||||
pub(crate) type Plat = reims_vgpu::DefaultPlatform;
|
||||
|
||||
@@ -106,13 +106,8 @@ fn c_harness_passes() {
|
||||
String::from_utf8_lossy(&out.stderr)
|
||||
);
|
||||
assert!(stdout.contains("harness: ok"), "{stdout}");
|
||||
let answer = if cfg!(feature = "rt") {
|
||||
"true"
|
||||
} else {
|
||||
"false"
|
||||
};
|
||||
// By lines, which end in "\r\n" where the harness, a C program, writes its stdout on Windows.
|
||||
let answered = format!("harness: quiesce answered {answer}");
|
||||
let answered = "harness: quiesce answered true";
|
||||
assert!(stdout.lines().any(|line| line == answered), "{stdout}");
|
||||
}
|
||||
|
||||
|
||||
@@ -4,22 +4,15 @@
|
||||
//! `reims-vgpu`'s decoder writes them into its `CB_COMPLETE` (`graphics/decode/cmdbuf.rs`).
|
||||
//!
|
||||
//! **Which clock the platform's times count** is [`PLATFORM`]:
|
||||
//! - metal2vulkan's runtime, which the library runs today (`metal2vulkan-runtime`), counts
|
||||
//! `CLOCK_MONOTONIC_RAW` on Linux and the performance counter on Windows (**read**: its
|
||||
//! `gpu_time.rs`, `BASE`, at the commit the workspace pins), the device's own clocks, so
|
||||
//! [`PLATFORM`] is [`Domain::Device`] and the times pass unchanged: what the guest sees is
|
||||
//! what it saw before this module. On macOS it counts `CLOCK_UPTIME_RAW`, which stops while
|
||||
//! the Mac sleeps, where the device's `CLOCK_MONOTONIC_RAW` does not, so there the two differ by
|
||||
//! the time the host slept since it booted. The times pass unchanged there too, as they did
|
||||
//! before this module; the guest reads only a run's length (`gpu_end_ns - gpu_start_ns`), which
|
||||
//! that gap leaves exact.
|
||||
//! - metal2vulkan's new runtime (`metal2vulkan-rt`) counts `CLOCK_MONOTONIC` on Linux and the
|
||||
//! - [`PLATFORM`] is [`Domain::Device`]: the times pass unchanged. The guest reads only a run's
|
||||
//! length (`gpu_end_ns - gpu_start_ns`), which an offset between the clocks leaves as it is.
|
||||
//! - metal2vulkan's runtime (`metal2vulkan-rt`) counts `CLOCK_MONOTONIC` on Linux and the
|
||||
//! other Unix systems but macOS, `CLOCK_MONOTONIC_RAW` on macOS and the performance counter on
|
||||
//! Windows (**read**: its `times.rs`, `host_time` and `HOST_DOMAIN`). metal2vulkan's ruling of
|
||||
//! 2026-11-18 keeps Linux on `CLOCK_MONOTONIC`, as lavapipe calibrates its GPU clock against no
|
||||
//! `CLOCK_MONOTONIC_RAW`. At the cutover [`PLATFORM`] is `Domain::Monotonic` on Linux, and
|
||||
//! stays [`Domain::Device`] on macOS and Windows.
|
||||
//! - Should the new runtime count `CLOCK_MONOTONIC_RAW` on Linux too (once lavapipe calibrates
|
||||
//! `CLOCK_MONOTONIC_RAW`. So on Linux [`PLATFORM`] is to be `Domain::Monotonic`, and on macOS
|
||||
//! and Windows it stays [`Domain::Device`].
|
||||
//! - Should the runtime count `CLOCK_MONOTONIC_RAW` on Linux too (once lavapipe calibrates
|
||||
//! it), every OS's times are the device's, and this module goes, with its one call.
|
||||
//!
|
||||
//! **A paired read, fresh at each conversion** (`pair.rs`): the platform's clock, the device's,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "reims-vgpu-vulkan"
|
||||
description = "The library's platform: core, what the graphics device and its platform share, and the Platform implementation over metal2vulkan-runtime, on Vulkan"
|
||||
description = "The library's platform: core, what the graphics device and its platform share, and the Platform implementation over metal2vulkan-rt, on Vulkan"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
@@ -8,13 +8,8 @@ publish.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[features]
|
||||
default = ["rt"]
|
||||
# core::testkit and testkit::capture outside this crate's own unit tests (architecture 13.2).
|
||||
testkit = ["dep:lzma-rs"]
|
||||
# The library's platform over metal2vulkan-rt (`rt_platform`, `RtPlatform`), which reims-vgpu's
|
||||
# `rt` makes its `DefaultPlatform`, on by default: the library's platform. Without it nothing of
|
||||
# `rt_platform` is built; the old platform goes with its code.
|
||||
rt = []
|
||||
|
||||
[dependencies]
|
||||
# core (`core`): its locks (`core::sync`), and the guest's physical ranges as bytes (`core::host`).
|
||||
@@ -22,10 +17,9 @@ parking_lot.workspace = true
|
||||
zerocopy.workspace = true
|
||||
# core's testkit::metal_answers: the recorded answers too long for text, in xz files.
|
||||
lzma-rs = { workspace = true, optional = true }
|
||||
metal2vulkan-runtime.workspace = true
|
||||
# metal2vulkan's Metal types, for the enums and descriptor values the runtime's calls take.
|
||||
metal2vulkan.workspace = true
|
||||
# The runtime that replaces metal2vulkan-runtime at the cutover: our side of its seam (`seam`),
|
||||
# which only tests reach until then.
|
||||
# The library's runtime (`rt_platform`, `RtPlatform`), and our side of its seam (`seam`).
|
||||
metal2vulkan-rt.workspace = true
|
||||
# The debug lines that time the runtime's compiles (gpu/timing.rs), through core's logger.
|
||||
log.workspace = true
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,419 +0,0 @@
|
||||
//! Census mode, a diagnostic for inventory runs, never set in a product run: on Linux, with
|
||||
//! `REIMS_VGPU_CENSUS_DIR=<dir>`, a degradation of [`DIES`](super::DIES) is recorded and relayed
|
||||
//! where it would die, so one sweep of guests finds every kind the host's device announces,
|
||||
//! instead of one death per boot. Without it, every death stays a death. On macOS the variable is
|
||||
//! ignored, a warning saying so once ([`ON_THIS_OS`]): there the device runs on Metal (MoltenVK),
|
||||
//! and where a run dies is the contract's, so no variable moves it.
|
||||
//!
|
||||
//! A run in census mode is not faithful to Metal: it goes on where Metal's answer is not met. So
|
||||
//! the mode says so on stderr, and in the log as an error, once per process as it turns on, which
|
||||
//! is as the process adopts its first device ([`super::native::device_made`] reads the variable),
|
||||
//! before any degradation ([`announce_on`]).
|
||||
//!
|
||||
//! Each kind is recorded with how many times it was announced, the first object it was announced
|
||||
//! for, and the selectors of the calls it was announced inside, each with its count (a notice
|
||||
//! outside every call is counted under `(outside every call)`); a kind a native device relays
|
||||
//! ([`super::native`]) is recorded too, without selectors. The kind's first occurrence relays the
|
||||
//! runtime's line, as a relayed kind's.
|
||||
//!
|
||||
//! The record is written as JSON to `<dir>/census-<pid>.json` (through a temporary file renamed
|
||||
//! over it), by the library's thread `reims-vgpu.census`: when a kind or a selector is first met,
|
||||
//! and every 30 seconds while counts change; and by an exit handler (`atexit`, registered as the
|
||||
//! writer starts, at the first record) as the process exits. A failed write is logged once and
|
||||
//! tried again at the next.
|
||||
//!
|
||||
//! The exit's write is skipped where the runtime's exit guard ends the process at once. On Linux
|
||||
//! with the GNU C library, an exit while the Vulkan driver runs the runtime's work (another
|
||||
//! thread's call, a pipeline's making, a CPU device's commands) ends in the guard's exit handler,
|
||||
//! with `_exit`, and one line on stderr saying so; the exit handlers registered before the guard's
|
||||
//! last registration do not run. The runtime registers that handler again after later calls of its
|
||||
//! own, so where one of those came after this handler's registration, the census is not written
|
||||
//! at the exit. The file then holds the writer's last write: its counts up to 30 seconds old, and
|
||||
//! without a kind or a selector first met in the moments before the exit.
|
||||
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::{Once, OnceLock};
|
||||
use std::time::Duration;
|
||||
|
||||
use crate::core::platform::os::{Clock as _, Deadline};
|
||||
use crate::core::sync::{Condvar, Mutex};
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
use super::native::{self, Placement};
|
||||
|
||||
/// The census's directory.
|
||||
const CENSUS_VAR: &str = "REIMS_VGPU_CENSUS_DIR";
|
||||
|
||||
/// The longest time between two writes while counts change.
|
||||
const PERIOD: Duration = Duration::from_secs(30);
|
||||
|
||||
/// The selector a notice outside every call is counted under.
|
||||
pub const OUTSIDE: &str = "(outside every call)";
|
||||
|
||||
/// Whether census mode can be on in this build: on Linux alone (module docs).
|
||||
const ON_THIS_OS: bool = cfg!(target_os = "linux");
|
||||
|
||||
/// The census's directory, read once per process ([`chosen`]).
|
||||
fn dir() -> Option<&'static Path> {
|
||||
static DIR: OnceLock<Option<PathBuf>> = OnceLock::new();
|
||||
DIR.get_or_init(|| chosen(std::env::var(CENSUS_VAR).ok()))
|
||||
.as_deref()
|
||||
}
|
||||
|
||||
/// The census's directory for `value`, the variable's: `None` (census off) where it is unset,
|
||||
/// empty or not UTF-8, and, with a warning, where census mode cannot be on ([`ON_THIS_OS`]).
|
||||
/// Census mode turning on says so on stderr ([`announce_on`]).
|
||||
fn chosen(value: Option<String>) -> Option<PathBuf> {
|
||||
let dir = value.filter(|d| !d.is_empty()).map(PathBuf::from)?;
|
||||
if !ON_THIS_OS {
|
||||
log::warn!("census: {CENSUS_VAR} is ignored on macOS, where every death stays a death");
|
||||
return None;
|
||||
}
|
||||
announce_on(&mut std::io::stderr(), &dir);
|
||||
Some(dir)
|
||||
}
|
||||
|
||||
/// Says on `w`, and in the log as an error, that census mode is on, recording into `dir`: every
|
||||
/// degradation that dies elsewhere is relayed and counted, so the run is not faithful to Metal.
|
||||
fn announce_on(w: &mut impl std::io::Write, dir: &Path) {
|
||||
let line = format!(
|
||||
"reims-vgpu: census mode is on ({CENSUS_VAR}={}): every degradation that would end the \
|
||||
process is relayed and counted instead, so this run is NOT faithful to Metal; never use \
|
||||
it for a product run",
|
||||
dir.display()
|
||||
);
|
||||
log::error!("{line}");
|
||||
// One write, so the line never interleaves with another thread's.
|
||||
let _ = w.write_all(format!("{line}\n").as_bytes());
|
||||
}
|
||||
|
||||
/// Whether census mode is on.
|
||||
pub fn on() -> bool {
|
||||
dir().is_some()
|
||||
}
|
||||
|
||||
/// One kind's record.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
struct Entry {
|
||||
kind: rt::Degradation,
|
||||
/// Whether a native device relays it ([`native::NATIVE_RELAYED`]), rather than a death.
|
||||
relayed_natively: bool,
|
||||
count: u64,
|
||||
first_object: String,
|
||||
/// Each selector it was announced inside, in the order first met, with its count.
|
||||
selectors: Vec<(String, u64)>,
|
||||
}
|
||||
|
||||
/// The process's census.
|
||||
#[derive(Debug, Default)]
|
||||
struct Census {
|
||||
entries: Vec<Entry>,
|
||||
/// Whether it changed since its last write.
|
||||
dirty: bool,
|
||||
}
|
||||
|
||||
impl Census {
|
||||
/// An occurrence of `kind` for `object`: whether it is the kind's first.
|
||||
fn record(&mut self, kind: rt::Degradation, object: &str, relayed_natively: bool) -> bool {
|
||||
self.dirty = true;
|
||||
if let Some(e) = self.entries.iter_mut().find(|e| e.kind == kind) {
|
||||
e.count = e.count.saturating_add(1);
|
||||
return false;
|
||||
}
|
||||
self.entries.push(Entry {
|
||||
kind,
|
||||
relayed_natively,
|
||||
count: 1,
|
||||
first_object: object.to_owned(),
|
||||
selectors: Vec::new(),
|
||||
});
|
||||
true
|
||||
}
|
||||
|
||||
/// `kind`, recorded, announced inside a call standing for `sel`: whether `sel` is new for it.
|
||||
fn selector(&mut self, kind: rt::Degradation, sel: &str) -> bool {
|
||||
self.dirty = true;
|
||||
let Some(e) = self.entries.iter_mut().find(|e| e.kind == kind) else {
|
||||
return false;
|
||||
};
|
||||
if let Some((_, n)) = e.selectors.iter_mut().find(|(s, _)| s == sel) {
|
||||
*n = n.saturating_add(1);
|
||||
return false;
|
||||
}
|
||||
e.selectors.push((sel.to_owned(), 1));
|
||||
true
|
||||
}
|
||||
|
||||
/// The census as JSON, for process `pid` under `placement`.
|
||||
fn json(&self, pid: u32, placement: Placement) -> String {
|
||||
let placement = match placement {
|
||||
Placement::OnMetal => "on-metal",
|
||||
Placement::Native => "native",
|
||||
};
|
||||
let mut out = format!("{{\"pid\": {pid}, \"placement\": \"{placement}\", \"kinds\": [");
|
||||
for (i, e) in self.entries.iter().enumerate() {
|
||||
out.push_str(if i == 0 { "\n " } else { ",\n " });
|
||||
out.push_str(&format!(
|
||||
"{{\"kind\": {}, \"name\": {}, \"placement\": \"{}\", \"count\": {}, \
|
||||
\"first_object\": {}, \"selectors\": [",
|
||||
string(e.kind.code()),
|
||||
string(&format!("{:?}", e.kind)),
|
||||
if e.relayed_natively {
|
||||
"relayed"
|
||||
} else {
|
||||
"dies"
|
||||
},
|
||||
e.count,
|
||||
string(&e.first_object),
|
||||
));
|
||||
for (j, (sel, n)) in e.selectors.iter().enumerate() {
|
||||
if j > 0 {
|
||||
out.push_str(", ");
|
||||
}
|
||||
out.push_str(&format!(
|
||||
"{{\"selector\": {}, \"count\": {n}}}",
|
||||
string(sel)
|
||||
));
|
||||
}
|
||||
out.push_str("]}");
|
||||
}
|
||||
out.push_str(if self.entries.is_empty() {
|
||||
"]}\n"
|
||||
} else {
|
||||
"\n]}\n"
|
||||
});
|
||||
out
|
||||
}
|
||||
}
|
||||
|
||||
/// `s` as a JSON string.
|
||||
fn string(s: &str) -> String {
|
||||
let mut out = String::with_capacity(s.len() + 2);
|
||||
out.push('"');
|
||||
for c in s.chars() {
|
||||
match c {
|
||||
'"' => out.push_str("\\\""),
|
||||
'\\' => out.push_str("\\\\"),
|
||||
'\n' => out.push_str("\\n"),
|
||||
'\r' => out.push_str("\\r"),
|
||||
'\t' => out.push_str("\\t"),
|
||||
c if u32::from(c) < 0x20 => out.push_str(&format!("\\u{:04x}", u32::from(c))),
|
||||
c => out.push(c),
|
||||
}
|
||||
}
|
||||
out.push('"');
|
||||
out
|
||||
}
|
||||
|
||||
/// The process's census.
|
||||
static CENSUS: Mutex<Census> = Mutex::new(Census {
|
||||
entries: Vec::new(),
|
||||
dirty: false,
|
||||
});
|
||||
|
||||
/// Whether the writer has a write to make now: a kind or a selector first met.
|
||||
static WAKE: Mutex<bool> = Mutex::new(false);
|
||||
/// Wakes the writer.
|
||||
static WAKE_CV: Condvar = Condvar::new();
|
||||
|
||||
/// An occurrence of a degradation of [`DIES`](super::DIES) for `object`, in census mode, or one
|
||||
/// a native device relays ([`native`]): recorded, and the writer started at the first. Whether it
|
||||
/// is the kind's first, which the caller relays. Does nothing, answering `false`, with census
|
||||
/// mode off.
|
||||
pub fn record(kind: rt::Degradation, object: &str, relayed_natively: bool) -> bool {
|
||||
let Some(dir) = dir() else {
|
||||
return false;
|
||||
};
|
||||
start(dir);
|
||||
let first = CENSUS.lock().record(kind, object, relayed_natively);
|
||||
if first {
|
||||
wake();
|
||||
}
|
||||
first
|
||||
}
|
||||
|
||||
/// `kind`, recorded, announced inside a call standing for `sel` ([`OUTSIDE`] for none).
|
||||
pub fn selector(kind: rt::Degradation, sel: &str) {
|
||||
if dir().is_none() {
|
||||
return;
|
||||
}
|
||||
if CENSUS.lock().selector(kind, sel) {
|
||||
wake();
|
||||
}
|
||||
}
|
||||
|
||||
/// Has the writer write now.
|
||||
fn wake() {
|
||||
*WAKE.lock() = true;
|
||||
WAKE_CV.notify_one();
|
||||
}
|
||||
|
||||
/// Starts the writer, and registers the write at exit, once per process.
|
||||
fn start(dir: &'static Path) {
|
||||
static STARTED: Once = Once::new();
|
||||
STARTED.call_once(|| {
|
||||
let made = std::thread::Builder::new()
|
||||
.name("reims-vgpu.census".into())
|
||||
.spawn(move || write_forever(dir));
|
||||
if let Err(e) = made {
|
||||
log::warn!("census: no writer thread: {e}; the census is written at exit alone");
|
||||
}
|
||||
// SAFETY: `at_exit` is a plain function that never unwinds (`write_if_dirty` does not
|
||||
// panic), registered once.
|
||||
if unsafe { atexit(at_exit) } != 0 {
|
||||
log::warn!("census: atexit refused: the census is not written at exit");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
unsafe extern "C" {
|
||||
/// The C library's `atexit`.
|
||||
fn atexit(f: extern "C" fn()) -> i32;
|
||||
}
|
||||
|
||||
/// The write at the process's exit, where the exit runs it (the module docs).
|
||||
extern "C" fn at_exit() {
|
||||
if let Some(dir) = dir() {
|
||||
write_if_dirty(dir);
|
||||
}
|
||||
}
|
||||
|
||||
/// The writer: each time it is woken, and every [`PERIOD`], the census if it changed.
|
||||
fn write_forever(dir: &Path) -> ! {
|
||||
let clock = crate::os::OsClock::new();
|
||||
loop {
|
||||
{
|
||||
let mut wake = WAKE.lock();
|
||||
if !*wake {
|
||||
let deadline = Deadline::Mono(clock.now_mono().saturating_add(PERIOD));
|
||||
let _ = clock.wait_until(&WAKE_CV, &mut wake, deadline);
|
||||
}
|
||||
*wake = false;
|
||||
}
|
||||
write_if_dirty(dir);
|
||||
}
|
||||
}
|
||||
|
||||
/// Writes the census into `dir` if it changed since its last write.
|
||||
fn write_if_dirty(dir: &Path) {
|
||||
let json = {
|
||||
let mut census = CENSUS.lock();
|
||||
if !census.dirty {
|
||||
return;
|
||||
}
|
||||
census.dirty = false;
|
||||
census.json(std::process::id(), native::placement())
|
||||
};
|
||||
if let Err(e) = write(dir, &json) {
|
||||
CENSUS.lock().dirty = true;
|
||||
static SAID: Once = Once::new();
|
||||
SAID.call_once(|| log::warn!("census: cannot write into {}: {e}", dir.display()));
|
||||
}
|
||||
}
|
||||
|
||||
/// `json` into `dir`'s file for this process, through a temporary file renamed over it.
|
||||
fn write(dir: &Path, json: &str) -> std::io::Result<()> {
|
||||
std::fs::create_dir_all(dir)?;
|
||||
let pid = std::process::id();
|
||||
let file = dir.join(format!("census-{pid}.json"));
|
||||
let temporary = dir.join(format!("census-{pid}.json.tmp"));
|
||||
std::fs::write(&temporary, json)?;
|
||||
std::fs::rename(&temporary, &file)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
/// A kind's first occurrence is recorded with its object, later ones counted; a selector is
|
||||
/// counted under the kind, each in the order first met
|
||||
#[test]
|
||||
fn a_kind_is_recorded_once_and_counted() {
|
||||
let mut c = Census::default();
|
||||
let kind = rt::Degradation::ReleasedCommandState;
|
||||
assert!(c.record(kind, "command buffer 3", false));
|
||||
assert!(!c.record(kind, "command buffer 4", false));
|
||||
assert!(c.selector(kind, "commit"));
|
||||
assert!(!c.selector(kind, "commit"));
|
||||
assert!(c.selector(kind, OUTSIDE));
|
||||
assert!(!c.selector(rt::Degradation::DeviceInterpolation, "commit"));
|
||||
assert!(c.dirty);
|
||||
assert_eq!(
|
||||
c.entries,
|
||||
[Entry {
|
||||
kind,
|
||||
relayed_natively: false,
|
||||
count: 2,
|
||||
first_object: "command buffer 3".to_owned(),
|
||||
selectors: vec![("commit".to_owned(), 2), (OUTSIDE.to_owned(), 1)],
|
||||
}]
|
||||
);
|
||||
}
|
||||
|
||||
/// The census as JSON: the process, its placement, and each kind with its counts, strings
|
||||
/// escaped
|
||||
#[test]
|
||||
fn the_census_is_json() {
|
||||
let mut c = Census::default();
|
||||
assert_eq!(
|
||||
c.json(7, Placement::OnMetal),
|
||||
"{\"pid\": 7, \"placement\": \"on-metal\", \"kinds\": []}\n"
|
||||
);
|
||||
let interpolation = rt::Degradation::DeviceInterpolation;
|
||||
c.record(interpolation, "pipeline \"blit\"\n", true);
|
||||
c.record(interpolation, "pipeline 2", true);
|
||||
let released = rt::Degradation::ReleasedCommandState;
|
||||
c.record(released, "a\\b", false);
|
||||
c.selector(released, "commit");
|
||||
c.selector(released, OUTSIDE);
|
||||
let want = format!(
|
||||
"{{\"pid\": 9, \"placement\": \"native\", \"kinds\": [\n \
|
||||
{{\"kind\": \"{}\", \"name\": \"DeviceInterpolation\", \"placement\": \"relayed\", \
|
||||
\"count\": 2, \"first_object\": \"pipeline \\\"blit\\\"\\n\", \"selectors\": []}},\n \
|
||||
{{\"kind\": \"{}\", \"name\": \"ReleasedCommandState\", \"placement\": \"dies\", \
|
||||
\"count\": 1, \"first_object\": \"a\\\\b\", \"selectors\": [{{\"selector\": \
|
||||
\"commit\", \"count\": 1}}, {{\"selector\": \"(outside every call)\", \"count\": 1}}]}}\n\
|
||||
]}}\n",
|
||||
interpolation.code(),
|
||||
released.code()
|
||||
);
|
||||
assert_eq!(c.json(9, Placement::Native), want);
|
||||
assert_eq!(string("\u{1}"), "\"\\u0001\"");
|
||||
}
|
||||
|
||||
/// The variable turns census mode on on Linux alone; unset or empty, it is off everywhere
|
||||
#[test]
|
||||
fn census_mode_is_linux_s_alone() {
|
||||
let linux = cfg!(target_os = "linux");
|
||||
assert_eq!(
|
||||
chosen(Some("/census".to_owned())),
|
||||
linux.then(|| PathBuf::from("/census"))
|
||||
);
|
||||
assert_eq!(chosen(Some(String::new())), None);
|
||||
assert_eq!(chosen(None), None);
|
||||
}
|
||||
|
||||
/// Census mode turning on says, in one line, that the run is not faithful
|
||||
#[test]
|
||||
fn census_mode_says_the_run_is_not_faithful() {
|
||||
let mut w = Vec::new();
|
||||
announce_on(&mut w, Path::new("/census"));
|
||||
let line = String::from_utf8(w).unwrap();
|
||||
assert_eq!(line.lines().count(), 1, "{line}");
|
||||
assert!(line.contains("REIMS_VGPU_CENSUS_DIR=/census"), "{line}");
|
||||
assert!(line.contains("NOT faithful to Metal"), "{line}");
|
||||
}
|
||||
|
||||
/// The file is written whole into the directory, made where missing, and named by the pid
|
||||
#[test]
|
||||
fn the_file_is_written_by_pid() {
|
||||
let dir = std::env::temp_dir().join(format!("rvg-census-test-{}", std::process::id()));
|
||||
let _ = std::fs::remove_dir_all(&dir);
|
||||
write(&dir.join("sub"), "{}\n").unwrap();
|
||||
let file = dir
|
||||
.join("sub")
|
||||
.join(format!("census-{}.json", std::process::id()));
|
||||
assert_eq!(std::fs::read_to_string(&file).unwrap(), "{}\n");
|
||||
let _ = std::fs::remove_dir_all(&dir);
|
||||
}
|
||||
}
|
||||
@@ -1,684 +0,0 @@
|
||||
//! Where a degradation of [`DIES`](super::DIES) is placed on a device that does not run on Metal.
|
||||
//!
|
||||
//! **The device class.** A device the runtime makes over MoltenVK runs on Metal: the kinds of
|
||||
//! [`DIES`](super::DIES), [`HEARD`](super::HEARD) and `RELAYED_ONCE` were placed on it, measured
|
||||
//! against the Mac GPUs, and stay as they are there. On macOS every device runs on Metal, whatever
|
||||
//! its driver ([`DRIVERS_RUN_ON_METAL`]): the runtime loads Vulkan through the system's loader
|
||||
//! there, which may list Mesa's KosmicKrisp, Vulkan on Metal too, ahead of MoltenVK, and where a
|
||||
//! run dies on macOS is the contract's. Elsewhere any driver other than MoltenVK is a native
|
||||
//! device: there a kind of [`NATIVE_RELAYED`] is relayed, counted, in place of dying. The class
|
||||
//! is read when a device is adopted ([`device_made`], from the runtime's
|
||||
//! `DeviceDescription::driver_id`, the fact the runtime itself tells MoltenVK by), and the
|
||||
//! process's placement is native only while every device it adopted is native: before its first
|
||||
//! device, and once any device runs on Metal or names no driver, every kind of
|
||||
//! [`DIES`](super::DIES) dies, as before. The runtime's notices name no device, so the placement
|
||||
//! is the process's.
|
||||
//!
|
||||
//! **A native relay** writes the runtime's line for the kind's first occurrence, as a relayed
|
||||
//! kind's, and counts each occurrence the runtime announces ([`counts`]): every occurrence of
|
||||
//! each kind of [`DIES`](super::DIES) in strict and census mode, and elsewhere its first on each
|
||||
//! device (`announce_each`, `crate::platform`'s `announced_each`). Each kind stays on the list of
|
||||
//! differences to bring to Metal's answer; the count is how often a run met it, as announced.
|
||||
|
||||
use std::sync::atomic::{AtomicU8, AtomicU64, Ordering};
|
||||
|
||||
use metal2vulkan::vk::DriverId;
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
/// One kind of [`DIES`](super::DIES) a native device relays, and why.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct NativeRelay {
|
||||
/// The kind.
|
||||
pub kind: rt::Degradation,
|
||||
/// Why it is relayed rather than a death on a native device.
|
||||
pub ground: &'static str,
|
||||
}
|
||||
|
||||
/// The kinds of [`DIES`](super::DIES) a native device relays, each with its ground.
|
||||
///
|
||||
/// The first eight are relayed on the rule for native devices: as close to the Mac GPUs as the
|
||||
/// hardware allows; a difference the hardware itself forces is logged as a typed
|
||||
/// degradation, relayed once per kind and counted, with no interpreter-level fallback for
|
||||
/// differences in the tenth decimal. Each is here on a fact of the device that its ground states:
|
||||
/// the device's own interpolation, level arithmetic, reduction order, float controls, evaluation
|
||||
/// position, reconvergence, memory granularity or line rasterizer's tie. The rest are the device's
|
||||
/// maths and sampling, as a class of their own (below). "Not built", "not measured" and "a
|
||||
/// guest or a suite case reaches it" are no grounds: a kind neither covers, whose exact form the
|
||||
/// hardware allows or whose rule on Metal is not read, dies here as on MoltenVK, at the same op
|
||||
/// and naming the kind, until the runtime builds that form or it is measured equal to Metal's
|
||||
/// answer. Each relayed kind stays a difference to bring to Metal's answer, its magnitude for the
|
||||
/// runtime team to confirm; one found visible is fixed toward Metal's answer, not relayed.
|
||||
///
|
||||
/// `DeviceInterpolation` and `GradFromBias` differ in texel values
|
||||
/// alone, never in control flow, memory addresses or numbering. Their counts are a census-mode run
|
||||
/// of 2026-10-10 on an RTX 5080 Laptop GPU (macOS 13, 15 and
|
||||
/// 26 booted to an idle desktop, and macOS 14 and 12 through the built-in app sweep, with no
|
||||
/// difference seen on screen): how often a run met each, not why it is relayed. A heap texture's
|
||||
/// size the device's memory granularity
|
||||
/// decides (`HeapTextureLargerThanMetal`) differs in the size query's answer, which reaches the
|
||||
/// guest: a heap sized by it is larger, so the buffers and heaps made after it can lie at other
|
||||
/// gpuAddresses than on Metal. It never differs in texels, nor in the range of Metal's space a
|
||||
/// texture of its own memory takes.
|
||||
///
|
||||
/// Of those eight, the four after `HeapTextureLargerThanMetal` are the precision notes of a
|
||||
/// pipeline's stage whose arithmetic or ordering can give other bits than Metal's, as the
|
||||
/// runtime's documentation of each says: a note whose difference is the device's rounding,
|
||||
/// evaluation position or reduction order, or the lanes its driver runs together after
|
||||
/// divergence, is logged, not a death. The eighth, `DeviceLineTies`, is the pixel the device's
|
||||
/// line rasterizer covers where a width-1 line runs through a vertex two pixels' diamonds share,
|
||||
/// which Vulkan leaves to the driver with no control over it: it differs in which pixels a line
|
||||
/// covers, never in control flow, memory addresses or numbering, and its only exact form is
|
||||
/// Metal's line rule run in the fragment function, an interpreter's, as a depth test run there
|
||||
/// is for `DepthDenormals`.
|
||||
///
|
||||
/// The rest are relayed as the class of the device's own maths and sampling: on a GPU that is not
|
||||
/// Apple's, the device's maths and sampling are the default, their bounds recorded and announced,
|
||||
/// and Metal's exact form is opt-in, which the runtime builds. Each is the device's arithmetic, its
|
||||
/// maths or its sampling and filtering, and its ground states its bound where one is measured,
|
||||
/// else that the runtime records it: `F16FmaDoubleRounding` and `F16IntConvDoubleRounding`,
|
||||
/// `DeviceArithmetic`, `DeviceDenormals` and `DeviceNanEncoding` (maths, the last a NaN's bits,
|
||||
/// whose native form the runtime takes and builds no exact form beside); `FloatSampleFilter`,
|
||||
/// `HalfSampleFilter`, `CubeGradientFootprint`, `CompressedTexelDecode`, `ViewBaseTexelOffset`,
|
||||
/// `SrgbTexelDecode`, `BicubicFilterArithmetic`, `HalfTexelConversion` and `DeviceSampleLevel`
|
||||
/// (sampling). Then the
|
||||
/// notes of the device's own answers off Apple's GPUs, which the runtime gives in place of Metal's,
|
||||
/// each with the bound the runtime records: `NativeTranscendentals`, `NativeDivision`, `NativeFma`,
|
||||
/// `NativeNanEncoding`, `NativeMinMax`, `NativeDot`, `NativeMix`, `NativeHalfConversion` and
|
||||
/// `NativeHalfQuantize` (maths); `DeviceSampling`, `DeviceTexelConversion` and
|
||||
/// `DecodedTexelPrecision` (sampling); `DeviceRoundedResolve` (the device's rounding of a resolve's
|
||||
/// average); `DevicePackConversion` (its conversions of packed normalized values),
|
||||
/// `DeviceVertexConversion` (its vertex input's conversion of a normalized attribute),
|
||||
/// `DeviceAlphaCoverage` (its alpha to coverage), `NativeLogicOperation` (its logic operation on
|
||||
/// a 10-bit or signed normalized attachment's own codes) and `NativeFloat8` (its own 8-bit float,
|
||||
/// which a tensor's 8-bit float element widens through). A device that runs on Metal (MoltenVK) is
|
||||
/// an Apple GPU, where each still dies.
|
||||
///
|
||||
/// These die here, as on MoltenVK, as no class covers them: blending, storage, tessellation,
|
||||
/// depth, layout, the band's rasterization, a pass's tile store and when a command buffer is seen
|
||||
/// complete are neither maths nor sampling.
|
||||
/// - those whose exact form the hardware allows, built or not: `BlendedWriteRounding` (a blended
|
||||
/// float write to a half-float channel under `textureWriteRoundingMode` 2, whose exact form is
|
||||
/// the blend in the function under the pixel interlock) and `RotatedBlendRounding` (a blend
|
||||
/// into an `ARGB8Unorm` attachment in none of the forms measured to blend as Metal's, whose
|
||||
/// exact form is a measured one or the blend in the function), and `DeviceSubpixelSnap` (the
|
||||
/// band's corners, which the device's rasterizer snaps where Metal snaps a line's endpoints
|
||||
/// first, not a fact of the device: the band is the runtime's own, and its endpoints snapped to
|
||||
/// Metal's grid before it offsets them leave the rasterizer nothing to round, as the band's
|
||||
/// depth bias, `WideEdgeDepthBias`, and the device's own wide lines, `DeviceWideLines`, die
|
||||
/// here too);
|
||||
/// - `AnisotropicFilter`, Metal's anisotropic filter emulated by the device's samples at
|
||||
/// explicit levels: its level and its tap spacing past two taps
|
||||
/// are a model fitted to Metal's answers, not Metal's rule, and each tap is the device's own
|
||||
/// filter. Measured on `rgba8Unorm` alone, its linear filters lie within 0.68 of a code of an
|
||||
/// Apple M4's on an RTX 3090, but its nearest filters up to 24.5 codes off. The class of the
|
||||
/// device's maths and sampling does not name it;
|
||||
/// - `TessellationFactorScale`, whose rule on Metal is not read (whether Metal's fractional
|
||||
/// partitions take a scaled factor in `float` or rounded up to `half`): tessellation, not maths;
|
||||
/// - four precision notes no fact of the device decides. `TessellationFactorInstance` (the
|
||||
/// factors of a draw with a base instance past 0 read at an offset counted from it, where
|
||||
/// Metal's count is not read) and `Fp8Value` (an 8-bit float's integer conversion from the
|
||||
/// format's value, where Metal on an Apple M3 answers the carrier byte's integer) are other
|
||||
/// values, of another meaning, not other bits of the same arithmetic.
|
||||
/// `QuadsCountedBeforeDiscard` (a simdgroup operation other than a quad one before a discard,
|
||||
/// in a shape where Apple's compiler's placement of it is not known, whose lanes include the
|
||||
/// quads the discard drops) differs from Metal's where Apple's compiler moves the operation past
|
||||
/// the discard: where that compiler places it decides the answer, not the device. So does
|
||||
/// `UnmeasuredGroupSpeculation` (a quad or simdgroup operation in a branch arm of a shape no
|
||||
/// probe says Metal's backend speculates, kept over the AIR's lanes): where that backend
|
||||
/// speculates decides the answer;
|
||||
/// - `AttachmentReadInPlace`, a draw's access to an attachment's memory inside its render pass
|
||||
/// instance other than as an attachment, where the runtime serves no copy or snapshot: its
|
||||
/// exact form, the copy or snapshot a sampled slot's binding reads, the hardware allows.
|
||||
pub const NATIVE_RELAYED: [NativeRelay; 40] = [
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceInterpolation,
|
||||
ground: "a fragment function's interpolated input, on every device but MoltenVK, where \
|
||||
Metal interpolates (the runtime's note): Vulkan states no precision for \
|
||||
interpolation, and against an M3 Max under macOS 27.0.1, 31% to 45% of the \
|
||||
lanes RADV, ANV, lavapipe and NVIDIA's driver interpolated were Metal's bit for \
|
||||
bit, the rest up to 1.2e-4 apart on a Radeon 780M, 7.6e-5 on an Iris Xe, \
|
||||
1.5e-4 on an RTX 5080 and 3090, and 3e-4 on lavapipe, which snaps vertices \
|
||||
otherwise. Announced at the first draw of any interpolated fragment function, \
|
||||
so every guest's first present died of it",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::GradFromBias,
|
||||
ground: "a biased sample emulated with gradients: the device's level arithmetic and \
|
||||
`exp2` may pick another level or anisotropic footprint than Metal's (the \
|
||||
runtime's note). Census: 1220, 175 and 102 occurrences on macOS 13, 15 and 26",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::HeapTextureLargerThanMetal,
|
||||
ground: "a heap texture's size and alignment are the device's image's, coarser than \
|
||||
Metal's: NVIDIA's bufferImageGranularity is 1024 bytes, so a 4x4 `Depth32Float`, \
|
||||
`Depth16Unorm` or `Stencil8` texture answers 1024 bytes (0x400) at an alignment \
|
||||
of 1024, where Metal answers 128 (0x80) at 128 (the runtime's measurement). Each \
|
||||
texture keeps its texels, but the difference is not heap space alone: the size \
|
||||
query's answer itself reaches the guest. A guest that sizes a heap by it makes a \
|
||||
larger heap than on Metal, which takes a larger range of Metal's space where its \
|
||||
size crosses one of the space's 32-KiB steps, so the buffers and heaps made after \
|
||||
it sit at other gpuAddresses than on Metal, and the textures it places by the \
|
||||
answers lie at other offsets. A texture of its own memory takes a range of \
|
||||
Metal's space of the runtime's model of Metal's answer, Metal's",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::ReductionOrder,
|
||||
ground: "a float reduction associates its operands in the device's order, where Metal's \
|
||||
associates them in its own (the runtime's U3 note): a sum's last bits can \
|
||||
differ",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceSignedZeroInfNan,
|
||||
ground: "float operations whose signed zeros, infinities and NaNs Metal's compiler keeps \
|
||||
run without `SignedZeroInfNanPreserve`, which the device does not support at \
|
||||
their width (the runtime's U3 and D57 note): the device's compiler may answer \
|
||||
such an operand's result otherwise",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::MultisamplePosition,
|
||||
ground: "a multisampled pipeline's fragment function reads at pixel rate a value Metal \
|
||||
evaluates at the pixel's centre, which the device evaluates at a position \
|
||||
within the fragment Vulkan leaves to the implementation (the runtime's D212 \
|
||||
note): `[[position]]`'s z or w, a centre-sampled or centroid varying, \
|
||||
`[[point_coord]]` or `[[barycentric_coord]]`; or one that runs per sample \
|
||||
under sample shading reads one of them but a centre-sampled varying, which \
|
||||
Vulkan evaluates for its sample where Metal reads it as the pixel's; each \
|
||||
within its change over half the pixel's diagonal",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::ImplementationDefinedReconvergence,
|
||||
ground: "a stage that reads simdgroup state after divergent control flow, on a device \
|
||||
whose reconvergence is implementation-defined where Metal's is maximal: its \
|
||||
simdgroup operations there can see other lanes active than Metal's (the \
|
||||
runtime's note). A driver without `VK_KHR_shader_maximal_reconvergence` decides \
|
||||
which lanes run together after divergence, so other sets of lanes than Metal's \
|
||||
can be active together: a ballot or a sum can cover another set of lanes, and a \
|
||||
`simd_is_first` election can pick several lanes. A fragment stage with \
|
||||
simdgroup operations still dies, of `FragmentSimdgroupGrouping`, which the \
|
||||
runtime records on every driver but MoltenVK",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceLineTies,
|
||||
ground: "a draw of lines, or of a triangle's edges in fill mode `Lines`, by the device's \
|
||||
own lines at width 1, on a driver not measured to break Metal's tie (the \
|
||||
runtime's note, `DriverFact::LineTiesAreMetals`): a line through a vertex two \
|
||||
pixels' diamonds share exits neither diamond, and Vulkan's open diamond leaves \
|
||||
the pixel to the driver, with no control over it, where Metal covers the lower \
|
||||
one. Measured by the runtime: NVIDIA 615.71.09 on an RTX 5080 Laptop GPU covers \
|
||||
the other pixel (a strip's diagonal a row higher), and lavapipe (Mesa 26.2.4) \
|
||||
leaves out a strip's first pixel where it starts on such a vertex; RADV and ANV \
|
||||
are not measured. Only the line's rule run in the fragment function, an \
|
||||
interpreter's, is exact. Announced at every draw of lines at width 1 there, so \
|
||||
a strict run would die at its first",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::F16FmaDoubleRounding,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths. A simdgroup matrix's `half` \
|
||||
multiply-add steps computed in `float` round twice where Metal rounds once, at \
|
||||
most one `half` unit apart at a rounding midpoint; the runtime records the \
|
||||
device's bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::F16IntConvDoubleRounding,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths. A `half` and integer \
|
||||
conversion rounding twice; the runtime records the device's bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceArithmetic,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths. A `float` division, \
|
||||
remainder, square root, fused multiply-add or dot product at Vulkan's precision \
|
||||
bounds (a division within 2.5 ulp, an `Fma` that may run unfused), where Metal \
|
||||
answers the correctly rounded value; the runtime records the device's bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceDenormals,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths. An `f32` denormal the device \
|
||||
keeps or flushes by its own float controls, where Metal reads it as the zero of \
|
||||
its sign; the runtime records the device's bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceNanEncoding,
|
||||
ground: "class (e): the device's maths, for a NaN's bits. The NaN the device's \
|
||||
arithmetic, conversions, clears, copies and texel decodes give, its sign, \
|
||||
payload and quietness the device's, where Metal answers its canonical NaN, a \
|
||||
texel's own or a `half`'s own bits: a `half` colour output widened by the \
|
||||
device's `OpFConvert` stores every NaN as `0x7fff` on NVIDIA 615.71.09 (an RTX \
|
||||
5080 Laptop GPU, 8180 of 262144 channels of the runtime's lane, each a NaN) and \
|
||||
as `0xfe00` on ANV and RADV. Every value but a NaN is unchanged. The runtime \
|
||||
gives the device's NaN, its native form, and builds no path to Metal's bits \
|
||||
where the device has one (its rule)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::FloatSampleFilter,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling. A filtered sample with a \
|
||||
`float` result, whose footprint, weights and sum Vulkan bounds only by its \
|
||||
precision rules: an RTX 3090's blend between mip levels lies 1.03 codes off \
|
||||
Metal's at 8 bits (the runtime's D832); the runtime records the device's bound \
|
||||
for the other formats and filters",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::HalfSampleFilter,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling. A filtered sample with a \
|
||||
`half` result, bounded as `float-sample-filter`'s: an RTX 3090's blend between \
|
||||
mip levels lies 1.03 codes off Metal's at 8 bits (the runtime's D832); the \
|
||||
runtime records the device's bound for the other formats and filters",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::CubeGradientFootprint,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling. A cube sample's level and \
|
||||
anisotropic filter from the gradients the runtime hands the device, Metal's \
|
||||
footprint under macOS 27 (the face's two tangent components, an isotropic \
|
||||
sampler's combined by Metal's length rule): the device takes its own logarithm \
|
||||
of the footprint, where Metal's piecewise-linear one minifies only past \
|
||||
1 + 3/2048 and blends levels in 256ths, and filters an anisotropic footprint \
|
||||
with its own taps and weights; an implicit-level cube sample's level is the \
|
||||
device's, where Metal's rule is not measured. The runtime records the device's \
|
||||
bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::CompressedTexelDecode,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling. A BC1 to BC5 texture's \
|
||||
blocks as the device decodes them, where Metal interpolates with 6-bit weights: \
|
||||
NVIDIA 615.71.09 up to 3/255 off for BC1 to BC3 and 7.3/255 for BC4 and BC5 \
|
||||
(the runtime's D796); the runtime records other devices' bounds",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::ViewBaseTexelOffset,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling. A constant texel offset on \
|
||||
a repeating or mirrored axis of an argument buffer's view, placed by the view's \
|
||||
own base level where Metal places it by its parent's: one texel or footprint \
|
||||
away on a view whose first level lies above its parent's base; the runtime \
|
||||
records the device's bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::SrgbTexelDecode,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling. An 8-bit sRGB texel read \
|
||||
through the device's decode, where Metal decodes through its twelve-bit table; \
|
||||
the runtime records the device's bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::BicubicFilterArithmetic,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling. Metal's bicubic filter \
|
||||
emulated by fetches, whose sums differ from Metal's where its rule is not \
|
||||
pinned (one grid step apart near a rounding tie); the runtime records the \
|
||||
device's bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::HalfTexelConversion,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling. A `half` result of a \
|
||||
texel the translation converts from the device's `f32` texel to nearest even, \
|
||||
where Metal rounds a 32-bit float texel toward zero and a normalized one onto \
|
||||
its grid first: one `half` unit apart; the runtime records the device's bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceSampleLevel,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling. A sample whose level the \
|
||||
device's level arithmetic chooses, an LOD query's among them: Vulkan's level of detail may \
|
||||
approximate its scale factor, and a nearest mip filter reads ceil(lambda + 1/2) \
|
||||
- 1 where Metal rounds the level to half and truncates its fraction onto \
|
||||
sixty-fourths, so near a boundary the sample may read another level or filter \
|
||||
than Metal's; the runtime records the device's bound",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeTranscendentals,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths, the device's own answer \
|
||||
off Apple's GPUs. A math-library call the device's \
|
||||
`GLSL.std.450` instruction answers, within Vulkan's precision table: `Exp2` and \
|
||||
`Exp` 3 + 2|x| ulp, `Log2` and `Log` 3 ulp (2^-21 absolute in [0.5, 2]), \
|
||||
`InverseSqrt` 2 ulp, `Sin` and `Cos` 2^-11 absolute in [-pi, pi], the inverse \
|
||||
trigonometric functions 4096 ulp (the runtime's D907)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeDivision,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths, the runtime's default off \
|
||||
Apple's GPUs. A precise or fast division the device's `OpFDiv` answers: within \
|
||||
2.5 ulp of the quotient, a `half` one within one unit in its last place (the \
|
||||
runtime's D907)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeFma,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths, the runtime's default off \
|
||||
Apple's GPUs. A `half` fused multiply-add, or a `float` one without \
|
||||
`OpFmaKHR`, the device's `Fma` answers: a `half` within one unit in its last \
|
||||
place of Metal's, a `float` within half an ulp of the product plus half an ulp \
|
||||
of the result (the runtime's D907)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeNanEncoding,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths, the runtime's default off \
|
||||
Apple's GPUs. An operation's NaN result in the device's sign and payload where \
|
||||
Metal selects its canonical NaN or an operand's bits; every other result \
|
||||
unchanged (the runtime's D914)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeMinMax,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths, the runtime's default off \
|
||||
Apple's GPUs. `fmin`, `fmax`, `min3`, `max3`, `clamp` and `saturate` as the \
|
||||
device's `NMin`, `NMax` or `NClamp`: an operand, Metal's but at three ties (two \
|
||||
NaNs, +0 and -0, an `f32` denormal beside a zero), where Metal answers the \
|
||||
second (the runtime's D914)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeDot,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths, the runtime's default off \
|
||||
Apple's GPUs. `dot` as the device's `OpDot`: a `float` one of n lanes within \
|
||||
(3n - 1) 2^-24 of the sum of the products' magnitudes of Metal's fused chain, a \
|
||||
`half` one within (n + 3) 2^-11 of it plus (n + 2) 2^-25 (the runtime's D914)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeMix,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths, the runtime's default off \
|
||||
Apple's GPUs. `mix(x, y, t)` as the device's `FMix`: a `float` within 2^-21 \
|
||||
(|x(1 - t)| + |y t|) of Metal's fused form, a `half` within 3 2^-10 of that sum \
|
||||
plus 2^-23 (the runtime's D914)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeHalfConversion,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths, the device's own answer \
|
||||
off Apple's GPUs. A `half` result rounded by the \
|
||||
device's own conversion to 16 bits: within one unit in its last place, toward \
|
||||
zero on some devices (65504 from 65520 up where Metal answers infinity), a \
|
||||
result below 2^-14 the zero of its sign where the device flushes, and a NaN's \
|
||||
encoding and a zero's sign the device's (the runtime's D915)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeHalfQuantize,
|
||||
ground: "class (e), owner 2026-10-11: the device's maths, the runtime's default off \
|
||||
Apple's GPUs. A `half` result rounded by the device's `OpQuantizeToF16` on a \
|
||||
device without `shaderFloat16`: within one unit in its last place, 65504 to \
|
||||
65520 possibly infinity where Metal answers 65504, and a NaN's encoding the \
|
||||
device's (the runtime's D915)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceSampling,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling, the device's own answer \
|
||||
off Apple's GPUs. Samples, gathers and comparisons \
|
||||
the device's sampler answers: measured against an Apple M4, a linear filter \
|
||||
within 0.919 of a code of Metal's on NVIDIA 615.71.09, 0.548 on RADV, 0.918 on \
|
||||
ANV and 1.0 on lavapipe, an sRGB texture's within 1.832, 0.764, 0.912 and \
|
||||
0.781, and a nearest sample's texel Metal's neighbour at 0.1% of coordinates \
|
||||
at most (the runtime's D906); a two-plane YCbCr texture's linear filter \
|
||||
within 1.18 codes of Metal's sum on an RTX 3090, \
|
||||
0.88 on RADV and 1.06 on ANV; the runtime records the rest",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceTexelConversion,
|
||||
ground: "class (e), owner 2026-10-11: the device's sampling, the device's own answer \
|
||||
off Apple's GPUs. A texel's codes converted by the \
|
||||
device: an 8- or 16-bit normalized code within one `f32` ulp of Metal's, a 5- or \
|
||||
6-bit channel within 0.18 of a code, and a half-float or small-float NaN in the \
|
||||
device's encoding (the runtime's D905)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DecodedTexelPrecision,
|
||||
ground: "class (e): the device's own answer off Apple's GPUs, for a texture of a format the device lacks \
|
||||
held in a carrier, whose reads, samples and gathers read a decoded twin of \
|
||||
compact codes: an ASTC LDR channel the 8-bit code nearest Metal's 12-bit \
|
||||
value, at most 1/510 off it, and an EAC 11-bit channel the 16-bit normalized \
|
||||
code nearest Metal's 11-bit value, at most half a 16-bit step off it (the \
|
||||
runtime's record of the bound)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceRoundedResolve,
|
||||
ground: "class (e): the device's own rounding of an average, the device's own answer \
|
||||
off Apple's GPUs, for a pass's resolve of a multisampled \
|
||||
colour attachment by the device's `AVERAGE`: a resolved channel up to one code \
|
||||
off Metal's (an sRGB one two) near a rounding boundary, a float channel off in \
|
||||
its last bits, and wholly where a sample is a NaN or an infinity, measured at 2 \
|
||||
and 4 samples on RADV, ANV, NVIDIA and lavapipe, each rounding an 8-bit unorm \
|
||||
tie down",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DevicePackConversion,
|
||||
ground: "class (e): the device's maths, for a conversion: its `GLSL.std.450` `Pack` and \
|
||||
`Unpack` of a normalized format, and its clamp, multiply, `RoundEven`, \
|
||||
reciprocal and `Pow` for the rest, where Metal rounds the exact product and \
|
||||
takes an sRGB colour through its twelve-bit table: a packed code within one of \
|
||||
Metal's, an unpacked value within 2.5 ulp of the correctly rounded quotient, an \
|
||||
sRGB colour within half a twelve-bit step of Metal's (the runtime's record of \
|
||||
the bound)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceVertexConversion,
|
||||
ground: "class (e): the device's conversion of a normalized vertex attribute's codes by \
|
||||
its fixed-function vertex input, as `DeviceTexelConversion` is its conversion of \
|
||||
a texel's: within one `f32` ulp of Metal's where measured, and lavapipe's \
|
||||
per-instance fetch reading the most negative signed code unclamped (the \
|
||||
runtime's record of the bound)",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::DeviceAlphaCoverage,
|
||||
ground: "class (e): the device's alpha to coverage, which Vulkan leaves to the device: \
|
||||
its own algorithm where Metal covers by a 2x2 ordered dither, each pixel within \
|
||||
one sample of Metal's on lavapipe, unmeasured elsewhere (the runtime's record). \
|
||||
The runtime gives the device's answer with the note, as for its maths and \
|
||||
sampling, with no exact form to take",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeLogicOperation,
|
||||
ground: "class (e): a render pipeline's private logic operation drawn by the device's \
|
||||
`logicOp` into an `RGB10A2Unorm`, `BGR10A2Unorm` or signed normalized \
|
||||
attachment, which operates on the channels' stored codes themselves, where Metal \
|
||||
operates on a 10-bit or 2-bit code widened to 16 bits and narrows the result, \
|
||||
and reads and stores a signed channel's lowest code as the code above it, so a \
|
||||
channel may store another code (lavapipe's xor: green 938 where Metal's rule \
|
||||
gives 937, and 0x60 over a signed 0x80 where Metal's gives 0x61; the runtime's \
|
||||
record, with no bound, as the result follows the codes' bits). Every other \
|
||||
format's logic operation is Metal's. The runtime gives the device's operation \
|
||||
off Apple's GPUs, as for its maths and sampling, and draws it in the fragment \
|
||||
function on MoltenVK, which has no `logicOp`",
|
||||
},
|
||||
NativeRelay {
|
||||
kind: rt::Degradation::NativeFloat8,
|
||||
ground: "class (e): a tensor's 8-bit float element widened through the device's own \
|
||||
8-bit float (`shaderFloat8`, OCP's encodings), the only form where the device \
|
||||
has one: an e4m3 0x7F or 0xFF reads as a NaN where Metal reads 480 and -480 \
|
||||
(measured on the M3 Max), and an e5m2 NaN's bits are the device's where Metal \
|
||||
reads 0x7FC00000; every other code reads Metal's value (the runtime's record, \
|
||||
with no bound, as a NaN in a sum makes the sum a NaN). A device without \
|
||||
`shaderFloat8` decodes the fields with integers, as Metal reads them, and \
|
||||
announces nothing",
|
||||
},
|
||||
];
|
||||
|
||||
/// Where the process places a kind of [`DIES`](super::DIES).
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum Placement {
|
||||
/// As measured against the Mac GPUs: every kind of [`DIES`](super::DIES) dies.
|
||||
OnMetal,
|
||||
/// On native devices: the kinds of [`NATIVE_RELAYED`] are relayed.
|
||||
Native,
|
||||
}
|
||||
|
||||
/// Whether every Vulkan driver of this OS runs on Metal: on macOS, where MoltenVK and Mesa's
|
||||
/// KosmicKrisp alike run Vulkan on Metal (module docs).
|
||||
const DRIVERS_RUN_ON_METAL: bool = cfg!(target_os = "macos");
|
||||
|
||||
/// The class of a device whose driver is `driver`: on Metal on macOS, and elsewhere for MoltenVK
|
||||
/// and for a driver the device does not name; native for any other.
|
||||
pub fn class_of(driver: Option<DriverId>) -> Placement {
|
||||
class_on(DRIVERS_RUN_ON_METAL, driver)
|
||||
}
|
||||
|
||||
/// [`class_of`] on an OS whose every driver runs on Metal where `drivers_run_on_metal` holds.
|
||||
fn class_on(drivers_run_on_metal: bool, driver: Option<DriverId>) -> Placement {
|
||||
match driver {
|
||||
Some(d) if !drivers_run_on_metal && d != DriverId::MOLTENVK => Placement::Native,
|
||||
_ => Placement::OnMetal,
|
||||
}
|
||||
}
|
||||
|
||||
/// The process's placement: no device yet.
|
||||
const NO_DEVICE: u8 = 0;
|
||||
/// Every device adopted is native.
|
||||
const ALL_NATIVE: u8 = 1;
|
||||
/// A device adopted runs on Metal, or names no driver.
|
||||
const SOME_ON_METAL: u8 = 2;
|
||||
|
||||
/// The process's placement state.
|
||||
static STATE: AtomicU8 = AtomicU8::new(NO_DEVICE);
|
||||
|
||||
/// The state after a device of `class` is adopted in `state`: on Metal for good once any device
|
||||
/// is.
|
||||
fn after(state: u8, class: Placement) -> u8 {
|
||||
match (state, class) {
|
||||
(_, Placement::OnMetal) | (SOME_ON_METAL, _) => SOME_ON_METAL,
|
||||
(_, Placement::Native) => ALL_NATIVE,
|
||||
}
|
||||
}
|
||||
|
||||
/// The placement of the process in `state`.
|
||||
fn placement_in(state: u8) -> Placement {
|
||||
if state == ALL_NATIVE {
|
||||
Placement::Native
|
||||
} else {
|
||||
Placement::OnMetal
|
||||
}
|
||||
}
|
||||
|
||||
/// A device the process adopts, of these properties: its class joins the process's placement.
|
||||
/// The first reads whether census mode is on, which says so then ([`super::census`]).
|
||||
pub fn device_made(properties: &rt::DeviceProperties) {
|
||||
super::census::on();
|
||||
let class = class_of(properties.description.driver_id);
|
||||
let _ = STATE.try_update(Ordering::AcqRel, Ordering::Acquire, |s| {
|
||||
Some(after(s, class))
|
||||
});
|
||||
}
|
||||
|
||||
/// The process's placement, but a test's own on its thread (the tests' `as_native`).
|
||||
pub fn placement() -> Placement {
|
||||
#[cfg(test)]
|
||||
if let Some(placement) = TEST_PLACEMENT.with(std::cell::Cell::get) {
|
||||
return placement;
|
||||
}
|
||||
placement_in(STATE.load(Ordering::Acquire))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
std::thread_local! {
|
||||
/// The placement a test runs its thread's notices under ([`as_native`]), in place of the
|
||||
/// process's.
|
||||
static TEST_PLACEMENT: std::cell::Cell<Option<Placement>> =
|
||||
const { std::cell::Cell::new(None) };
|
||||
}
|
||||
|
||||
/// Runs `call` with the notices announced on this thread placed as on a native device, whatever
|
||||
/// device the process adopted: a test's on the Mac, where every device runs on Metal. A Linux
|
||||
/// host's device is native already.
|
||||
#[cfg(all(test, target_os = "macos"))]
|
||||
pub(crate) fn as_native<T>(call: impl FnOnce() -> T) -> T {
|
||||
/// Puts back the outer placement on drop, an unwinding call's included.
|
||||
struct Restore(Option<Placement>);
|
||||
impl Drop for Restore {
|
||||
fn drop(&mut self) {
|
||||
TEST_PLACEMENT.with(|p| p.set(self.0));
|
||||
}
|
||||
}
|
||||
let _restore = Restore(TEST_PLACEMENT.with(|p| p.replace(Some(Placement::Native))));
|
||||
call()
|
||||
}
|
||||
|
||||
/// Whether `kind` is one of [`NATIVE_RELAYED`].
|
||||
pub fn relayed(kind: rt::Degradation) -> bool {
|
||||
NATIVE_RELAYED.iter().any(|r| r.kind == kind)
|
||||
}
|
||||
|
||||
/// How many times the runtime announced each kind of [`NATIVE_RELAYED`] in this process, in its
|
||||
/// order.
|
||||
static COUNTS: [AtomicU64; NATIVE_RELAYED.len()] =
|
||||
[const { AtomicU64::new(0) }; NATIVE_RELAYED.len()];
|
||||
|
||||
/// Counts an occurrence of `kind`, one of [`NATIVE_RELAYED`]: whether it is the process's first,
|
||||
/// which is relayed.
|
||||
pub fn count(kind: rt::Degradation) -> bool {
|
||||
count_in(&COUNTS, kind)
|
||||
}
|
||||
|
||||
/// Each kind of [`NATIVE_RELAYED`] this process met, with how many times the runtime announced it.
|
||||
pub fn counts() -> Vec<(rt::Degradation, u64)> {
|
||||
counts_in(&COUNTS)
|
||||
}
|
||||
|
||||
/// [`count`] in `counts`, one per kind of [`NATIVE_RELAYED`].
|
||||
fn count_in(counts: &[AtomicU64], kind: rt::Degradation) -> bool {
|
||||
let Some(at) = NATIVE_RELAYED.iter().position(|r| r.kind == kind) else {
|
||||
return false;
|
||||
};
|
||||
counts
|
||||
.get(at)
|
||||
.is_some_and(|c| c.fetch_add(1, Ordering::Relaxed) == 0)
|
||||
}
|
||||
|
||||
/// [`counts`] of `counts`.
|
||||
fn counts_in(counts: &[AtomicU64]) -> Vec<(rt::Degradation, u64)> {
|
||||
NATIVE_RELAYED
|
||||
.iter()
|
||||
.zip(counts)
|
||||
.map(|(r, c)| (r.kind, c.load(Ordering::Relaxed)))
|
||||
.filter(|&(_, n)| n > 0)
|
||||
.collect()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
/// Off macOS, MoltenVK, and a device that names no driver, run on Metal; NVIDIA's and Mesa's
|
||||
/// drivers are native
|
||||
#[test]
|
||||
fn the_class_is_the_driver_s() {
|
||||
let class = |driver| class_on(false, driver);
|
||||
assert_eq!(class(Some(DriverId::MOLTENVK)), Placement::OnMetal);
|
||||
assert_eq!(class(None), Placement::OnMetal);
|
||||
assert_eq!(class(Some(DriverId::NVIDIA_PROPRIETARY)), Placement::Native);
|
||||
assert_eq!(class(Some(DriverId::MESA_LLVMPIPE)), Placement::Native);
|
||||
}
|
||||
|
||||
/// On macOS no driver is native: Mesa's KosmicKrisp is Vulkan on Metal too, whichever driver
|
||||
/// the system's loader lists first
|
||||
#[test]
|
||||
fn a_kosmickrisp_driver_on_macos_is_not_native() {
|
||||
let kosmickrisp = Some(DriverId::MESA_KOSMICKRISP);
|
||||
for driver in [
|
||||
kosmickrisp,
|
||||
Some(DriverId::MOLTENVK),
|
||||
Some(DriverId::NVIDIA_PROPRIETARY),
|
||||
None,
|
||||
] {
|
||||
assert_eq!(class_on(true, driver), Placement::OnMetal, "{driver:?}");
|
||||
}
|
||||
#[cfg(target_os = "macos")]
|
||||
assert_eq!(class_of(kosmickrisp), Placement::OnMetal);
|
||||
}
|
||||
|
||||
/// The process is native only while every device it adopted is: on Metal before its first
|
||||
/// device, and for good once one runs on Metal
|
||||
#[test]
|
||||
fn the_process_is_native_while_every_device_is() {
|
||||
use Placement::{Native, OnMetal};
|
||||
let run = |classes: &[Placement]| {
|
||||
placement_in(classes.iter().fold(NO_DEVICE, |s, &c| after(s, c)))
|
||||
};
|
||||
assert_eq!(run(&[]), OnMetal);
|
||||
assert_eq!(run(&[Native]), Native);
|
||||
assert_eq!(run(&[Native, Native]), Native);
|
||||
assert_eq!(run(&[Native, OnMetal]), OnMetal);
|
||||
assert_eq!(run(&[OnMetal, Native]), OnMetal);
|
||||
}
|
||||
|
||||
/// The first occurrence of a kind is relayed and every one counted; a kind not listed is
|
||||
/// neither
|
||||
#[test]
|
||||
fn a_native_relay_is_counted() {
|
||||
let counts = [const { AtomicU64::new(0) }; NATIVE_RELAYED.len()];
|
||||
let kind = rt::Degradation::DeviceInterpolation;
|
||||
assert!(counts_in(&counts).is_empty());
|
||||
assert!(count_in(&counts, kind));
|
||||
assert!(!count_in(&counts, kind));
|
||||
assert!(!count_in(&counts, kind));
|
||||
assert_eq!(counts_in(&counts), [(kind, 3)]);
|
||||
assert!(!count_in(&counts, rt::Degradation::ReleasedCommandState));
|
||||
assert!(relayed(kind) && !relayed(rt::Degradation::ReleasedCommandState));
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
//! What the Rust API (`reims-vgpu`) asks of this platform beyond core's `Platform`: a frame
|
||||
//! target's pixels ([`read_pixels`]).
|
||||
|
||||
use crate::core::num::ToU64;
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
use crate::answer::{get, plain};
|
||||
use crate::gpu::resource::VulkanTexture;
|
||||
|
||||
/// Copies the whole of `texture`'s first level and slice into `dst`: `height` rows of `width * 4`
|
||||
/// bytes, each `bytes_per_row` after the last, the bytes between rows left as they are
|
||||
/// (`getBytes:bytesPerRow:fromRegion:mipmapLevel:`). The caller has checked that `dst` holds
|
||||
/// them. A refusal of the runtime's dies at the selector, as a raise in Metal's `getBytes` dies
|
||||
/// at its send.
|
||||
pub fn read_pixels(texture: &VulkanTexture, dst: &mut [u8], bytes_per_row: usize) {
|
||||
let sel = "getBytes:bytesPerRow:fromRegion:mipmapLevel:";
|
||||
let t = texture.copied(sel);
|
||||
let region = rt::Region::new_2d(0, 0, plain(|| t.width()), plain(|| t.height()));
|
||||
get(sel, || {
|
||||
t.get_bytes(dst, bytes_per_row.to_u64(), 0, region, 0, 0)
|
||||
});
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::core::platform::Handle as _;
|
||||
use metal2vulkan::metal::PixelFormat;
|
||||
|
||||
use super::*;
|
||||
use crate::gpu::device::tests::dev;
|
||||
use crate::gpu::resource::TextureObject;
|
||||
use crate::platform::Obj;
|
||||
|
||||
/// A BGRA8 texture of `width` by `height` (shared storage, the descriptor's default), holding
|
||||
/// `px` (rows of `width * 4` bytes).
|
||||
fn texture(width: u64, height: u64, px: &[u8]) -> VulkanTexture {
|
||||
let d = dev();
|
||||
let desc = rt::TextureDescriptor::texture_2d(PixelFormat::BGRA8Unorm, width, height, false);
|
||||
let raw = d.raw.new_texture(&desc).unwrap();
|
||||
let all = rt::Region::new_2d(0, 0, width, height);
|
||||
raw.replace_region(all, 0, 0, px, width * 4, 0).unwrap();
|
||||
Obj::new(TextureObject {
|
||||
raw,
|
||||
device: d.clone_ref(),
|
||||
under: None,
|
||||
surface: None,
|
||||
private_usage: 0,
|
||||
space: std::sync::Arc::new(crate::gpu::metal_space::Hold::NONE),
|
||||
})
|
||||
}
|
||||
|
||||
/// Every pixel of the texture, row by row; the bytes past each row's pixels are left alone
|
||||
#[test]
|
||||
fn read_pixels_reads_the_whole_texture() {
|
||||
let (w, h) = (3u64, 2u64);
|
||||
let px: Vec<u8> = (0u8..24).collect();
|
||||
let t = texture(w, h, &px);
|
||||
let mut tight = vec![0xaa; 24];
|
||||
read_pixels(&t, &mut tight, 12);
|
||||
assert_eq!(tight, px);
|
||||
let mut padded = vec![0xaa; 16 + 12];
|
||||
read_pixels(&t, &mut padded, 16);
|
||||
assert_eq!(&padded[..12], &px[..12]);
|
||||
assert_eq!(&padded[12..16], &[0xaa; 4]);
|
||||
assert_eq!(&padded[16..], &px[12..]);
|
||||
}
|
||||
}
|
||||
@@ -1,802 +0,0 @@
|
||||
//! Keeps the GPU out of its runtime suspend while the guest draws, as a Mac's GPU that drives a
|
||||
//! display stays up between frames.
|
||||
//!
|
||||
//! - **Why.** A host's runtime power management suspends a GPU that has had no work for its
|
||||
//! autosuspend delay, and the next work waits for its resume. Measured on the RTX 5080 Laptop
|
||||
//! GPU (NVIDIA 615.71.09, open kernel module, `DynamicPowerManagement=3`, `power/control`
|
||||
//! `auto`, the host's stock policy): its `power/runtime_status` went from `active` to
|
||||
//! `suspended` about 10 s after its last work. An `nvidia-smi` query then took 992 ms, against
|
||||
//! 18 ms awake, and WindowServer's frame at each minute's turn, which follows a static screen,
|
||||
//! waited 954 ms for the buffer it makes first. The same make took under 5 ms while the guest
|
||||
//! drew. Kept awake, the minute's make took 0.34 to 0.48 ms.
|
||||
//! - **What it costs.** Awake and idle, at P8 with a 180 MHz graphics clock, the board drew 7.2 W
|
||||
//! with no process on it (the median of `nvidia-smi`'s `power.draw` read each second for 56 s,
|
||||
//! the reads keeping it awake: a mean of 8.35 W, 7.55 W after the first 20 s), and 9.25 W with a
|
||||
//! guest booted, idle between two of WindowServer's minute frames, and kept awake by this
|
||||
//! module (the median of the same reads each second for 50 s). Suspended, the board is powered
|
||||
//! off, and `nvidia-smi` reads it only by resuming it.
|
||||
//! - **The guest's work.** Every command buffer the device commits counts
|
||||
//! ([`Awake::touch`], from the commit). A window's present counts as the frame's command buffer
|
||||
//! it follows, and so does a guest's.
|
||||
//! - **The keeping.** For [`AWAKE_FOR`] after the last of that work, the thread
|
||||
//! `reims-vgpu.gpu-awake` looks at the device's count of commits every [`look`]. At each look
|
||||
//! that finds no commit since the look before, it submits one command buffer of a timestamp
|
||||
//! write (empty where the queue's family writes no timestamps), so the GPU goes at most two
|
||||
//! looks without work. Past [`AWAKE_FOR`] it parks until the next commit, and the GPU suspends
|
||||
//! as the host's policy has it: the first frame after a longer break pays the resume once.
|
||||
//! - **How often it looks.** Every quarter of the device's autosuspend delay where sysfs gives
|
||||
//! one for the device's PCI address (`power/autosuspend_delay_ms`, `VK_EXT_pci_bus_info`'s
|
||||
//! address): the kernel's autosuspend counts from the driver's last sign of work, so half the
|
||||
//! delay without work never reaches it. Elsewhere every [`UNREAD_LOOK`], which holds the RTX
|
||||
//! 5080 Laptop GPU: its file answers EIO, and its driver suspends it by an idle detection of its
|
||||
//! own, which the submission's kind does not move and its spacing does. Measured with a test
|
||||
//! program holding one device and 512 MiB of its memory, reading `runtime_status` every 100 ms:
|
||||
//! one submission every 1 s or every 1.25 s, a timestamp write, an empty command buffer or a
|
||||
//! 4 KiB fill alike, and the GPU suspended every 42 to 47 s, each time for about 1.2 s until the
|
||||
//! next submission resumed it (a guest's frame in that window waits for the resume); one every
|
||||
//! 500 ms, and it did not suspend in 400 s; every 250 ms, not in 60 s.
|
||||
//! - **Where the kernel keeps the GPU up.** A look that would submit first reads the device's
|
||||
//! `power/control` in sysfs. `on` is the kernel's runtime suspend forbidden for the device, so
|
||||
//! the GPU stays up without work, and the look submits nothing. The file is read at each such
|
||||
//! look, so a policy turned to `auto` meanwhile is kept to from the next look. Measured on the
|
||||
//! Radeon 780M (Phoenix 1002:15bf on two hosts, Hawk Point 1002:1900 on a third; amdgpu, Linux
|
||||
//! 7.3.3, `amdgpu.runpm` at its default, -1): `control` read `on`, `autosuspend_delay_ms`
|
||||
//! answered EIO, and `runtime_suspended_time` read 0 after 26 to 29 h up. Before this read, the
|
||||
//! thread submitted there at every [`UNREAD_LOOK`] of the guest's idle, and took 0.38 to 0.53
|
||||
//! CPU-s a pass of Geekbench 7.1.0's compute benchmark (166 s timed), against 0.03 to 0.05 on
|
||||
//! the RX 7900 XTX, which it looks at every 1.25 s. Measured on the Phoenix with the read, in a
|
||||
//! pair of walks of three passes each that changed nothing else: the thread took 0.04 to 0.05
|
||||
//! CPU-s a pass (0.40 to 0.44 without), the device's `LIBRARY_LOOKUP`s 0.047 and 0.063 s a timed
|
||||
//! pass with the longest 35 ms (0.224 and 0.210 s, the longest 142 ms, without), and the passes
|
||||
//! 0.6 to 1.2% less wall.
|
||||
//! - **On every GPU.** No driver or GPU kind is told apart: the device's own runtime power
|
||||
//! management, as sysfs gives it, decides. A GPU whose `control` reads anything else (`auto`, the
|
||||
//! RX 7900 XTX's, the RX 550's, the Iris Xe's and the NVIDIA cards' on the same hosts), or that
|
||||
//! has no file to read (no PCI address, or an OS without sysfs), gets one small command buffer
|
||||
//! per look while the guest is idle, and none while it draws, whether or not it drives the
|
||||
//! host's display.
|
||||
//! - **Nothing the guest sees.** The thread's objects are raw Vulkan objects of its own, made at
|
||||
//! its first submission: a command pool and its one command buffer, a query pool of one
|
||||
//! timestamp, and a fence; and a runtime queue of its own, whose `VkQueue` it borrows for each
|
||||
//! submission (`rt::CommandQueue::with_vk_queue`). No resource of the runtime's is made, so no
|
||||
//! GPU address, ID, stamp or count the guest reads changes. The runtime counts each submission
|
||||
//! as the program's GPU work, so a texture's host shadow read before it is read again after.
|
||||
//! - **A failed submission** (a lost device) ends the thread, with one warning, and the GPU
|
||||
//! suspends as the host's policy has it.
|
||||
//! - **A recovered device.** The objects are of the generation of the device they were made on
|
||||
//! (`crate::generation`): where the runtime has made its `VkDevice` again since, a touch first
|
||||
//! destroys them on the old one and makes them, with a new queue, on the new one; a touch whose
|
||||
//! queue a recovery moved as it was submitted submits nothing. While the GPU is busy, so that
|
||||
//! no touch comes, a look that finds the device recovered lets the old objects go, so the
|
||||
//! toucher keeps the old generation no longer than a look. Where the old `VkDevice` stopped
|
||||
//! and was parked (`crate::generation`, "A parked generation"), the objects are left there as
|
||||
//! they are, never waited for nor destroyed, as the runtime leaves its own.
|
||||
//! - **At the process's exit** the threads make no Vulkan call. The driver's destructors run
|
||||
//! then, on the exiting thread, while every other thread goes on, and a call into what they
|
||||
//! freed ends the process. Measured on the RTX 5080 Laptop GPU (NVIDIA 615.71.09), before the
|
||||
//! gate, the workspace's tests logged 79 segfaults of this thread in a six-minute run, in
|
||||
//! processes whose tests had passed, at an instruction pointer equal to the faulting address
|
||||
//! (`0xcaf0003c` to `0xcaf00082`, 14 bytes apart, or 0). Each Vulkan step of a thread (its
|
||||
//! toucher's making, a touch, the toucher's end) is a step of the library's exit gate
|
||||
//! ([`crate::exit_gate`]), whose hook waits out a step in progress and refuses the next: a
|
||||
//! thread refused keeps its toucher, undestroyed, and parks until the process ends. The thread
|
||||
//! registers the hook as it starts, after its device was made, and again after each of its
|
||||
//! first [`FIRST_TOUCHES`] touches, after what the driver registered at the toucher's first
|
||||
//! calls.
|
||||
//! - **Devices the process adopts** ([`crate::gpu::device::adopt`]) have the thread. A device
|
||||
//! made for a test alone has [`Awake::default`], which counts and keeps nothing.
|
||||
//! - **The device's end** ([`Awake::stop`], as the platform lets go of its devices,
|
||||
//! [`crate::let_go`]) stops the thread at its next look or at once where it waits, its toucher
|
||||
//! destroyed in a step of its own, and waits for it: the thread holds a handle of the runtime
|
||||
//! device, which then goes before the device's own.
|
||||
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
|
||||
use std::sync::{Arc, OnceLock};
|
||||
use std::thread::Thread;
|
||||
use std::time::Duration;
|
||||
|
||||
use crate::core::platform::os::clock::{Clock as _, MonoTime};
|
||||
use crate::generation::Generation;
|
||||
use ash::vk;
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
/// How long after the guest's last GPU work the GPU is kept awake.
|
||||
pub(crate) const AWAKE_FOR: Duration = Duration::from_secs(5 * 60);
|
||||
|
||||
/// How often the thread looks where sysfs gives no autosuspend delay for the device: two looks,
|
||||
/// the longest the GPU goes without work, are the 500 ms spacing that held the RTX 5080 Laptop
|
||||
/// GPU awake (the module docs).
|
||||
pub(crate) const UNREAD_LOOK: Duration = Duration::from_millis(250);
|
||||
|
||||
/// The shortest time between looks, for a delay of a few milliseconds.
|
||||
const LEAST_LOOK: Duration = Duration::from_millis(50);
|
||||
|
||||
/// The log target of the thread's lines.
|
||||
const TARGET: &str = "reims_vgpu_vulkan::awake";
|
||||
|
||||
/// Ends a thread's Vulkan steps for good, the process exiting: its toucher is never destroyed (the
|
||||
/// process's end frees it) and the thread parks until the process ends, keeping its device.
|
||||
fn stay(toucher: Option<Toucher>) -> ! {
|
||||
std::mem::forget(toucher);
|
||||
crate::exit_gate::stay()
|
||||
}
|
||||
|
||||
/// A device's keeping awake (the module docs): what its commits count, and its thread.
|
||||
#[derive(Debug, Default)]
|
||||
pub struct Awake {
|
||||
/// What the commits and the thread share; `None` where the thread did not start.
|
||||
shared: Option<Arc<Shared>>,
|
||||
/// The thread, until [`Awake::stop`] joined it.
|
||||
thread: Option<std::thread::JoinHandle<()>>,
|
||||
}
|
||||
|
||||
/// What the device's commits and its thread share.
|
||||
#[derive(Debug, Default)]
|
||||
struct Shared {
|
||||
/// How many command buffers the device committed.
|
||||
work: AtomicU64,
|
||||
/// Whether the thread is parked, or about to park, until the next commit.
|
||||
parked: AtomicBool,
|
||||
/// The thread, as it set itself.
|
||||
thread: OnceLock<Thread>,
|
||||
/// Whether the thread is to end ([`Awake::stop`]).
|
||||
stop: AtomicBool,
|
||||
/// How many looks went to the toucher: those that found the device idle where it may suspend.
|
||||
touches: AtomicU64,
|
||||
}
|
||||
|
||||
impl Awake {
|
||||
/// Starts `device`'s thread (the module docs), parked until the device's first commit.
|
||||
pub(crate) fn start(device: &rt::Device) -> Awake {
|
||||
let power = power_dir(device);
|
||||
let look = look(read(power.as_deref(), "autosuspend_delay_ms").as_deref());
|
||||
Awake::looking(device, look, power)
|
||||
}
|
||||
|
||||
/// Starts `device`'s thread, looking every `look`, parked until the device's first commit;
|
||||
/// `power` is the device's runtime power management directory in sysfs, where it has one.
|
||||
fn looking(device: &rt::Device, look: Duration, power: Option<PathBuf>) -> Awake {
|
||||
crate::exit_gate::arm();
|
||||
let shared = Arc::new(Shared::default());
|
||||
let (device, kept) = (device.clone(), Arc::clone(&shared));
|
||||
let spawned = std::thread::Builder::new()
|
||||
.name("reims-vgpu.gpu-awake".into())
|
||||
.spawn(move || keep(&device, &kept, look, power.as_deref()));
|
||||
match spawned {
|
||||
Ok(thread) => Awake {
|
||||
shared: Some(shared),
|
||||
thread: Some(thread),
|
||||
},
|
||||
Err(e) => {
|
||||
log::warn!(target: TARGET, "the GPU is not kept awake: no thread ({e})");
|
||||
Awake::default()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Ends the thread and waits for it (the module docs): once this returns, it holds nothing of
|
||||
/// the device. Once the process's exit closed the gate, the thread may be parked for good, and
|
||||
/// nothing waits for it.
|
||||
pub(crate) fn stop(&mut self) {
|
||||
let Some(shared) = &self.shared else {
|
||||
return;
|
||||
};
|
||||
shared.stop.store(true, Ordering::SeqCst);
|
||||
let Some(thread) = self.thread.take() else {
|
||||
return;
|
||||
};
|
||||
thread.thread().unpark();
|
||||
if !crate::exit_gate::closed() {
|
||||
let _ = thread.join();
|
||||
}
|
||||
}
|
||||
|
||||
/// The device committed a command buffer: counted, and the thread woken where it is parked.
|
||||
pub(crate) fn touch(&self) {
|
||||
let Some(shared) = &self.shared else {
|
||||
return;
|
||||
};
|
||||
// Sequentially consistent with the thread's store of `parked` and its read of the count
|
||||
// after it: either the thread reads this commit's count and does not park, or this read
|
||||
// finds it parked, or about to, and wakes it (`park` keeps a wake that comes first).
|
||||
shared.work.fetch_add(1, Ordering::SeqCst);
|
||||
if shared.parked.load(Ordering::SeqCst)
|
||||
&& let Some(thread) = shared.thread.get()
|
||||
{
|
||||
thread.unpark();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// How often the thread looks, for the device's autosuspend delay as sysfs writes it (`delay_ms`,
|
||||
/// milliseconds): every quarter of the delay, at least [`LEAST_LOOK`] apart; every
|
||||
/// [`UNREAD_LOOK`] where there is no file, it cannot be read, or it holds no positive delay (`-1`,
|
||||
/// which turns autosuspend off).
|
||||
pub(crate) fn look(delay_ms: Option<&str>) -> Duration {
|
||||
delay_ms
|
||||
.and_then(|text| text.trim().parse::<u64>().ok())
|
||||
.filter(|&ms| ms > 0)
|
||||
.map_or(UNREAD_LOOK, |ms| {
|
||||
(Duration::from_millis(ms) / 4).max(LEAST_LOOK)
|
||||
})
|
||||
}
|
||||
|
||||
/// Whether the device may suspend, by its `power/control` as sysfs writes it (`control`): not
|
||||
/// where it reads `on`, the kernel's runtime suspend forbidden for the device; elsewhere (`auto`,
|
||||
/// or no file to read) it may, as far as the thread can tell (the module docs).
|
||||
pub(crate) fn may_suspend(control: Option<&str>) -> bool {
|
||||
control.map(str::trim) != Some("on")
|
||||
}
|
||||
|
||||
/// `device`'s runtime power management directory in sysfs, by its PCI address, where it has one.
|
||||
fn power_dir(device: &rt::Device) -> Option<PathBuf> {
|
||||
let (domain, bus, slot, function) = device.properties().pci_bus?;
|
||||
let dir = format!("/sys/bus/pci/devices/{domain:04x}:{bus:02x}:{slot:02x}.{function:x}/power");
|
||||
Some(PathBuf::from(dir))
|
||||
}
|
||||
|
||||
/// The text of `file` in the device's power directory `power`, where there is one and the file
|
||||
/// can be read.
|
||||
fn read(power: Option<&Path>, file: &str) -> Option<String> {
|
||||
std::fs::read_to_string(power?.join(file)).ok()
|
||||
}
|
||||
|
||||
/// What a look of the thread does.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub(crate) enum Look {
|
||||
/// The device committed since the look before: no submission.
|
||||
Busy,
|
||||
/// No commit since the look before, and the last within [`AWAKE_FOR`]: one submission.
|
||||
Touch,
|
||||
/// No commit within [`AWAKE_FOR`], or none yet: park until the next.
|
||||
Rest,
|
||||
}
|
||||
|
||||
/// The thread's record of the guest's work: the count of commits it saw last, and the look that
|
||||
/// saw it change.
|
||||
#[derive(Debug, Default)]
|
||||
pub(crate) struct Keep {
|
||||
seen: u64,
|
||||
last: Option<MonoTime>,
|
||||
}
|
||||
|
||||
impl Keep {
|
||||
/// The look at `now`, the device's count of commits being `work`.
|
||||
pub(crate) fn look(&mut self, work: u64, now: MonoTime) -> Look {
|
||||
if work != self.seen {
|
||||
self.seen = work;
|
||||
self.last = Some(now);
|
||||
return Look::Busy;
|
||||
}
|
||||
match self.last {
|
||||
Some(at) if now.saturating_duration_since(at) < AWAKE_FOR => Look::Touch,
|
||||
_ => Look::Rest,
|
||||
}
|
||||
}
|
||||
|
||||
/// The count of commits the last look saw.
|
||||
pub(crate) fn seen(&self) -> u64 {
|
||||
self.seen
|
||||
}
|
||||
}
|
||||
|
||||
/// The thread: looks every `look` (the module docs) until a submission fails or the device ends
|
||||
/// ([`Awake::stop`]), submitting only where the device's power directory `power` lets it suspend.
|
||||
fn keep(device: &rt::Device, shared: &Shared, look: Duration, power: Option<&Path>) {
|
||||
let _ = shared.thread.set(std::thread::current());
|
||||
let control = read(power, "control");
|
||||
log::debug!(
|
||||
target: TARGET,
|
||||
"the GPU is kept awake {AWAKE_FOR:?} after the last commit, looked at every {look:?}, \
|
||||
where it may suspend (power/control now {:?})",
|
||||
control.as_deref().map(str::trim)
|
||||
);
|
||||
let clock = crate::os::OsClock::new();
|
||||
let mut keep = Keep::default();
|
||||
let mut toucher: Option<Toucher> = None;
|
||||
let mut touches = 0_u32;
|
||||
loop {
|
||||
if shared.stop.load(Ordering::SeqCst) {
|
||||
let Some(held) = crate::exit_gate::step() else {
|
||||
stay(toucher);
|
||||
};
|
||||
drop(toucher.take());
|
||||
drop(held);
|
||||
return;
|
||||
}
|
||||
let now = clock.now_mono();
|
||||
match keep.look(shared.work.load(Ordering::SeqCst), now) {
|
||||
// A toucher of a generation the device no longer serves goes at the next look, so it
|
||||
// keeps the old `VkDevice` no longer than that while the GPU is busy.
|
||||
Look::Busy if toucher.is_some() => {
|
||||
let Some(held) = crate::exit_gate::step() else {
|
||||
stay(toucher);
|
||||
};
|
||||
if toucher
|
||||
.as_ref()
|
||||
.is_some_and(|t| !t.generation.serves(&t.queue))
|
||||
{
|
||||
drop(toucher.take());
|
||||
}
|
||||
drop(held);
|
||||
}
|
||||
Look::Busy => {}
|
||||
// The kernel keeps the GPU up: nothing to submit (the module docs).
|
||||
Look::Touch if !may_suspend(read(power, "control").as_deref()) => {}
|
||||
Look::Touch => {
|
||||
shared.touches.fetch_add(1, Ordering::SeqCst);
|
||||
let Some(held) = crate::exit_gate::step() else {
|
||||
stay(toucher);
|
||||
};
|
||||
let touched = match &mut toucher {
|
||||
Some(toucher) => toucher.touch(),
|
||||
None => Toucher::new(device).and_then(|made| toucher.insert(made).touch()),
|
||||
};
|
||||
if let Err(e) = touched {
|
||||
log::warn!(target: TARGET, kind:% = e; "the GPU is no longer kept awake: {e}");
|
||||
drop(toucher.take());
|
||||
drop(held);
|
||||
return;
|
||||
}
|
||||
drop(held);
|
||||
if touches < FIRST_TOUCHES {
|
||||
touches += 1;
|
||||
crate::exit_gate::arm();
|
||||
}
|
||||
}
|
||||
Look::Rest => {
|
||||
shared.parked.store(true, Ordering::SeqCst);
|
||||
while shared.work.load(Ordering::SeqCst) == keep.seen()
|
||||
&& !shared.stop.load(Ordering::SeqCst)
|
||||
{
|
||||
std::thread::park();
|
||||
}
|
||||
shared.parked.store(false, Ordering::SeqCst);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
// Until the next look, or the device's end, which unparks the thread.
|
||||
let next = now.saturating_add(look);
|
||||
while !shared.stop.load(Ordering::SeqCst) {
|
||||
let left = next.saturating_duration_since(clock.now_mono());
|
||||
if left.is_zero() {
|
||||
break;
|
||||
}
|
||||
std::thread::park_timeout(left);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The touches after each of which a thread registers the exit gate's hook again: the first makes the
|
||||
/// toucher and submits, and the next two reach its fence's status and reset.
|
||||
const FIRST_TOUCHES: u32 = 3;
|
||||
|
||||
/// How long the toucher's end waits for its last submission.
|
||||
const LAST_WAIT: Duration = Duration::from_secs(1);
|
||||
|
||||
/// The thread's submission (the module docs): its queue and its raw objects, on the generation
|
||||
/// of the device they were made on.
|
||||
struct Toucher {
|
||||
device: rt::Device,
|
||||
queue: rt::CommandQueue,
|
||||
generation: Generation,
|
||||
pool: vk::CommandPool,
|
||||
buffer: vk::CommandBuffer,
|
||||
timestamps: vk::QueryPool,
|
||||
fence: vk::Fence,
|
||||
/// Whether the fence has a submission of the buffer to signal.
|
||||
pending: bool,
|
||||
}
|
||||
|
||||
impl Toucher {
|
||||
/// The objects on `device`, the buffer recorded once: a reset of the one timestamp and its
|
||||
/// write, where the queue's family writes timestamps.
|
||||
fn new(device: &rt::Device) -> Result<Toucher, String> {
|
||||
let queue = device
|
||||
.new_command_queue()
|
||||
.map_err(|e| format!("no queue ({e:?})"))?;
|
||||
let generation = Generation::serving(&queue)?;
|
||||
let family = generation.family();
|
||||
let (vk_device, timestamped) = {
|
||||
// SAFETY: the handles are used while the generation, which this object holds, lives;
|
||||
// the objects made of them are this object's own, destroyed at its end.
|
||||
let handles = unsafe { generation.raw() };
|
||||
// SAFETY: the physical device is the device's own.
|
||||
let families = unsafe {
|
||||
(handles.instance)
|
||||
.get_physical_device_queue_family_properties(handles.physical_device)
|
||||
};
|
||||
let timestamped = usize::try_from(family)
|
||||
.ok()
|
||||
.and_then(|at| families.get(at))
|
||||
.is_some_and(|f| f.timestamp_valid_bits > 0);
|
||||
(handles.device.clone(), timestamped)
|
||||
};
|
||||
let made_on = generation.device().clone();
|
||||
let mut toucher = Toucher {
|
||||
device: device.clone(),
|
||||
queue,
|
||||
generation,
|
||||
pool: vk::CommandPool::null(),
|
||||
buffer: vk::CommandBuffer::null(),
|
||||
timestamps: vk::QueryPool::null(),
|
||||
fence: vk::Fence::null(),
|
||||
pending: false,
|
||||
};
|
||||
// The device's commands with the runtime's loader word put back, as the loader's own and
|
||||
// a layer's need (`rt::Device::with_loader_word`). An object made before a refusal is
|
||||
// destroyed by the toucher's end.
|
||||
made_on
|
||||
.with_loader_word(|| toucher.make(&vk_device, family, timestamped))
|
||||
.map_err(|e| format!("its objects were refused ({e})"))?;
|
||||
Ok(toucher)
|
||||
}
|
||||
|
||||
/// Makes the objects on `vk_device`, the toucher's device, for a queue of `family`, and
|
||||
/// records the buffer: a reset of the one timestamp and its write where `timestamped`.
|
||||
fn make(
|
||||
&mut self,
|
||||
vk_device: &ash::Device,
|
||||
family: u32,
|
||||
timestamped: bool,
|
||||
) -> Result<(), vk::Result> {
|
||||
let pool_info = vk::CommandPoolCreateInfo::default().queue_family_index(family);
|
||||
// SAFETY: the infos are valid, and every object is this toucher's.
|
||||
unsafe {
|
||||
self.pool = vk_device.create_command_pool(&pool_info, None)?;
|
||||
let buffer_info = vk::CommandBufferAllocateInfo::default()
|
||||
.command_pool(self.pool)
|
||||
.level(vk::CommandBufferLevel::PRIMARY)
|
||||
.command_buffer_count(1);
|
||||
self.buffer = vk_device.allocate_command_buffers(&buffer_info)?[0];
|
||||
if timestamped {
|
||||
let query_info = vk::QueryPoolCreateInfo::default()
|
||||
.query_type(vk::QueryType::TIMESTAMP)
|
||||
.query_count(1);
|
||||
self.timestamps = vk_device.create_query_pool(&query_info, None)?;
|
||||
}
|
||||
self.fence = vk_device.create_fence(&vk::FenceCreateInfo::default(), None)?;
|
||||
let begin = vk::CommandBufferBeginInfo::default();
|
||||
vk_device.begin_command_buffer(self.buffer, &begin)?;
|
||||
if timestamped {
|
||||
vk_device.cmd_reset_query_pool(self.buffer, self.timestamps, 0, 1);
|
||||
let stage = vk::PipelineStageFlags::BOTTOM_OF_PIPE;
|
||||
vk_device.cmd_write_timestamp(self.buffer, stage, self.timestamps, 0);
|
||||
}
|
||||
vk_device.end_command_buffer(self.buffer)
|
||||
}
|
||||
}
|
||||
|
||||
/// Submits the buffer, where its last submission completed; where it is still pending, the
|
||||
/// GPU has work ahead of it on its queue, and nothing is submitted. Where the device
|
||||
/// recovered since the objects were made, they are made again on its new `VkDevice` first.
|
||||
fn touch(&mut self) -> Result<(), String> {
|
||||
if !self.generation.serves(&self.queue) {
|
||||
// The old objects go once the new ones are made, on the `VkDevice` they were made on.
|
||||
*self = Toucher::new(&self.device)
|
||||
.map_err(|e| format!("after the device's recovery: {e}"))?;
|
||||
log::debug!(
|
||||
target: TARGET,
|
||||
"the toucher's objects were made again on the device's new VkDevice"
|
||||
);
|
||||
}
|
||||
let made_on = self.generation.device().clone();
|
||||
// SAFETY: the handles are used while the generation, which `made_on` holds, lives.
|
||||
let vk_device = unsafe { made_on.raw() }.device;
|
||||
let (buffer, fence) = (self.buffer, self.fence);
|
||||
if self.pending {
|
||||
// SAFETY: the fence is this toucher's.
|
||||
let done = made_on.with_loader_word(|| unsafe {
|
||||
let done = vk_device.get_fence_status(fence)?;
|
||||
if done {
|
||||
vk_device.reset_fences(&[fence])?;
|
||||
}
|
||||
Ok::<bool, vk::Result>(done)
|
||||
});
|
||||
match done {
|
||||
Ok(true) => self.pending = false,
|
||||
Ok(false) => return Ok(()),
|
||||
Err(e) => return Err(format!("its fence answered {e}")),
|
||||
}
|
||||
}
|
||||
let buffers = [buffer];
|
||||
let submit = [vk::SubmitInfo::default().command_buffers(&buffers)];
|
||||
// SAFETY: the submission is the closure's only call, keeps no handle and waits for
|
||||
// nothing; the buffer is executable and not pending (its fence signalled), and the fence
|
||||
// is unsignalled. The queue is the one the generation was taken with.
|
||||
let submitted = unsafe {
|
||||
self.generation.with_queue(&self.queue, |queue| {
|
||||
vk_device.queue_submit(queue, &submit, fence)
|
||||
})
|
||||
};
|
||||
// A recovery moved the queue as it was submitted to: the next touch makes the objects
|
||||
// again.
|
||||
let Some(submitted) = submitted else {
|
||||
return Ok(());
|
||||
};
|
||||
submitted.map_err(|e| format!("its submission was refused ({e})"))?;
|
||||
self.pending = true;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Toucher {
|
||||
/// Waits up to [`LAST_WAIT`] for the last submission, then destroys the objects on the
|
||||
/// generation they were made on; on a parked one, leaves them as they are (the module docs).
|
||||
fn drop(&mut self) {
|
||||
if self.generation.is_parked() {
|
||||
log::debug!(
|
||||
target: TARGET,
|
||||
"the toucher's objects are left on the device's parked VkDevice"
|
||||
);
|
||||
return;
|
||||
}
|
||||
let made_on = self.generation.device().clone();
|
||||
// SAFETY: the handles are used while the generation, which `made_on` holds, lives: its
|
||||
// `VkDevice`, on which every object here was made, whether or not it still serves.
|
||||
let vk_device = unsafe { made_on.raw() }.device;
|
||||
let pending = self.pending;
|
||||
let (pool, timestamps, fence) = (self.pool, self.timestamps, self.fence);
|
||||
made_on.with_loader_word(|| {
|
||||
// SAFETY: the objects are this toucher's; its last submission completed or is given
|
||||
// up on after the wait, on a device that answers no more.
|
||||
unsafe {
|
||||
if pending {
|
||||
let nanos = u64::try_from(LAST_WAIT.as_nanos()).unwrap_or(u64::MAX);
|
||||
let _ = vk_device.wait_for_fences(&[fence], true, nanos);
|
||||
}
|
||||
if fence != vk::Fence::null() {
|
||||
vk_device.destroy_fence(fence, None);
|
||||
}
|
||||
if timestamps != vk::QueryPool::null() {
|
||||
vk_device.destroy_query_pool(timestamps, None);
|
||||
}
|
||||
if pool != vk::CommandPool::null() {
|
||||
vk_device.destroy_command_pool(pool, None);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
const S: Duration = Duration::from_secs(1);
|
||||
|
||||
/// The time `secs` seconds after the clock's start.
|
||||
fn at(secs: f64) -> MonoTime {
|
||||
MonoTime::from_nanos((secs * 1e9) as u64)
|
||||
}
|
||||
|
||||
/// No commit yet: the thread parks.
|
||||
#[test]
|
||||
fn a_device_never_committed_to_rests() {
|
||||
let mut keep = Keep::default();
|
||||
assert_eq!(keep.look(0, at(0.0)), Look::Rest);
|
||||
assert_eq!(keep.look(0, at(600.0)), Look::Rest);
|
||||
}
|
||||
|
||||
/// While commits come between looks, nothing is submitted; at each look after the last, one
|
||||
/// submission, until [`AWAKE_FOR`] after the look that saw it, when the thread parks; a commit
|
||||
/// after that starts the looks again, for another [`AWAKE_FOR`].
|
||||
#[test]
|
||||
fn it_stops_awake_for_after_the_last_work_and_starts_again_on_new_work() {
|
||||
let step = look(None);
|
||||
let mut keep = Keep::default();
|
||||
let mut now = at(10.0);
|
||||
let mut last = now;
|
||||
let mut work = 0;
|
||||
for _ in 0..4 {
|
||||
work += 1;
|
||||
assert_eq!(keep.look(work, now), Look::Busy);
|
||||
last = now;
|
||||
now = now.saturating_add(step);
|
||||
}
|
||||
while now.saturating_duration_since(last) < AWAKE_FOR {
|
||||
assert_eq!(keep.look(work, now), Look::Touch, "at {now:?}");
|
||||
now = now.saturating_add(step);
|
||||
}
|
||||
assert_eq!(keep.look(work, last.saturating_add(AWAKE_FOR)), Look::Rest);
|
||||
assert_eq!(keep.look(work, now.saturating_add(600 * S)), Look::Rest);
|
||||
assert_eq!(keep.seen(), work);
|
||||
|
||||
let again = now.saturating_add(900 * S);
|
||||
work += 1;
|
||||
assert_eq!(keep.look(work, again), Look::Busy);
|
||||
assert_eq!(keep.look(work, again.saturating_add(step)), Look::Touch);
|
||||
let near_end = again.saturating_add(AWAKE_FOR - step);
|
||||
assert_eq!(keep.look(work, near_end), Look::Touch);
|
||||
assert_eq!(keep.look(work, again.saturating_add(AWAKE_FOR)), Look::Rest);
|
||||
}
|
||||
|
||||
/// The GPU goes under two looks without work: a commit right after one look shows at the
|
||||
/// next, and the look after submits.
|
||||
#[test]
|
||||
fn the_gpu_goes_under_two_looks_without_work() {
|
||||
let step = look(None);
|
||||
let mut keep = Keep::default();
|
||||
let first = at(1.0);
|
||||
assert_eq!(keep.look(1, first), Look::Busy);
|
||||
let commit = first.saturating_add(Duration::from_millis(1));
|
||||
assert_eq!(keep.look(2, first.saturating_add(step)), Look::Busy);
|
||||
let touch = first.saturating_add(2 * step);
|
||||
assert_eq!(keep.look(2, touch), Look::Touch);
|
||||
assert!(touch.saturating_duration_since(commit) < 2 * step);
|
||||
}
|
||||
|
||||
/// The thread looks every quarter of sysfs's delay, at least [`LEAST_LOOK`] apart, else every
|
||||
/// [`UNREAD_LOOK`].
|
||||
#[test]
|
||||
fn it_looks_every_quarter_of_the_autosuspend_delay() {
|
||||
assert_eq!(look(Some("5000\n")), Duration::from_millis(1250));
|
||||
assert_eq!(look(Some("10000")), Duration::from_millis(2500));
|
||||
assert_eq!(look(Some("20\n")), LEAST_LOOK);
|
||||
assert_eq!(look(None), UNREAD_LOOK);
|
||||
assert_eq!(look(Some("")), UNREAD_LOOK);
|
||||
assert_eq!(look(Some("-1\n")), UNREAD_LOOK);
|
||||
assert_eq!(look(Some("0\n")), UNREAD_LOOK);
|
||||
}
|
||||
|
||||
/// A device whose `power/control` reads `on` may not suspend, and one whose file reads
|
||||
/// anything else, or that has none, may (the module docs, "Where the kernel keeps the GPU
|
||||
/// up").
|
||||
#[test]
|
||||
fn a_device_whose_power_control_reads_on_may_not_suspend() {
|
||||
assert!(!may_suspend(Some("on\n")));
|
||||
assert!(!may_suspend(Some("on")));
|
||||
assert!(may_suspend(Some("auto\n")));
|
||||
assert!(may_suspend(Some("")));
|
||||
assert!(may_suspend(None));
|
||||
}
|
||||
|
||||
/// While the device's `power/control` reads `on`, the thread's looks of the idle device go to
|
||||
/// no toucher; once it reads `auto`, the next looks do, without a commit between.
|
||||
#[test]
|
||||
fn the_thread_touches_only_while_the_device_may_suspend() {
|
||||
let device = crate::gpu::device::tests::dev();
|
||||
let power = std::env::temp_dir().join(format!("rvg-awake-power-{}", std::process::id()));
|
||||
std::fs::create_dir_all(&power).unwrap();
|
||||
let control = power.join("control");
|
||||
std::fs::write(&control, "on\n").unwrap();
|
||||
let mut awake = Awake::looking(&device.raw, Duration::from_millis(1), Some(power.clone()));
|
||||
let touches = || {
|
||||
let shared = awake.shared.as_ref().expect("the thread started");
|
||||
shared.touches.load(Ordering::SeqCst)
|
||||
};
|
||||
awake.touch();
|
||||
std::thread::sleep(Duration::from_millis(100));
|
||||
assert_eq!(touches(), 0, "no touch while power/control reads on");
|
||||
std::fs::write(&control, "auto\n").unwrap();
|
||||
// Up to 10 s, in steps of 5 ms.
|
||||
for _ in 0..2000 {
|
||||
if touches() > 0 {
|
||||
break;
|
||||
}
|
||||
std::thread::sleep(Duration::from_millis(5));
|
||||
}
|
||||
assert!(touches() > 0, "touches once power/control reads auto");
|
||||
awake.stop();
|
||||
std::fs::remove_dir_all(&power).unwrap();
|
||||
}
|
||||
|
||||
/// The submission runs on the device: its fence signals, and the buffer, recorded once, is
|
||||
/// submitted again after it.
|
||||
#[test]
|
||||
fn the_touch_runs_on_the_gpu_and_runs_again() {
|
||||
let device = crate::gpu::device::tests::dev();
|
||||
let mut toucher = Toucher::new(&device.raw).unwrap();
|
||||
// SAFETY: the handles are used while the device lives.
|
||||
let vk_device = unsafe { device.raw.raw() }.device;
|
||||
for _ in 0..3 {
|
||||
toucher.touch().unwrap();
|
||||
assert!(toucher.pending);
|
||||
// SAFETY: the fence is the toucher's.
|
||||
let waited = device.raw.with_loader_word(|| unsafe {
|
||||
vk_device.wait_for_fences(&[toucher.fence], true, 5_000_000_000)
|
||||
});
|
||||
assert_eq!(waited, Ok(()));
|
||||
}
|
||||
}
|
||||
|
||||
/// A touch after the device's recovery runs on its new `VkDevice`: the toucher's objects are
|
||||
/// made again there, and its fence signals.
|
||||
#[test]
|
||||
fn a_touch_after_the_devices_recovery_runs_on_its_new_device() {
|
||||
// A device of its own, as the recovery moves every user of the device.
|
||||
let device = rt::Device::system_default().expect("a runtime device");
|
||||
let mut toucher = Toucher::new(&device).unwrap();
|
||||
let wait = |toucher: &Toucher| {
|
||||
// SAFETY: the handles are used while the toucher's generation lives.
|
||||
let vk_device = unsafe { toucher.generation.raw() }.device;
|
||||
// SAFETY: the fence is the toucher's, on its generation's device.
|
||||
let waited = toucher.generation.device().with_loader_word(|| unsafe {
|
||||
vk_device.wait_for_fences(&[toucher.fence], true, 5_000_000_000)
|
||||
});
|
||||
assert_eq!(waited, Ok(()));
|
||||
};
|
||||
toucher.touch().unwrap();
|
||||
assert!(toucher.pending);
|
||||
wait(&toucher);
|
||||
// SAFETY: only the handle is read, while the generation lives.
|
||||
let first = unsafe { toucher.generation.raw() }.device.handle();
|
||||
|
||||
device.recover_for_test().expect("the recovery");
|
||||
for _ in 0..2 {
|
||||
toucher.touch().unwrap();
|
||||
assert!(toucher.pending);
|
||||
wait(&toucher);
|
||||
}
|
||||
// SAFETY: as above.
|
||||
let second = unsafe { toucher.generation.raw() }.device.handle();
|
||||
assert_ne!(first, second, "the objects are the new VkDevice's");
|
||||
assert!(toucher.generation.serves(&toucher.queue));
|
||||
}
|
||||
|
||||
/// A process that exits amid its thread's touches ends with its exit's status: the exit
|
||||
/// gate's hook stops the touches before the driver's destructors run (the module docs, "At
|
||||
/// the process's exit"). Each child looks every millisecond, so its thread touches the GPU
|
||||
/// throughout its exit.
|
||||
#[test]
|
||||
fn an_exit_amid_touches_ends_with_its_status() {
|
||||
const TEST: &str = "awake::tests::an_exit_amid_touches_ends_with_its_status";
|
||||
if std::env::var("RVG_CHILD").as_deref() == Ok(TEST) {
|
||||
let device = crate::gpu::device::tests::dev();
|
||||
let awake = Awake::looking(&device.raw, Duration::from_millis(1), None);
|
||||
awake.touch();
|
||||
std::thread::sleep(Duration::from_millis(50));
|
||||
std::process::exit(0);
|
||||
}
|
||||
for run in 0..8 {
|
||||
let out = std::process::Command::new(std::env::current_exe().unwrap())
|
||||
.args(["--exact", TEST, "--nocapture", "--test-threads=1"])
|
||||
.env("RVG_CHILD", TEST)
|
||||
.output()
|
||||
.unwrap();
|
||||
assert_eq!(out.status.code(), Some(0), "run {run}: {out:?}");
|
||||
}
|
||||
}
|
||||
|
||||
/// A device's `Awake` of a test counts nothing and wakes nothing.
|
||||
#[test]
|
||||
fn a_default_awake_keeps_nothing() {
|
||||
let mut awake = Awake::default();
|
||||
awake.touch();
|
||||
assert!(awake.shared.is_none());
|
||||
awake.stop();
|
||||
}
|
||||
|
||||
/// The device's end stops its thread and waits for it, at once wherever the thread is: parked
|
||||
/// for the first commit, waiting an hour for its next look after one, or touching every
|
||||
/// millisecond with a toucher made, which it destroys as it ends (the module docs).
|
||||
#[test]
|
||||
fn a_stop_ends_the_thread_and_waits_for_it() {
|
||||
let device = crate::gpu::device::tests::dev();
|
||||
let hour = Duration::from_secs(3600);
|
||||
for (look, touched) in [
|
||||
(hour, false),
|
||||
(hour, true),
|
||||
(Duration::from_millis(1), true),
|
||||
] {
|
||||
let mut awake = Awake::looking(&device.raw, look, None);
|
||||
if touched {
|
||||
awake.touch();
|
||||
std::thread::sleep(Duration::from_millis(50));
|
||||
}
|
||||
let (done, stopped) = std::sync::mpsc::channel();
|
||||
let stopping = std::thread::Builder::new().spawn(move || {
|
||||
awake.stop();
|
||||
done.send(awake.thread.is_none()).unwrap();
|
||||
});
|
||||
stopping.unwrap();
|
||||
let ended = stopped.recv_timeout(Duration::from_secs(10));
|
||||
assert_eq!(
|
||||
ended,
|
||||
Ok(true),
|
||||
"looking every {look:?}, touched: {touched}"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
//!
|
||||
//! Core is generic over one `P: Platform` (D3). Its associated types name every Metal object kind
|
||||
//! core touches, so a handle flows into another Metal call with its kind checked at compile time.
|
||||
//! Two implementations: `reims_vgpu_vulkan::VulkanPlatform` and
|
||||
//! Two implementations: `reims_vgpu_vulkan::rt_platform::RtPlatform` and
|
||||
//! `core::testkit::platform::FakePlatform`.
|
||||
|
||||
pub mod blit;
|
||||
|
||||
@@ -276,15 +276,6 @@ pub trait CommandQueue<P: Platform>: Handle {
|
||||
fn set_label(&self, label: &str);
|
||||
}
|
||||
|
||||
/// A command buffer's completion as a sync file, which another device waits for on its GPU
|
||||
/// ([`CommandBuffer::export_completion_sync_file`]): an open descriptor on Linux and macOS.
|
||||
#[cfg(unix)]
|
||||
pub type SyncFile = std::os::fd::OwnedFd;
|
||||
/// On Windows the runtime exports no sync file, so the type has no values, and a caller always
|
||||
/// waits for a command buffer on the host.
|
||||
#[cfg(windows)]
|
||||
pub type SyncFile = std::convert::Infallible;
|
||||
|
||||
/// `id<MTLCommandBuffer>` (`MTLCommandBufferSPI` included).
|
||||
pub trait CommandBuffer<P: Platform>: Handle {
|
||||
/// sel: addCompletedHandler:
|
||||
@@ -423,30 +414,6 @@ pub trait CommandBuffer<P: Platform>: Handle {
|
||||
/// ([`Buffer::make_memory`](super::resource::Buffer::make_memory)), and was dropped. Nothing
|
||||
/// by default, for a platform that defers no buffer's memory.
|
||||
fn fail_out_of_memory(&self) {}
|
||||
/// The platform's own, no Metal call: asked before the commit, the buffer's completion is
|
||||
/// exported as a sync file once it is committed ([`Self::export_completion_sync_file`]).
|
||||
/// `false` where the platform exports none, the default: the caller waits for the buffer on
|
||||
/// the host.
|
||||
fn add_completion_sync_file(&self) -> bool {
|
||||
false
|
||||
}
|
||||
/// The platform's own, no Metal call: after the commit, the buffer's completion as a sync
|
||||
/// file, asked for before it ([`Self::add_completion_sync_file`]), which a device of another
|
||||
/// driver waits for on its GPU ([`Self::encode_wait_for_sync_file`]): `Some(Some(file))`;
|
||||
/// `Some(None)` where the buffer has finished, so there is nothing to wait for (its
|
||||
/// [`Self::status`] tells how it ended); `None` where the platform refuses it, the default:
|
||||
/// the caller waits for the buffer on the host.
|
||||
fn export_completion_sync_file(&self) -> Option<Option<SyncFile>> {
|
||||
None
|
||||
}
|
||||
/// The platform's own, no Metal call: before any encoder, the buffer's work waits on its GPU
|
||||
/// for the sync file it is given, another device's completion
|
||||
/// ([`Self::export_completion_sync_file`]); the buffer's device takes the file. `false`, the
|
||||
/// file closed, where the platform cannot, the default: the caller waits for that completion
|
||||
/// on the host.
|
||||
fn encode_wait_for_sync_file(&self, _file: SyncFile) -> bool {
|
||||
false
|
||||
}
|
||||
/// The platform's own, no Metal call: before any encoder, the caller's word that no
|
||||
/// compute encoder of the buffer, nor of the parts cut from it ([`Self::split`],
|
||||
/// [`Self::part`]), is sent a command predication record (`encodeStartIf:...`,
|
||||
|
||||
@@ -251,17 +251,6 @@ pub trait GpuDevice<P: Platform>: Handle {
|
||||
/// queue between command queues answers `new_command_queue`'s queue. Never nil-checked; a raise
|
||||
/// inside it dies at the call, as one inside `newCommandQueue` does.
|
||||
fn new_command_queue_unshared(&self) -> Option<P::CommandQueue>;
|
||||
/// No Metal counterpart: a queue as [`new_command_queue`](GpuDevice::new_command_queue)'s
|
||||
/// whose command buffers carry blits between the device's buffers alone, run by a copy
|
||||
/// engine of the GPU apart from the engine its render and compute work runs on (a queue
|
||||
/// family of transfers alone), so that its copies neither wait behind another queue's
|
||||
/// command buffers nor take that engine's time while they cross the GPU's link: the window's
|
||||
/// mirror's copies into host memory (`reims_vgpu::graphics::mirror`). `None` where the
|
||||
/// platform has no such queue to give, the default: the Vulkan platform's runtime gives a
|
||||
/// program no queue on a copy engine.
|
||||
fn new_command_queue_for_copies(&self) -> Option<P::CommandQueue> {
|
||||
None
|
||||
}
|
||||
/// No Metal counterpart: how many times the platform recovered the device's GPU so far, its
|
||||
/// lost device made again behind the same device object (the Vulkan platform's runtime makes
|
||||
/// a new `VkDevice`, `device-recovered`). The textures, pipelines and pooled buffers made
|
||||
|
||||
@@ -37,12 +37,6 @@ use crate::core::raise::{OnFault, RaiseResult};
|
||||
/// of Metal's names it.
|
||||
pub const UNSHARED_QUEUE: &str = "newCommandQueue (unshared)";
|
||||
|
||||
/// The name the fake logs and scripts [`GpuDevice::new_command_queue_for_copies`] under, where
|
||||
/// its world gives such queues ([`World::give_copy_queues`]): no selector of Metal's names it.
|
||||
///
|
||||
/// [`World::give_copy_queues`]: crate::core::testkit::objects::World::give_copy_queues
|
||||
pub const COPY_QUEUE: &str = "newCommandQueue (copies)";
|
||||
|
||||
/// The name the fake logs and scripts [`GpuDevice::new_buffer_of_length_padding_unobserved`]
|
||||
/// under: no selector of Metal's names it.
|
||||
pub const PADDING_UNOBSERVED_BUFFER: &str = "newBufferWithLength:options: (padding unobserved)";
|
||||
@@ -433,20 +427,6 @@ impl GpuDevice<FakePlatform> for Fk<kind::Device> {
|
||||
}))
|
||||
}
|
||||
|
||||
/// `None`, unlogged, as the platform's default, unless the world gives such queues
|
||||
/// ([`World::give_copy_queues`]): then logged and scripted under [`COPY_QUEUE`], as no
|
||||
/// selector of Metal's names it; its queue is `newCommandQueue`'s.
|
||||
///
|
||||
/// [`World::give_copy_queues`]: crate::core::testkit::objects::World::give_copy_queues
|
||||
fn new_command_queue_for_copies(&self) -> Option<<FakePlatform as Platform>::CommandQueue> {
|
||||
if !self.world().gives_copy_queues() {
|
||||
return None;
|
||||
}
|
||||
fatal(self.make(Policy::Fatal, COPY_QUEUE, vec![], |w| {
|
||||
Some(w.new_obj::<kind::CommandQueue>(Model::None))
|
||||
}))
|
||||
}
|
||||
|
||||
/// Unlogged, as the property the platform answers it from: [`World::copy_guest_ram`].
|
||||
///
|
||||
/// [`World::copy_guest_ram`]: crate::core::testkit::objects::World::copy_guest_ram
|
||||
|
||||
@@ -882,11 +882,6 @@ pub struct World {
|
||||
///
|
||||
/// [`GpuDevice::copies_guest_ram`]: crate::core::platform::device::GpuDevice::copies_guest_ram
|
||||
guest_ram_copies: AtomicBool,
|
||||
/// Whether the devices' [`GpuDevice::new_command_queue_for_copies`] gives a queue
|
||||
/// ([`World::give_copy_queues`]).
|
||||
///
|
||||
/// [`GpuDevice::new_command_queue_for_copies`]: crate::core::platform::device::GpuDevice::new_command_queue_for_copies
|
||||
copy_queues: AtomicBool,
|
||||
/// Whether the devices' `GpuDevice::new_exported_surface` makes a surface
|
||||
/// ([`World::give_exported_surfaces`]).
|
||||
exported_surfaces: AtomicBool,
|
||||
@@ -963,7 +958,6 @@ impl World {
|
||||
notifications: Mutex::new(Vec::new()),
|
||||
splits: AtomicBool::new(false),
|
||||
guest_ram_copies: AtomicBool::new(false),
|
||||
copy_queues: AtomicBool::new(false),
|
||||
exported_surfaces: AtomicBool::new(false),
|
||||
recoveries: AtomicU64::new(0),
|
||||
linear_rows: AtomicU64::new(0),
|
||||
@@ -1130,20 +1124,6 @@ impl World {
|
||||
self.guest_ram_copies.load(Ordering::SeqCst)
|
||||
}
|
||||
|
||||
/// Has the devices give a queue for copies ([`GpuDevice::new_command_queue_for_copies`]),
|
||||
/// logged under [`COPY_QUEUE`], or not, as the platform's default answers; not at first.
|
||||
///
|
||||
/// [`GpuDevice::new_command_queue_for_copies`]: crate::core::platform::device::GpuDevice::new_command_queue_for_copies
|
||||
/// [`COPY_QUEUE`]: super::impls::device::COPY_QUEUE
|
||||
pub fn give_copy_queues(&self, on: bool) {
|
||||
self.copy_queues.store(on, Ordering::SeqCst);
|
||||
}
|
||||
|
||||
/// Whether the devices give a queue for copies ([`World::give_copy_queues`]).
|
||||
pub fn gives_copy_queues(&self) -> bool {
|
||||
self.copy_queues.load(Ordering::SeqCst)
|
||||
}
|
||||
|
||||
/// Has the devices make an exported surface (`GpuDevice::new_exported_surface`, on Unix
|
||||
/// hosts), each plane a texture logged under `impls::device::EXPORTED_SURFACE_PLANE`, or none,
|
||||
/// as the platform's default answers; none at first.
|
||||
|
||||
@@ -1,31 +1,16 @@
|
||||
//! Which GPU the library opens where the host has more than one Vulkan device: the runtime's
|
||||
//! default device is made of the physical device this module picks, once a process ([`chosen`]),
|
||||
//! and every default open reaches it (`crate::platform`'s `default_device`).
|
||||
//! Which GPU the library opens where the host has more than one Vulkan device: the rt
|
||||
//! platform's one device is made of the physical device this module picks ([`chosen`]), of the
|
||||
//! physical devices of the platform's instance that meet metal2vulkan-rt's floor
|
||||
//! (`crate::rt_platform::device`).
|
||||
//!
|
||||
//! **Candidates.** The physical devices are those the window's probe lists, in the loader's order
|
||||
//! (`crate::os`'s `seen_devices`, read through the probe's one instance). A candidate is one the
|
||||
//! runtime makes a device of ([`Seen::usable`]): at Vulkan 1.2 or later, with a queue family of
|
||||
//! graphics and compute work, and a `deviceUUID`, which names it to the runtime: the registry ID
|
||||
//! the runtime answers for the physical device of that UUID names it ([`listed_registry_id`]).
|
||||
//! And it is one a display's window presents on: it lists every device extension the window's
|
||||
//! swapchain is made with ([`Seen::window_lacks`]): on the Vulkan platform `VK_KHR_swapchain` and
|
||||
//! the OS's own (`crate::os`'s `WINDOW_DEVICE_EXTENSIONS`: `VK_EXT_metal_objects` on macOS, none
|
||||
//! on Linux and Windows), on the rt platform `VK_KHR_swapchain`, which rt's floor takes. The rule
|
||||
//! is the same on every OS, and no vendor, device or driver takes part in it.
|
||||
//!
|
||||
//! **Why the window decides.** The platform names the window's device extensions in the options
|
||||
//! of every device it makes where a candidate lists them (`crate::os`'s `add_window_extensions`),
|
||||
//! and the runtime refuses to make a device that lacks one, so a device that lacks one is never
|
||||
//! made: not picked, not timed, and not the compositor's GPU ([`compositor_gpu`]). Before, the
|
||||
//! extensions were named only where every device listed them, and a device that lacked one was a
|
||||
//! candidate like any other. On the M3 Max with Mesa's KosmicKrisp beside MoltenVK (Mesa 26.3.1,
|
||||
//! its manifest where Homebrew's `mesa` puts it), the loader listed KosmicKrisp first, which lists
|
||||
//! no `VK_EXT_metal_objects`; the choice timed it at 1.71 ms to MoltenVK's 3.01 ms and took it,
|
||||
//! no device was given the window's extensions, and `firmware/ambrosia/check-boot.sh`'s
|
||||
//! full-screen Metal app presented 294 frames at 30 fps and dropped 106, where on MoltenVK alone
|
||||
//! it presented 601 at 60 fps (**measured**, 2026-11-19, a macOS 27.0.1 guest under HVF,
|
||||
//! m3-max-57095 against m3-max-57094). A device passed over for the window is logged with what it
|
||||
//! lacks, on its own line and on the pick's.
|
||||
//! **Candidates.** The physical devices are those the platform's instance lists, in the loader's
|
||||
//! order, as `crate::os`'s `seen` reads each. A candidate is one rt makes a device of
|
||||
//! ([`Seen::usable`]): at Vulkan 1.2 or later, with a queue family of graphics and compute work,
|
||||
//! and a `deviceUUID`. And it is one a display's window presents on: it lists every device
|
||||
//! extension the window's swapchain is made with ([`Seen::window_lacks`]), `VK_KHR_swapchain`,
|
||||
//! which rt's floor takes. The rule is the same on every OS, and no vendor, device or driver
|
||||
//! takes part in it. A device passed over for the window is logged with what it lacks, on its own
|
||||
//! line and on the pick's.
|
||||
//!
|
||||
//! **The pick.**
|
||||
//! - Where the host's user picked a device, through `MESA_VK_DEVICE_SELECT` (with or without its
|
||||
@@ -43,64 +28,23 @@
|
||||
//! the layer's default, which the library cannot tell, and the layer lists the GPU it selects
|
||||
//! first, so there the pick is the loader's first candidate (read from Mesa's documentation of
|
||||
//! `DRI_PRIME`). Where no variable set names a candidate, the pick is the loader's first
|
||||
//! candidate, and the log line says that none names one. The runtime alone ranks the devices
|
||||
//! by kind first, so left to itself it opens a discrete GPU even where the user's variable
|
||||
//! named an integrated one.
|
||||
//! candidate, and the log line says that none names one.
|
||||
//! - A device the window cannot present on is passed over even where the user's variable names
|
||||
//! it, as one below Vulkan 1.2 is: the window's extensions are named before the pick, from the
|
||||
//! candidates, and the runtime refuses to make a device that lacks one, so the device would not
|
||||
//! open. A host's user who wants such a device hides the other drivers from the loader (its
|
||||
//! `VK_DRIVER_FILES`): with no candidate, no device is given the window's extensions, and the
|
||||
//! runtime's default device opens as before.
|
||||
//! it, as one below Vulkan 1.2 is.
|
||||
//! - Otherwise, where one candidate is a GPU (any kind but a CPU implementation such as
|
||||
//! llvmpipe), that GPU, never timed.
|
||||
//! - Where several are, the one that ran a fixed workload fastest ([`measured`]): the display's
|
||||
//! composite at a fixed size and one pass over textures in host memory, timed on a device made
|
||||
//! for each GPU and torn down after, apart from the process's own device, which is never one of
|
||||
//! them (`timing.rs`). The verdict is kept in the library's cache
|
||||
//! directory, under a key of every timed GPU's UUID and driver version (`verdict.rs`), so only
|
||||
//! the first open after a GPU or driver change times them; a verdict that does not read times
|
||||
//! them again. Where the runtime refuses any GPU's workload, nothing is kept and the runtime's
|
||||
//! own order of the candidates stands.
|
||||
//! - A CPU implementation is picked only where no GPU is a candidate, and never timed. The
|
||||
//! runtime's own order: discrete GPUs, then integrated, virtual and CPU ones, each kind in the
|
||||
//! loader's order (`Device::system_default_with`, read from code). The runtime tries the
|
||||
//! devices it makes in that order and takes the first it does not refuse, so where the first
|
||||
//! lacks one of the window's extensions it makes the next; the choice opens its pick by registry
|
||||
//! ID wherever the runtime's first try is another device ([`runtime_first`]).
|
||||
//! llvmpipe), that GPU.
|
||||
//! - Where several are, the first by kind: discrete GPUs, then integrated, virtual and CPU ones,
|
||||
//! each kind in the loader's order. No GPU is timed. A CPU implementation is picked only where
|
||||
//! no GPU is a candidate.
|
||||
//!
|
||||
//! No vendor or device ID takes part: what a device reports picks the GPUs to time, and their
|
||||
//! times pick among them. The kind, the memory heaps and the PCIe link do not tell a GPU's speed
|
||||
//! for the guest's work (an integrated GPU runs from 2 compute units to 40, and a discrete one of
|
||||
//! 4 GiB may be a GTX 1650 or an RX 550), so where they cannot decide alone, a measurement does.
|
||||
//!
|
||||
//! **Measured** on 2026-11-08 (Mesa 26.2.6, loader 1.4.363), the workload's two timed frames:
|
||||
//! - um790: the Radeon 780M took 30 ms and the RX 550 40 ms, so the 780M is picked. The runtime's
|
||||
//! order opened the RX 550, which composites a 3840x2400 frame in 40.4 ms to the 780M's 24.4 ms
|
||||
//! (reims-vgpu's `composite_cost`).
|
||||
//! - gem10: the RX 7900 XTX took 9 ms and the Radeon 780M 29 ms, so the XTX stays the pick.
|
||||
//! - The measurement took 197 ms in all on um790 and about 180 ms on gem10, once; a first open
|
||||
//! that reads the kept verdict took 39 to 45 ms on either.
|
||||
//!
|
||||
//! **Unchanged hosts.** Where the pick is the device the runtime tries first for its default
|
||||
//! device, it is made as before, by `Device::system_default_with` ([`chosen`] answers `None`). The
|
||||
//! choice is logged once, at info: every device seen, each GPU's time and what its measurement
|
||||
//! cost in all, then the one picked and why, with each device passed over for the window and why
|
||||
//! ([`choice_line`]).
|
||||
|
||||
mod timing;
|
||||
mod verdict;
|
||||
//! No vendor or device ID takes part: what a device reports picks it. The choice is logged once,
|
||||
//! at info: every device seen, then the one picked and why, with each device passed over for the
|
||||
//! window and why ([`choice_line`]).
|
||||
|
||||
use std::ffi::{CStr, OsString};
|
||||
use std::fmt;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::LazyLock;
|
||||
use std::time::Duration;
|
||||
|
||||
use ash::vk;
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
use crate::core::platform::os::Clock as _;
|
||||
|
||||
/// The log target of the choice's lines.
|
||||
const TARGET: &str = "reims_vgpu_vulkan::device_choice";
|
||||
@@ -145,9 +89,8 @@ pub(crate) struct Seen {
|
||||
/// list the extension.
|
||||
pub(crate) pci: Option<(u32, u32, u32, u32)>,
|
||||
/// The device extensions a display's window's swapchain is made with that it does not list,
|
||||
/// in their order: on the Vulkan platform `VK_KHR_swapchain` and the OS's own (`crate::os`'s
|
||||
/// `window_device_extensions`), on the rt platform `VK_KHR_swapchain`. Empty where it lists
|
||||
/// them all, as a device the window presents on does (the module doc's candidates).
|
||||
/// in their order: `VK_KHR_swapchain`. Empty where it lists them all, as a device the window
|
||||
/// presents on does (the module doc's candidates).
|
||||
pub(crate) window_lacks: Vec<&'static CStr>,
|
||||
}
|
||||
|
||||
@@ -215,7 +158,7 @@ fn named(var: &str, value: &str) -> Option<Named> {
|
||||
}
|
||||
|
||||
/// A physical device's DRM nodes, by major and minor number (`VkPhysicalDeviceDrmPropertiesEXT`):
|
||||
/// what a window system names a GPU by ([`compositor_gpu`]).
|
||||
/// what a window system names a GPU by.
|
||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
|
||||
pub(crate) struct DrmNodes {
|
||||
/// Its primary node, where it has one.
|
||||
@@ -231,44 +174,6 @@ impl DrmNodes {
|
||||
}
|
||||
}
|
||||
|
||||
/// The GPU a window's compositor composites on, against the runtime's own
|
||||
/// ([`compositor_gpu`]).
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum CompositorGpu {
|
||||
/// The runtime's own GPU, or none the probe can tell: the window presents from the
|
||||
/// runtime's device, as on a host of one GPU.
|
||||
Own,
|
||||
/// Another GPU the runtime makes devices of, by its registry ID: the window may present
|
||||
/// from a device of its own there.
|
||||
Other(u64),
|
||||
}
|
||||
|
||||
/// The GPU the compositor that names DRM node `node` composites on, by what the probe read of
|
||||
/// each physical device (`crate::os`'s `seen_devices`), against `own`, the registry
|
||||
/// ID of the runtime's default device: [`CompositorGpu::Other`] only where `node` is a node of a
|
||||
/// candidate (the module doc's) with a registry ID that is not `own`. Every other answer is
|
||||
/// [`CompositorGpu::Own`]: no device lists the node (none lists `VK_EXT_physical_device_drm`, or
|
||||
/// the node is a GPU the runtime cannot use), or it is the runtime's own.
|
||||
pub fn compositor_gpu(node: (u32, u32), own: Option<u64>) -> CompositorGpu {
|
||||
compositor_gpu_of(crate::os::seen_devices(), node, own, Seen::registry_id)
|
||||
}
|
||||
|
||||
/// [`compositor_gpu`] of the devices `seen`, their registry IDs as `registry_id` answers them.
|
||||
fn compositor_gpu_of(
|
||||
seen: &[Seen],
|
||||
node: (u32, u32),
|
||||
own: Option<u64>,
|
||||
registry_id: impl Fn(&Seen) -> Option<u64>,
|
||||
) -> CompositorGpu {
|
||||
let listed = (seen.iter())
|
||||
.filter(|s| s.candidate() && s.drm.is_some_and(|d| d.names(node)))
|
||||
.find_map(®istry_id);
|
||||
match listed {
|
||||
Some(id) if Some(id) != own => CompositorGpu::Other(id),
|
||||
_ => CompositorGpu::Own,
|
||||
}
|
||||
}
|
||||
|
||||
impl Seen {
|
||||
/// Whether it is the device `named` names.
|
||||
fn is(&self, named: Named) -> bool {
|
||||
@@ -281,20 +186,14 @@ impl Seen {
|
||||
}
|
||||
}
|
||||
|
||||
/// Its registry ID, the runtime's for the physical device of its UUID
|
||||
/// ([`listed_registry_id`]), where it has a UUID the runtime lists.
|
||||
pub(crate) fn registry_id(&self) -> Option<u64> {
|
||||
self.uuid.as_ref().and_then(listed_registry_id)
|
||||
}
|
||||
|
||||
/// Whether the runtime makes a device of it: at Vulkan 1.2 or later, with a graphics and
|
||||
/// compute queue family and a UUID.
|
||||
/// Whether rt makes a device of it: at Vulkan 1.2 or later, with a graphics and compute queue
|
||||
/// family and a UUID.
|
||||
pub(crate) fn usable(&self) -> bool {
|
||||
self.api_version >= vk::API_VERSION_1_2 && self.graphics_compute && self.uuid.is_some()
|
||||
}
|
||||
|
||||
/// Whether it is a candidate (the module doc's): the runtime makes a device of it, and a
|
||||
/// display's window presents on it.
|
||||
/// Whether it is a candidate (the module doc's): rt makes a device of it, and a display's
|
||||
/// window presents on it.
|
||||
pub(crate) fn candidate(&self) -> bool {
|
||||
self.usable() && self.window_lacks.is_empty()
|
||||
}
|
||||
@@ -351,10 +250,10 @@ impl Seen {
|
||||
}
|
||||
}
|
||||
|
||||
/// Its log line's description and its registry ID: ash's types answer no `Debug` in this build.
|
||||
/// Its log line's description and its UUID: ash's types answer no `Debug` in this build.
|
||||
impl fmt::Debug for Seen {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "{} [{:x?}]", self.describe(), self.registry_id())
|
||||
write!(f, "{} [{:x?}]", self.describe(), self.uuid)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -379,12 +278,9 @@ pub(crate) enum Why {
|
||||
/// The host's user set selection variables, the first of them this one, and none names a
|
||||
/// candidate: the loader's first candidate.
|
||||
UserNamedNone(&'static str),
|
||||
/// It ran the workload fastest, timed now.
|
||||
Measured,
|
||||
/// It ran the workload fastest when the same GPUs on the same drivers were timed before.
|
||||
Cached,
|
||||
/// It is first in the runtime's own order.
|
||||
RuntimeOrder,
|
||||
/// It is the first of several GPUs by kind (discrete, integrated, virtual, CPU), then in
|
||||
/// the loader's order.
|
||||
KindOrder,
|
||||
}
|
||||
|
||||
impl Why {
|
||||
@@ -393,10 +289,6 @@ impl Why {
|
||||
match self {
|
||||
Why::Only => "the only candidate".to_owned(),
|
||||
Why::OnlyGpu => "the only GPU of the candidates, beside CPU devices".to_owned(),
|
||||
Why::Measured => "the fastest of the GPUs at the choice's workload".to_owned(),
|
||||
Why::Cached => "the fastest of the GPUs at the choice's workload, as measured \
|
||||
before on the same GPUs and drivers"
|
||||
.to_owned(),
|
||||
Why::UserChose(var, named) => {
|
||||
format!("{var} names it ({named}), as the host's user picked")
|
||||
}
|
||||
@@ -408,8 +300,8 @@ impl Why {
|
||||
"{var} is set, but no selection variable set names a candidate here, so the \
|
||||
loader's first candidate"
|
||||
),
|
||||
Why::RuntimeOrder => "first of the candidates in the runtime's own order (discrete, \
|
||||
integrated, virtual, CPU)"
|
||||
Why::KindOrder => "first of the candidates by kind (discrete, integrated, virtual, \
|
||||
CPU), then in the loader's order"
|
||||
.to_owned(),
|
||||
}
|
||||
}
|
||||
@@ -419,14 +311,11 @@ impl Why {
|
||||
/// selection variables the host's user set, with what each names ([`user_selection`]), the
|
||||
/// candidate the first of them to name one names, or the loader's first candidate where an index
|
||||
/// comes before it or none names one (the module doc); else the one candidate, or the one GPU
|
||||
/// among the candidates; else, of several GPUs, the one `measure` answers for them (their
|
||||
/// indices in `seen`), or the first candidate of the runtime's own order where it answers none
|
||||
/// (the module doc). `measure` is asked only of two GPUs or more. `None` where no device is a
|
||||
/// candidate.
|
||||
/// among the candidates; else the first candidate by kind (the module doc). `None` where no
|
||||
/// device is a candidate.
|
||||
pub(crate) fn choose(
|
||||
seen: &[Seen],
|
||||
user: &[(&'static str, Option<Named>)],
|
||||
measure: impl FnOnce(&[usize]) -> Option<(usize, Why)>,
|
||||
) -> Option<(usize, Why)> {
|
||||
let candidates: Vec<usize> = (seen.iter().enumerate())
|
||||
.filter(|(_, s)| s.candidate())
|
||||
@@ -456,89 +345,12 @@ pub(crate) fn choose(
|
||||
.collect();
|
||||
match gpus.as_slice() {
|
||||
[only] => Some((*only, Why::OnlyGpu)),
|
||||
[_, _, ..] => measure(&gpus),
|
||||
[] => None,
|
||||
_ => first_of_kinds(seen, Seen::candidate).map(|at| (at, Why::KindOrder)),
|
||||
}
|
||||
.or_else(|| first_of_kinds(seen, Seen::candidate).map(|at| (at, Why::RuntimeOrder)))
|
||||
}
|
||||
|
||||
/// Of the GPUs `gpus` (indices in `seen`), the one that ran the workload fastest: the verdict kept
|
||||
/// at `cache` for them, where it reads (`verdict.rs`), else the fastest of the times `time` answers
|
||||
/// for each, kept at `cache` for the next process; `None` where `time` answers none for any of
|
||||
/// them, and then nothing is kept (the module doc). The times and what they cost in all are
|
||||
/// logged.
|
||||
pub(crate) fn measured(
|
||||
seen: &[Seen],
|
||||
gpus: &[usize],
|
||||
cache: Option<&Path>,
|
||||
mut time: impl FnMut(usize, &Seen) -> Option<Duration>,
|
||||
) -> Option<(usize, Why)> {
|
||||
let timed: Vec<(usize, &Seen)> = (gpus.iter())
|
||||
.map(|&at| Some((at, seen.get(at)?)))
|
||||
.collect::<Option<_>>()?;
|
||||
let key = verdict::key(&timed.iter().map(|(_, s)| *s).collect::<Vec<_>>())?;
|
||||
let kept = cache.and_then(|path| verdict::read(path, &key));
|
||||
if let Some(&(at, _)) = timed.iter().find(|(_, s)| kept.is_some() && s.uuid == kept) {
|
||||
return Some((at, Why::Cached));
|
||||
}
|
||||
let clock = crate::os::OsClock::new();
|
||||
let start = clock.now_mono();
|
||||
let mut times = Vec::with_capacity(timed.len());
|
||||
for &(at, device) in &timed {
|
||||
let Some(took) = time(at, device) else {
|
||||
log::warn!(
|
||||
target: TARGET,
|
||||
"the choice's workload failed on Vulkan device {at}: the runtime's own order \
|
||||
stands, and no verdict is kept"
|
||||
);
|
||||
return None;
|
||||
};
|
||||
times.push((at, device, took));
|
||||
}
|
||||
let &(fastest, device, _) = times.iter().min_by_key(|(_, _, took)| *took)?;
|
||||
log::info!(
|
||||
target: TARGET,
|
||||
"timed {} GPUs for the choice in {:.1} ms in all",
|
||||
times.len(),
|
||||
timing::millis(clock.now_mono().saturating_duration_since(start))
|
||||
);
|
||||
if let (Some(path), Some(pick)) = (cache, device.uuid) {
|
||||
let rows: Vec<([u8; 16], Duration)> = (times.iter())
|
||||
.filter_map(|(_, s, took)| Some((s.uuid?, *took)))
|
||||
.collect();
|
||||
if let Err(e) = verdict::write(path, &key, &pick, &rows) {
|
||||
log::warn!(
|
||||
target: TARGET,
|
||||
"the choice's verdict was not kept at {} ({e}): the next process times the GPUs \
|
||||
again",
|
||||
path.display()
|
||||
);
|
||||
}
|
||||
}
|
||||
Some((fastest, Why::Measured))
|
||||
}
|
||||
|
||||
/// The file the measured pick's verdict is kept in: `device-checks/gpu-choice` under the library's
|
||||
/// cache directory (`crate::platform::cache_directory`); none where there is no such directory.
|
||||
fn verdict_file() -> Option<PathBuf> {
|
||||
Some(
|
||||
crate::platform::cache_directory()?
|
||||
.join("device-checks")
|
||||
.join("gpu-choice"),
|
||||
)
|
||||
}
|
||||
|
||||
/// The device of `seen` the runtime tries first for its default device: of those it makes a
|
||||
/// device of ([`Seen::usable`]), the first of its order of kinds (`Device::system_default_with`,
|
||||
/// read from code). Where it refuses that one, as a device that lacks an extension its options
|
||||
/// name, it makes the next, so a pick that is not this device is opened by its registry ID
|
||||
/// ([`to_open`]).
|
||||
fn runtime_first(seen: &[Seen]) -> Option<usize> {
|
||||
first_of_kinds(seen, Seen::usable)
|
||||
}
|
||||
|
||||
/// Of the devices of `seen` that `keep` keeps, the first of the runtime's order of kinds
|
||||
/// (discrete, integrated, virtual, CPU, any other), then the loader's.
|
||||
/// Of the devices of `seen` that `keep` keeps, the first by kind (discrete, integrated, virtual,
|
||||
/// CPU, any other), then in the loader's order.
|
||||
fn first_of_kinds(seen: &[Seen], keep: impl Fn(&Seen) -> bool) -> Option<usize> {
|
||||
let preference = |kind: vk::PhysicalDeviceType| match kind {
|
||||
vk::PhysicalDeviceType::DISCRETE_GPU => 0,
|
||||
@@ -554,14 +366,6 @@ fn first_of_kinds(seen: &[Seen], keep: impl Fn(&Seen) -> bool) -> Option<usize>
|
||||
.map(|(at, _)| at)
|
||||
}
|
||||
|
||||
/// The device `picked` of `seen` to open by its registry ID ([`Seen::registry_id`]), where the
|
||||
/// runtime tries another first for its default device ([`runtime_first`]): `None` where nothing
|
||||
/// was picked, or the pick is the device the runtime tries first.
|
||||
fn to_open(seen: &[Seen], picked: Option<usize>) -> Option<usize> {
|
||||
let at = picked?;
|
||||
(Some(at) != runtime_first(seen) && at < seen.len()).then_some(at)
|
||||
}
|
||||
|
||||
/// The [`SELECTION_VARIABLES`] `var` answers a value that is not empty for, in their order, each
|
||||
/// with what its value names ([`named`]).
|
||||
fn user_selection(var: impl Fn(&str) -> Option<OsString>) -> Vec<(&'static str, Option<Named>)> {
|
||||
@@ -573,43 +377,15 @@ fn user_selection(var: impl Fn(&str) -> Option<OsString>) -> Vec<(&'static str,
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// The registry ID of the device the process opens as its default device, where it is not the one
|
||||
/// the runtime makes its default device of anyway: read once from the probe's devices and the
|
||||
/// environment, and logged (the module doc). `None` where the runtime's default device is the
|
||||
/// pick, as on a host of one GPU, or where nothing was probed.
|
||||
pub(crate) fn chosen() -> Option<u64> {
|
||||
static CHOSEN: LazyLock<Option<u64>> = LazyLock::new(|| {
|
||||
let seen = crate::os::seen_devices();
|
||||
for (at, device) in seen.iter().enumerate() {
|
||||
log::info!(target: TARGET, "Vulkan device {at}: {}", device.describe());
|
||||
}
|
||||
let file = verdict_file();
|
||||
let picked = choose(
|
||||
seen,
|
||||
&user_selection(|name| std::env::var_os(name)),
|
||||
|gpus| measured(seen, gpus, file.as_deref(), timing::time_on),
|
||||
);
|
||||
log_choice(seen, picked);
|
||||
let at = to_open(seen, picked.map(|(at, _)| at))?;
|
||||
seen.get(at)?.registry_id()
|
||||
});
|
||||
*CHOSEN
|
||||
}
|
||||
|
||||
/// The device of `seen` (an instance's physical devices that meet metal2vulkan-rt's floor, in the
|
||||
/// loader's order) the rt platform opens (`crate::rt_platform`), logged as [`chosen`] logs its
|
||||
/// pick: the device the host's user's selection variables name, else the one GPU, else the first
|
||||
/// of the runtime's own order (discrete, integrated, virtual, CPU). No GPU is timed, as the
|
||||
/// workload runs on metal2vulkan-runtime (`timing.rs`), which the rt platform does not use, and
|
||||
/// no verdict is read or kept. `None` where no device is a candidate.
|
||||
#[cfg(feature = "rt")]
|
||||
pub(crate) fn chosen_untimed(seen: &[Seen]) -> Option<usize> {
|
||||
/// loader's order) the rt platform opens (`crate::rt_platform`), and logged: the device the host's
|
||||
/// user's selection variables name, else the one GPU, else the first by kind (the module doc).
|
||||
/// `None` where no device is a candidate.
|
||||
pub(crate) fn chosen(seen: &[Seen]) -> Option<usize> {
|
||||
for (at, device) in seen.iter().enumerate() {
|
||||
log::info!(target: TARGET, "Vulkan device {at}: {}", device.describe());
|
||||
}
|
||||
let picked = choose(seen, &user_selection(|name| std::env::var_os(name)), |_| {
|
||||
None
|
||||
});
|
||||
let picked = choose(seen, &user_selection(|name| std::env::var_os(name)));
|
||||
log_choice(seen, picked);
|
||||
picked.map(|(at, _)| at)
|
||||
}
|
||||
@@ -628,7 +404,7 @@ fn choice_line(seen: &[Seen], picked: Option<(usize, Why)>) -> String {
|
||||
device.name,
|
||||
why.describe()
|
||||
),
|
||||
None => "no candidate was listed: the runtime's default device".to_owned(),
|
||||
None => "no candidate was listed".to_owned(),
|
||||
};
|
||||
for (at, device) in seen.iter().enumerate() {
|
||||
if let Some(why) = device.window_refusal().filter(|_| device.usable()) {
|
||||
@@ -641,29 +417,6 @@ fn choice_line(seen: &[Seen], picked: Option<(usize, Why)>) -> String {
|
||||
line
|
||||
}
|
||||
|
||||
/// The registry ID the runtime answers for the physical device whose `deviceUUID` is `uuid`,
|
||||
/// which `Device::with_registry_id` opens it by: that of the first of the runtime's identities of
|
||||
/// its physical devices (`Device::identities_with`, with [`crate::platform::device_options`], in
|
||||
/// its order) of that UUID. The identities are read once a process, at the first ask, which only
|
||||
/// a pick the runtime would not make its default device of, or a GPU's timing, makes: a host of
|
||||
/// one GPU never reads them. `None` where the runtime lists no physical device of the UUID, or
|
||||
/// refuses to list them, which is logged: such a device is not opened by ID.
|
||||
fn listed_registry_id(uuid: &[u8; 16]) -> Option<u64> {
|
||||
static LISTED: LazyLock<Vec<rt::PhysicalDeviceIdentity>> = LazyLock::new(|| {
|
||||
rt::Device::identities_with(crate::platform::device_options()).unwrap_or_else(|e| {
|
||||
log::warn!(
|
||||
target: TARGET,
|
||||
"the runtime listed no identities of its physical devices ({e}): no device is \
|
||||
opened by its registry ID"
|
||||
);
|
||||
Vec::new()
|
||||
})
|
||||
});
|
||||
(LISTED.iter())
|
||||
.find(|identity| identity.device_uuid == *uuid)
|
||||
.map(|identity| identity.registry_id)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) mod tests {
|
||||
use super::*;
|
||||
@@ -694,68 +447,6 @@ pub(crate) mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
/// `seen` with DRM nodes `card` (primary) and `render`.
|
||||
fn with_nodes(seen: Seen, card: u32, render: u32) -> Seen {
|
||||
Seen {
|
||||
drm: Some(DrmNodes {
|
||||
primary: Some((226, card)),
|
||||
render: Some((226, render)),
|
||||
}),
|
||||
..seen
|
||||
}
|
||||
}
|
||||
|
||||
/// The compositor's GPU is another only where a candidate other than the runtime's own lists
|
||||
/// the node it names, primary or render; a node no device lists, the runtime's own node, and a
|
||||
/// device the runtime cannot make all answer the runtime's own GPU
|
||||
#[test]
|
||||
fn the_compositors_gpu_is_another_only_where_a_candidate_lists_its_node() {
|
||||
let id = |s: &Seen| s.uuid.map(|u| u64::from(u[0]));
|
||||
let list = [
|
||||
with_nodes(discrete(24, 1), 0, 128),
|
||||
with_nodes(integrated(2, 2), 1, 129),
|
||||
];
|
||||
// The runtime on the discrete GPU, the compositor on the integrated one.
|
||||
assert_eq!(
|
||||
compositor_gpu_of(&list, (226, 129), Some(1), id),
|
||||
CompositorGpu::Other(2)
|
||||
);
|
||||
assert_eq!(
|
||||
compositor_gpu_of(&list, (226, 1), Some(1), id),
|
||||
CompositorGpu::Other(2)
|
||||
);
|
||||
// The compositor on the runtime's own GPU.
|
||||
assert_eq!(
|
||||
compositor_gpu_of(&list, (226, 128), Some(1), id),
|
||||
CompositorGpu::Own
|
||||
);
|
||||
assert_eq!(
|
||||
compositor_gpu_of(&list, (226, 0), Some(1), id),
|
||||
CompositorGpu::Own
|
||||
);
|
||||
// A node no device lists.
|
||||
assert_eq!(
|
||||
compositor_gpu_of(&list, (226, 130), Some(1), id),
|
||||
CompositorGpu::Own
|
||||
);
|
||||
// No device lists its nodes (no `VK_EXT_physical_device_drm`).
|
||||
let bare = [discrete(24, 1), integrated(2, 2)];
|
||||
assert_eq!(
|
||||
compositor_gpu_of(&bare, (226, 129), Some(1), id),
|
||||
CompositorGpu::Own
|
||||
);
|
||||
// A device the runtime cannot make.
|
||||
let old = Seen {
|
||||
api_version: vk::API_VERSION_1_1,
|
||||
..with_nodes(integrated(2, 2), 1, 129)
|
||||
};
|
||||
let list = [with_nodes(discrete(24, 1), 0, 128), old];
|
||||
assert_eq!(
|
||||
compositor_gpu_of(&list, (226, 129), Some(1), id),
|
||||
CompositorGpu::Own
|
||||
);
|
||||
}
|
||||
|
||||
pub(crate) fn integrated(gib: u64, id: u8) -> Seen {
|
||||
seen(
|
||||
"integrated",
|
||||
@@ -778,56 +469,32 @@ pub(crate) mod tests {
|
||||
seen("llvmpipe", vk::PhysicalDeviceType::CPU, 29 * GIB, id)
|
||||
}
|
||||
|
||||
/// A `measure` that must not be asked.
|
||||
fn unasked(gpus: &[usize]) -> Option<(usize, Why)> {
|
||||
panic!("measured {gpus:?}")
|
||||
}
|
||||
|
||||
/// Of several GPUs, the one the measurement answers, asked of the GPUs alone and never of
|
||||
/// llvmpipe; by ID where the runtime alone would make another
|
||||
/// Of several GPUs, the first by kind, never llvmpipe: a discrete GPU before an integrated
|
||||
/// one wherever the loader lists it
|
||||
#[test]
|
||||
fn several_gpus_are_measured_and_the_cpu_never() {
|
||||
fn several_gpus_are_picked_by_kind_and_the_cpu_never() {
|
||||
let list = [integrated(11, 1), discrete(4, 2), cpu(3)];
|
||||
let mut asked = Vec::new();
|
||||
let picked = choose(&list, &[], |gpus| {
|
||||
asked = gpus.to_vec();
|
||||
Some((0, Why::Measured))
|
||||
});
|
||||
assert_eq!(picked, Some((0, Why::Measured)));
|
||||
assert_eq!(asked, [0, 1]);
|
||||
assert_eq!(to_open(&list, Some(0)), Some(0));
|
||||
assert_eq!(to_open(&list, Some(1)), None);
|
||||
assert_eq!(choose(&list, &[]), Some((1, Why::KindOrder)));
|
||||
let list = [integrated(11, 1), integrated(2, 2), cpu(3)];
|
||||
assert_eq!(choose(&list, &[]), Some((0, Why::KindOrder)));
|
||||
}
|
||||
|
||||
/// Where the measurement answers nothing, the runtime's own order stands: a discrete GPU
|
||||
/// before an integrated one wherever the loader lists it, opened as before
|
||||
/// One GPU beside llvmpipe is picked, and of two CPU devices the loader's first
|
||||
#[test]
|
||||
fn an_unmeasured_choice_keeps_the_runtimes_order() {
|
||||
let list = [integrated(11, 1), discrete(4, 2), cpu(3)];
|
||||
assert_eq!(choose(&list, &[], |_| None), Some((1, Why::RuntimeOrder)));
|
||||
assert_eq!(to_open(&list, Some(1)), None);
|
||||
}
|
||||
|
||||
/// One GPU beside llvmpipe is picked unmeasured, as the runtime picks it, and two CPU devices
|
||||
/// keep the runtime's order unmeasured
|
||||
#[test]
|
||||
fn one_gpu_is_never_measured() {
|
||||
fn one_gpu_is_picked_beside_the_cpu() {
|
||||
let list = [cpu(1), discrete(16, 2)];
|
||||
assert_eq!(choose(&list, &[], unasked), Some((1, Why::OnlyGpu)));
|
||||
assert_eq!(to_open(&list, Some(1)), None);
|
||||
assert_eq!(choose(&list, &[]), Some((1, Why::OnlyGpu)));
|
||||
let list = [cpu(1), cpu(2)];
|
||||
assert_eq!(choose(&list, &[], unasked), Some((0, Why::RuntimeOrder)));
|
||||
assert_eq!(choose(&list, &[]), Some((0, Why::KindOrder)));
|
||||
}
|
||||
|
||||
/// A host of one candidate opens it as the runtime does, with nothing to open by ID
|
||||
/// A host of one candidate opens it
|
||||
#[test]
|
||||
fn one_candidate_is_opened_as_before() {
|
||||
fn one_candidate_is_opened() {
|
||||
for list in [vec![discrete(4, 1)], vec![integrated(2, 1)], vec![cpu(1)]] {
|
||||
assert_eq!(choose(&list, &[], unasked), Some((0, Why::Only)));
|
||||
assert_eq!(to_open(&list, Some(0)), None);
|
||||
assert_eq!(choose(&list, &[]), Some((0, Why::Only)));
|
||||
}
|
||||
assert_eq!(choose(&[], &[], unasked), None);
|
||||
assert_eq!(to_open(&[], None), None);
|
||||
assert_eq!(choose(&[], &[]), None);
|
||||
}
|
||||
|
||||
/// `seen` with PCI vendor and device IDs `ids` at PCI bus `bus` (domain 0, device 0,
|
||||
@@ -854,30 +521,27 @@ pub(crate) mod tests {
|
||||
]
|
||||
}
|
||||
|
||||
/// The user's variable picks the candidate it names, wherever the loader lists it,
|
||||
/// unmeasured: `VK_LOADER_DEVICE_SELECT`'s too, which Mesa's layer leaves behind its own
|
||||
/// default; by ID where the runtime alone would make another
|
||||
/// The user's variable picks the candidate it names, wherever the loader lists it:
|
||||
/// `VK_LOADER_DEVICE_SELECT`'s too, which Mesa's layer leaves behind its own default
|
||||
#[test]
|
||||
fn the_users_pick_is_the_device_its_variable_names() {
|
||||
let list = um870();
|
||||
let ids = |v, d| Some(Named::Ids(v, d));
|
||||
let loader = [("VK_LOADER_DEVICE_SELECT", ids(0x10de, 0x2204))];
|
||||
let picked = choose(&list, &loader, unasked);
|
||||
let picked = choose(&list, &loader);
|
||||
let named = Named::Ids(0x10de, 0x2204);
|
||||
assert_eq!(
|
||||
picked,
|
||||
Some((1, Why::UserChose("VK_LOADER_DEVICE_SELECT", named)))
|
||||
);
|
||||
assert_eq!(to_open(&list, Some(1)), None);
|
||||
let mesa = [("MESA_VK_DEVICE_SELECT", ids(0x1002, 0x1900))];
|
||||
assert_eq!(choose(&list, &mesa, unasked).map(|(at, _)| at), Some(0));
|
||||
assert_eq!(to_open(&list, Some(0)), Some(0));
|
||||
assert_eq!(choose(&list, &mesa).map(|(at, _)| at), Some(0));
|
||||
let lavapipe = [("MESA_VK_DEVICE_SELECT", ids(0x10005, 0))];
|
||||
assert_eq!(choose(&list, &lavapipe, unasked).map(|(at, _)| at), Some(2));
|
||||
assert_eq!(choose(&list, &lavapipe).map(|(at, _)| at), Some(2));
|
||||
let pci = Named::Pci(0, 0x67, 0, 0);
|
||||
let prime = [("DRI_PRIME", Some(pci))];
|
||||
assert_eq!(
|
||||
choose(&list, &prime, unasked),
|
||||
choose(&list, &prime),
|
||||
Some((1, Why::UserChose("DRI_PRIME", pci)))
|
||||
);
|
||||
// Of two devices of the IDs, the first; a device the runtime cannot make is no pick.
|
||||
@@ -891,7 +555,7 @@ pub(crate) mod tests {
|
||||
with_ids(discrete(24, 2), (0x10de, 0x2204), 0x67),
|
||||
with_ids(discrete(24, 4), (0x10de, 0x2204), 0x68),
|
||||
];
|
||||
assert_eq!(choose(&list, &loader, unasked).map(|(at, _)| at), Some(2));
|
||||
assert_eq!(choose(&list, &loader).map(|(at, _)| at), Some(2));
|
||||
}
|
||||
|
||||
/// A variable that names no candidate is passed over for the next one set; where none names
|
||||
@@ -905,7 +569,7 @@ pub(crate) mod tests {
|
||||
let pci = Named::Pci(0, 0x67, 0, 0);
|
||||
let user = [("MESA_VK_DEVICE_SELECT", nothing), ("DRI_PRIME", Some(pci))];
|
||||
assert_eq!(
|
||||
choose(&list, &user, unasked),
|
||||
choose(&list, &user),
|
||||
Some((1, Why::UserChose("DRI_PRIME", pci)))
|
||||
);
|
||||
let user = [
|
||||
@@ -913,18 +577,15 @@ pub(crate) mod tests {
|
||||
("VK_LOADER_DEVICE_SELECT", None),
|
||||
];
|
||||
assert_eq!(
|
||||
choose(&list, &user, unasked),
|
||||
choose(&list, &user),
|
||||
Some((0, Why::UserNamedNone("MESA_VK_DEVICE_SELECT")))
|
||||
);
|
||||
let user = [
|
||||
("DRI_PRIME", Some(Named::Index)),
|
||||
("VK_LOADER_DEVICE_SELECT", Some(Named::Ids(0x10de, 0x2204))),
|
||||
];
|
||||
assert_eq!(
|
||||
choose(&list, &user, unasked),
|
||||
Some((0, Why::UserIndex("DRI_PRIME")))
|
||||
);
|
||||
assert_eq!(choose(&[], &user, unasked), None);
|
||||
assert_eq!(choose(&list, &user), Some((0, Why::UserIndex("DRI_PRIME"))));
|
||||
assert_eq!(choose(&[], &user), None);
|
||||
}
|
||||
|
||||
/// A variable's value names a device by its IDs in hex, with or without `0x` and in either
|
||||
@@ -1006,9 +667,8 @@ pub(crate) mod tests {
|
||||
..discrete(24, 3)
|
||||
};
|
||||
let list = [old, no_queue, no_id, integrated(2, 4)];
|
||||
assert_eq!(choose(&list, &[], unasked), Some((3, Why::Only)));
|
||||
assert_eq!(runtime_first(&list), Some(3));
|
||||
assert_eq!(choose(&list[..3], &[], unasked), None);
|
||||
assert_eq!(choose(&list, &[]), Some((3, Why::Only)));
|
||||
assert_eq!(choose(&list[..3], &[]), None);
|
||||
}
|
||||
|
||||
/// `seen` named `name`, of PCI vendor and device IDs `ids`, lacking the window's device
|
||||
@@ -1040,45 +700,22 @@ pub(crate) mod tests {
|
||||
}
|
||||
|
||||
/// A device a display's window cannot present on is no candidate, whatever its kind and
|
||||
/// wherever the loader lists it: never picked, timed or the compositor's GPU, on every OS by
|
||||
/// the same rule; the pick is opened by ID where the runtime would try such a device first,
|
||||
/// and alone it leaves no pick
|
||||
/// wherever the loader lists it: never picked, on every OS by the same rule, and alone it
|
||||
/// leaves no pick
|
||||
#[test]
|
||||
fn a_device_the_window_cannot_present_on_is_no_candidate() {
|
||||
let list = kosmickrisp_then_moltenvk();
|
||||
assert!(list[0].usable() && !list[0].candidate() && list[1].candidate());
|
||||
assert_eq!(choose(&list, &[], unasked), Some((1, Why::Only)));
|
||||
assert_eq!(runtime_first(&list), Some(0));
|
||||
assert_eq!(to_open(&list, Some(1)), Some(1));
|
||||
assert_eq!(choose(&list[..1], &[], unasked), None);
|
||||
// Of three GPUs, the two the window presents on are timed; where the timing answers
|
||||
// nothing, the first candidate of the runtime's order.
|
||||
assert_eq!(choose(&list, &[]), Some((1, Why::Only)));
|
||||
assert_eq!(choose(&list[..1], &[]), None);
|
||||
// Of three GPUs, the first candidate by kind of the two the window presents on.
|
||||
let three = [list[0].clone(), list[1].clone(), integrated(8, 3)];
|
||||
let mut asked = Vec::new();
|
||||
let picked = choose(&three, &[], |gpus| {
|
||||
asked = gpus.to_vec();
|
||||
None
|
||||
});
|
||||
assert_eq!(
|
||||
(picked, asked.as_slice()),
|
||||
(Some((1, Why::RuntimeOrder)), &[1, 2][..])
|
||||
);
|
||||
assert_eq!(choose(&three, &[]), Some((1, Why::KindOrder)));
|
||||
// A GPU without `VK_KHR_swapchain`, which every OS's window takes, beside llvmpipe.
|
||||
let swapchain = ash::khr::swapchain::NAME;
|
||||
let headless = lacking(discrete(24, 4), "headless", (0x10de, 0x2204), &[swapchain]);
|
||||
let list = [headless.clone(), cpu(5)];
|
||||
assert_eq!(choose(&list, &[], unasked), Some((1, Why::Only)));
|
||||
assert_eq!(to_open(&list, Some(1)), Some(1));
|
||||
// The compositor on such a GPU composites on none the runtime opens for it.
|
||||
let id = |s: &Seen| s.uuid.map(|u| u64::from(u[0]));
|
||||
let list = [
|
||||
with_nodes(discrete(24, 1), 0, 128),
|
||||
with_nodes(headless, 1, 129),
|
||||
];
|
||||
assert_eq!(
|
||||
compositor_gpu_of(&list, (226, 129), Some(1), id),
|
||||
CompositorGpu::Own
|
||||
);
|
||||
let list = [headless, cpu(5)];
|
||||
assert_eq!(choose(&list, &[]), Some((1, Why::Only)));
|
||||
}
|
||||
|
||||
/// A selection variable that names a device the window cannot present on is passed over,
|
||||
@@ -1089,16 +726,16 @@ pub(crate) mod tests {
|
||||
let list = kosmickrisp_then_moltenvk();
|
||||
let kosmickrisp = ("MESA_VK_DEVICE_SELECT", Some(Named::Ids(0x106b, 0x64)));
|
||||
assert_eq!(
|
||||
choose(&list, &[kosmickrisp], unasked),
|
||||
choose(&list, &[kosmickrisp]),
|
||||
Some((1, Why::UserNamedNone("MESA_VK_DEVICE_SELECT")))
|
||||
);
|
||||
let moltenvk = Named::Ids(0x106b, 0x1b00_0209);
|
||||
let user = [kosmickrisp, ("VK_LOADER_DEVICE_SELECT", Some(moltenvk))];
|
||||
assert_eq!(
|
||||
choose(&list, &user, unasked),
|
||||
choose(&list, &user),
|
||||
Some((1, Why::UserChose("VK_LOADER_DEVICE_SELECT", moltenvk)))
|
||||
);
|
||||
assert_eq!(choose(&list[..1], &[kosmickrisp], unasked), None);
|
||||
assert_eq!(choose(&list[..1], &[kosmickrisp]), None);
|
||||
}
|
||||
|
||||
/// The choice's line names the pick and why, then each device the runtime makes that was
|
||||
@@ -1117,10 +754,7 @@ pub(crate) mod tests {
|
||||
);
|
||||
assert_eq!(
|
||||
choice_line(&list[..1], None),
|
||||
format!(
|
||||
"no candidate was listed: the runtime's default device; passed over Vulkan \
|
||||
device 0, kosmickrisp: {lacks}"
|
||||
)
|
||||
format!("no candidate was listed; passed over Vulkan device 0, kosmickrisp: {lacks}")
|
||||
);
|
||||
assert!(
|
||||
list[0]
|
||||
@@ -1147,177 +781,4 @@ pub(crate) mod tests {
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/// A timer of fixed times, in milliseconds by index in `seen`, counting its calls; a time of
|
||||
/// 0 fails.
|
||||
fn timer(
|
||||
ms: &[u64],
|
||||
calls: &std::cell::Cell<usize>,
|
||||
) -> impl FnMut(usize, &Seen) -> Option<Duration> {
|
||||
move |at, _| {
|
||||
calls.set(calls.get() + 1);
|
||||
let ms = *ms.get(at)?;
|
||||
(ms > 0).then(|| Duration::from_millis(ms))
|
||||
}
|
||||
}
|
||||
|
||||
/// The fastest GPU is picked and its verdict kept; the next choice of the same GPUs on the
|
||||
/// same drivers reads it and times nothing
|
||||
#[test]
|
||||
fn the_fastest_gpu_is_picked_and_kept() {
|
||||
let scratch = verdict::tests::Scratch::new("kept");
|
||||
let file = scratch.file();
|
||||
let list = [integrated(11, 1), discrete(4, 2)];
|
||||
let calls = std::cell::Cell::new(0);
|
||||
let picked = measured(&list, &[0, 1], Some(&file), timer(&[24, 40], &calls));
|
||||
assert_eq!((picked, calls.get()), (Some((0, Why::Measured)), 2));
|
||||
let again = measured(&list, &[0, 1], Some(&file), timer(&[99, 1], &calls));
|
||||
assert_eq!((again, calls.get()), (Some((0, Why::Cached)), 2));
|
||||
let fast_discrete = measured(
|
||||
&[discrete(24, 3), integrated(11, 1)],
|
||||
&[0, 1],
|
||||
None,
|
||||
timer(&[5, 25], &calls),
|
||||
);
|
||||
assert_eq!(fast_discrete, Some((0, Why::Measured)));
|
||||
}
|
||||
|
||||
/// A driver change, another GPU or a corrupt verdict times the GPUs again, and the new verdict
|
||||
/// is kept in place of the old
|
||||
#[test]
|
||||
fn a_changed_host_or_a_corrupt_verdict_is_measured_again() {
|
||||
let scratch = verdict::tests::Scratch::new("changed");
|
||||
let file = scratch.file();
|
||||
let list = [integrated(11, 1), discrete(4, 2)];
|
||||
let calls = std::cell::Cell::new(0);
|
||||
measured(&list, &[0, 1], Some(&file), timer(&[24, 40], &calls));
|
||||
let updated = [
|
||||
integrated(11, 1),
|
||||
Seen {
|
||||
driver_version: 2,
|
||||
..discrete(4, 2)
|
||||
},
|
||||
];
|
||||
let picked = measured(&updated, &[0, 1], Some(&file), timer(&[24, 12], &calls));
|
||||
assert_eq!((picked, calls.get()), (Some((1, Why::Measured)), 4));
|
||||
let read = measured(&updated, &[0, 1], Some(&file), timer(&[1, 99], &calls));
|
||||
assert_eq!((read, calls.get()), (Some((1, Why::Cached)), 4));
|
||||
let another = [integrated(11, 1), discrete(24, 3)];
|
||||
let picked = measured(&another, &[0, 1], Some(&file), timer(&[24, 5], &calls));
|
||||
assert_eq!((picked, calls.get()), (Some((1, Why::Measured)), 6));
|
||||
std::fs::write(&file, "reims-vgpu gpu choice 1\nkey \u{0}").unwrap();
|
||||
let picked = measured(&another, &[0, 1], Some(&file), timer(&[3, 5], &calls));
|
||||
assert_eq!((picked, calls.get()), (Some((0, Why::Measured)), 8));
|
||||
let read = measured(&another, &[0, 1], Some(&file), timer(&[9, 1], &calls));
|
||||
assert_eq!((read, calls.get()), (Some((0, Why::Cached)), 8));
|
||||
}
|
||||
|
||||
/// Where any GPU's workload fails, nothing is picked and nothing kept, so the runtime's own
|
||||
/// order stands and the next process times them again
|
||||
#[test]
|
||||
fn a_failed_measurement_picks_and_keeps_nothing() {
|
||||
let scratch = verdict::tests::Scratch::new("failed");
|
||||
let file = scratch.file();
|
||||
let list = [integrated(11, 1), discrete(4, 2)];
|
||||
let calls = std::cell::Cell::new(0);
|
||||
assert_eq!(
|
||||
measured(&list, &[0, 1], Some(&file), timer(&[24, 0], &calls)),
|
||||
None
|
||||
);
|
||||
assert!(!file.exists());
|
||||
let picked = choose(&list, &[], |gpus| {
|
||||
measured(&list, gpus, Some(&file), timer(&[0, 40], &calls))
|
||||
});
|
||||
assert_eq!(picked, Some((1, Why::RuntimeOrder)));
|
||||
assert!(!file.exists());
|
||||
}
|
||||
|
||||
/// The registry ID the choice answered before it read the runtime's identities: the UUID's
|
||||
/// two halves, little-endian, exclusive-ored, and 1 where that is 0.
|
||||
fn folded(uuid: &[u8; 16]) -> u64 {
|
||||
let (low, high) = uuid.split_at(8);
|
||||
let half = |bytes: &[u8]| u64::from_le_bytes(bytes.try_into().unwrap_or_default());
|
||||
match half(low) ^ half(high) {
|
||||
0 => 1,
|
||||
id => id,
|
||||
}
|
||||
}
|
||||
|
||||
/// The fold of the UUID the choice answered before: its halves exclusive-ored, little-endian;
|
||||
/// 1 where they cancel
|
||||
#[test]
|
||||
fn the_old_registry_id_folds_the_uuid() {
|
||||
let mut uuid = [0u8; 16];
|
||||
uuid[4] = 0xc5;
|
||||
assert_eq!(folded(&uuid), 0xc5_0000_0000);
|
||||
uuid[12] = 0xc5;
|
||||
assert_eq!(folded(&uuid), 1);
|
||||
let uuid: [u8; 16] = std::array::from_fn(|i| i as u8);
|
||||
assert_eq!(folded(&uuid), 0x0706_0504_0302_0100 ^ 0x0f0e_0d0c_0b0a_0908);
|
||||
}
|
||||
|
||||
/// Every device the probe lists that the choice can pick is named by the registry ID it was
|
||||
/// named by before the choice read the runtime's identities (the fold of its UUID), which is
|
||||
/// the ID of the runtime's identity of that UUID, and the device the runtime makes of that ID
|
||||
/// answers it: the choice opens the device it opened before. The runtime lists every
|
||||
/// candidate. The devices and their IDs are printed for the run's record
|
||||
#[test]
|
||||
fn each_candidate_keeps_its_registry_id() {
|
||||
let seen = crate::os::seen_devices();
|
||||
let options = crate::platform::device_options();
|
||||
let identities = rt::Device::identities_with(options).unwrap_or_default();
|
||||
for (n, s) in seen.iter().enumerate() {
|
||||
eprintln!("device {n}: {s:?}");
|
||||
}
|
||||
for identity in &identities {
|
||||
assert_eq!(
|
||||
identity.registry_id,
|
||||
folded(&identity.device_uuid),
|
||||
"{identity:?}"
|
||||
);
|
||||
}
|
||||
for s in seen.iter().filter(|s| s.candidate()) {
|
||||
let uuid = s.uuid.expect("a candidate has a UUID");
|
||||
assert_eq!(s.registry_id(), Some(folded(&uuid)), "{s:?}");
|
||||
let id = s.registry_id().unwrap_or_default();
|
||||
let device = crate::answer::unheard(|| rt::Device::with_registry_id(id, options));
|
||||
assert_eq!(device.map(|d| d.registry_id()).ok(), Some(id), "{s:?}");
|
||||
}
|
||||
}
|
||||
|
||||
/// The process's default device is the one picked of the devices the probe lists, named by
|
||||
/// the registry ID the runtime answers for it: on a host of several GPUs, the verdict the
|
||||
/// process's choice kept, read back here. The list and the pick are printed for the run's
|
||||
/// record, with how long the process's first open took, the choice's included, and the
|
||||
/// verdict kept
|
||||
#[test]
|
||||
fn the_default_device_is_the_pick() {
|
||||
let clock = crate::os::OsClock::new();
|
||||
let start = clock.now_mono();
|
||||
let Ok(device) = crate::platform::default_device() else {
|
||||
return;
|
||||
};
|
||||
let first_open = clock.now_mono().saturating_duration_since(start);
|
||||
eprintln!("first open: {:.1} ms", timing::millis(first_open));
|
||||
let seen = crate::os::seen_devices();
|
||||
let file = verdict_file();
|
||||
let picked = choose(
|
||||
seen,
|
||||
&user_selection(|name| std::env::var_os(name)),
|
||||
|gpus| measured(seen, gpus, file.as_deref(), |_, _| None),
|
||||
);
|
||||
for (n, s) in seen.iter().enumerate() {
|
||||
eprintln!("device {n}: {s:?}");
|
||||
}
|
||||
let (at, why) = picked.expect("a candidate, where the runtime made a device");
|
||||
eprintln!("picked device {at}: {}", why.describe());
|
||||
if let Some(text) = file.and_then(|path| std::fs::read_to_string(path).ok()) {
|
||||
eprintln!("verdict kept:\n{text}");
|
||||
}
|
||||
assert_eq!(
|
||||
seen.get(at).and_then(Seen::registry_id),
|
||||
Some(device.registry_id()),
|
||||
"{seen:?}"
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,351 +0,0 @@
|
||||
//! The workload the measured pick times on each GPU it compares ([`time_on`]), on a device made
|
||||
//! for it alone and torn down after: the library's display composite at a fixed size, and one
|
||||
//! pass over textures in host memory, where the guest's RAM lives.
|
||||
//!
|
||||
//! **A frame** is one command buffer of [`PASSES`] render passes over a [`WIDTH`] x [`HEIGHT`]
|
||||
//! BGRA8 target, each loading what the one before stored (the first clears it) and drawing
|
||||
//! [`DRAWS`] quads of a quarter of the target, through the display's own present pipeline
|
||||
//! (`displayPresentVertex` and `displayPresentFragment` of `shaders.metal`, the metallib the
|
||||
//! display loads), each sampling a frame texture of the same size: about half the cut of
|
||||
//! WindowServer's composite the reims-graphics device's compositor bench takes (reims-vgpu's
|
||||
//! `composite_cost`, from a lane's count of 63 render encoders and about 170 draws a frame),
|
||||
//! without its reads of the target. Half: with 60 passes the measurement took 293 ms in all on
|
||||
//! um790, and with 30, 197 ms (`device_choice`'s doc). Then one pass loads a whole texture in
|
||||
//! host memory and draws over it, sampling another there, so the GPU reads two textures' worth of
|
||||
//! host memory each frame and writes one, as it does the guest's surfaces: an integrated GPU in
|
||||
//! the memory it shares with the host, a discrete one across its bus. The host memory is a mapping
|
||||
//! of a file in memory, as the guest's RAM is (the library's `RegionMemory`); where the host has
|
||||
//! none (macOS), the frame has no such pass.
|
||||
//!
|
||||
//! **The time** is the wall time from the first of [`TIMED_FRAMES`] frames' commit to the last
|
||||
//! one's completion, after one frame not counted, which makes the pipeline and the imports. The
|
||||
//! device's making, the pipeline's and the teardown are logged, not compared.
|
||||
//!
|
||||
//! **Apart from the process's device.** The devices are made with the process's options
|
||||
//! (`crate::platform::device_options`) but a message sink of their own, which hears nothing
|
||||
//! ([`options`]): what the runtime announces of them, on any thread, is neither counted nor
|
||||
//! relayed, nor dying in strict mode. The runtime keeps the devices of another sink in a group of
|
||||
//! their own, on an instance of their own, so no make of the process's device is answered with
|
||||
//! one of them. With the process's own sink one was: while a handle of a device lives, the
|
||||
//! runtime answers a device of the same GPU made with equal options with that device
|
||||
//! (`Device::with_registry_id` and `Device::system_default_with`), and its own threads still hold
|
||||
//! a timed device after the workload dropped its last handle. **Measured** on 2026-11-17 on um790
|
||||
//! (Mesa 26.2.6, NVIDIA 620.70.06), in an empty cache directory: a device of the same GPU made 0
|
||||
//! to 50 ms after the workload returned was the timed one on the RX 7900 XTX and the RTX 2080,
|
||||
//! and up to 5 ms after it on the Radeon 780M; none was 300 ms after it, nor, in the cache
|
||||
//! directory the tests share, kept from earlier runs, one made at once. Its texture ID pool
|
||||
//! had handed IDs out, so the graphics device's reservation of the guest's texture IDs came too
|
||||
//! late and was ignored, and the host's textures took the guest's IDs from 1. In the choice the
|
||||
//! XTX, the pick and the runtime's own default device, was timed first and the other two after
|
||||
//! it, and the process's device was the XTX's timed one in 4 of 8 cold starts of a graphics
|
||||
//! device (reims-vgpu's `on_vulkan_a_cold_device_takes_no_guest_texture_id`).
|
||||
|
||||
use std::ptr::NonNull;
|
||||
use std::sync::LazyLock;
|
||||
use std::time::Duration;
|
||||
|
||||
use metal2vulkan::metal::{PixelFormat, PrimitiveType, TextureUsage};
|
||||
use metal2vulkan::pipeline::{ColorAttachmentDescriptor, RenderPipelineDescriptor, StageSource};
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
use super::{Seen, TARGET};
|
||||
use crate::core::platform::os::Clock as _;
|
||||
|
||||
/// The target's width and height, in texels.
|
||||
const WIDTH: u64 = 1920;
|
||||
const HEIGHT: u64 = 1200;
|
||||
|
||||
/// The render passes of a frame's composite, and the quads each draws.
|
||||
const PASSES: usize = 30;
|
||||
const DRAWS: usize = 3;
|
||||
|
||||
/// The frames timed, after one that is not.
|
||||
const TIMED_FRAMES: usize = 2;
|
||||
|
||||
/// The texture coordinates of a quad's four vertices, a strip: `float2` each.
|
||||
const TEX_COORDS: [[f32; 2]; 4] = [[0.0, 0.0], [1.0, 0.0], [0.0, 1.0], [1.0, 1.0]];
|
||||
|
||||
/// The time the workload took on `device` (the module doc), logged with what its device's making
|
||||
/// and teardown took; `None` where the runtime refused any of it, which is logged.
|
||||
pub(super) fn time_on(at: usize, device: &Seen) -> Option<Duration> {
|
||||
let id = device.registry_id()?;
|
||||
let clock = crate::os::OsClock::new();
|
||||
let start = clock.now_mono();
|
||||
let timed = run(id, &clock);
|
||||
let all = clock.now_mono().saturating_duration_since(start);
|
||||
match &timed {
|
||||
Ok(time) => log::info!(
|
||||
target: TARGET,
|
||||
"Vulkan device {at}, {}: the choice's workload took {:.2} ms, {:.1} ms with its \
|
||||
device's making and teardown",
|
||||
device.name,
|
||||
millis(*time),
|
||||
millis(all)
|
||||
),
|
||||
Err(e) => log::warn!(
|
||||
target: TARGET,
|
||||
"Vulkan device {at}, {}: the runtime refused the choice's workload ({e})",
|
||||
device.name
|
||||
),
|
||||
}
|
||||
timed.ok()
|
||||
}
|
||||
|
||||
/// `time` in milliseconds, for a log line.
|
||||
pub(super) fn millis(time: Duration) -> f64 {
|
||||
time.as_secs_f64() * 1e3
|
||||
}
|
||||
|
||||
/// The options of the devices the workload runs on: the process's
|
||||
/// (`crate::platform::device_options`) with a message sink of their own, which drops what it
|
||||
/// hears, and hears only what the runtime always hands a sink, errors and its degrade notices
|
||||
/// (`MessageSink::with_least_severity`). So the runtime keeps the devices in a group of their own,
|
||||
/// apart from the process's (the module doc).
|
||||
fn options() -> &'static rt::DeviceOptions {
|
||||
static OPTIONS: LazyLock<rt::DeviceOptions> = LazyLock::new(|| {
|
||||
let mut options = crate::platform::device_options().clone();
|
||||
let sink = rt::MessageSink::new(|_| {});
|
||||
options.messages = Some(sink.with_least_severity(rt::MessageSeverity::Error));
|
||||
options
|
||||
});
|
||||
&OPTIONS
|
||||
}
|
||||
|
||||
/// The workload on a device of registry ID `id` of its own ([`options`]), made for it and dropped
|
||||
/// at the end: the timed frames' wall time on `clock`.
|
||||
fn run(id: u64, clock: &crate::os::OsClock) -> Result<Duration, rt::Error> {
|
||||
crate::let_go::asks_the_runtime_for_devices();
|
||||
let device = rt::Device::with_registry_id(id, options())?;
|
||||
let library = device.new_library_with_data(crate::gpu::shaders::METALLIB)?;
|
||||
let vertex = library.new_function_with_name("displayPresentVertex")?;
|
||||
let fragment = library.new_function_with_name("displayPresentFragment")?;
|
||||
let mut descriptor =
|
||||
RenderPipelineDescriptor::new(StageSource::Function(vertex.function_descriptor()));
|
||||
descriptor.fragment = Some(StageSource::Function(fragment.function_descriptor()));
|
||||
descriptor.color_attachments[0] = Some(ColorAttachmentDescriptor::new(PixelFormat::BGRA8Unorm));
|
||||
let state = device.new_render_pipeline_state(&descriptor, &rt::PipelineOptions::default())?;
|
||||
let private = |usage: TextureUsage| {
|
||||
let mut texture =
|
||||
rt::TextureDescriptor::texture_2d(PixelFormat::BGRA8Unorm, WIDTH, HEIGHT, false);
|
||||
texture.usage = usage;
|
||||
texture.resource_options = rt::ResourceOptions::private();
|
||||
device.new_texture(&texture)
|
||||
};
|
||||
let work = Work {
|
||||
frame: private(TextureUsage::SHADER_READ)?,
|
||||
target: private(TextureUsage::RENDER_TARGET)?,
|
||||
host: host_textures(&device)?,
|
||||
state,
|
||||
};
|
||||
let queue = device.new_command_queue()?;
|
||||
let warm = work.encode(&queue)?;
|
||||
warm.commit()?;
|
||||
warm.wait_until_completed()?;
|
||||
let frames = (0..TIMED_FRAMES)
|
||||
.map(|_| work.encode(&queue))
|
||||
.collect::<Result<Vec<_>, _>>()?;
|
||||
let start = clock.now_mono();
|
||||
for frame in &frames {
|
||||
frame.commit()?;
|
||||
}
|
||||
for frame in &frames {
|
||||
frame.wait_until_completed()?;
|
||||
}
|
||||
Ok(clock.now_mono().saturating_duration_since(start))
|
||||
}
|
||||
|
||||
/// What a frame draws with.
|
||||
struct Work {
|
||||
/// The texture the composite samples.
|
||||
frame: rt::Texture,
|
||||
/// The composite's target.
|
||||
target: rt::Texture,
|
||||
/// The textures in host memory, the one sampled and the one written, with the buffer they
|
||||
/// are made over; none where the host has no such memory.
|
||||
host: Option<(rt::Texture, rt::Texture, rt::Buffer)>,
|
||||
/// The display's present pipeline, to a BGRA8 target.
|
||||
state: rt::RenderPipelineState,
|
||||
}
|
||||
|
||||
impl Work {
|
||||
/// One frame's command buffer, encoded and not committed (the module doc).
|
||||
fn encode(&self, queue: &rt::CommandQueue) -> Result<rt::CommandBuffer, rt::Error> {
|
||||
let buffer = queue.command_buffer()?;
|
||||
for pass in 0..PASSES {
|
||||
let load = match pass {
|
||||
0 => rt::LoadAction::Clear,
|
||||
_ => rt::LoadAction::Load,
|
||||
};
|
||||
let quads = (0..DRAWS).map(|draw| quarter(pass * DRAWS + draw));
|
||||
self.pass(&buffer, &self.target, load, &self.frame, quads)?;
|
||||
}
|
||||
if let Some((sampled, written, _)) = &self.host {
|
||||
let whole = [[-1.0, 1.0], [1.0, -1.0]];
|
||||
self.pass(&buffer, written, rt::LoadAction::Load, sampled, [whole])?;
|
||||
}
|
||||
Ok(buffer)
|
||||
}
|
||||
|
||||
/// A render pass of `buffer` over `target`, loaded by `load` and stored, drawing each quad of
|
||||
/// `quads` (its top-left and bottom-right corners in clip space) sampling `sampled`.
|
||||
fn pass(
|
||||
&self,
|
||||
buffer: &rt::CommandBuffer,
|
||||
target: &rt::Texture,
|
||||
load: rt::LoadAction,
|
||||
sampled: &rt::Texture,
|
||||
quads: impl IntoIterator<Item = [[f32; 2]; 2]>,
|
||||
) -> Result<(), rt::Error> {
|
||||
let mut descriptor = rt::RenderPassDescriptor::new();
|
||||
let color = &mut descriptor.color_attachments[0];
|
||||
color.texture = Some(target.clone());
|
||||
color.load_action = load;
|
||||
color.store_action = rt::StoreAction::Store;
|
||||
let mut encoder = buffer.render_command_encoder(&descriptor)?;
|
||||
encoder.set_render_pipeline_state(&self.state)?;
|
||||
encoder.set_fragment_texture(Some(sampled), 0)?;
|
||||
encoder.set_vertex_bytes(&floats(TEX_COORDS.as_flattened()), 1)?;
|
||||
for [[left, top], [right, bottom]] in quads {
|
||||
let strip = [
|
||||
[left, top, 0.0, 1.0],
|
||||
[right, top, 0.0, 1.0],
|
||||
[left, bottom, 0.0, 1.0],
|
||||
[right, bottom, 0.0, 1.0],
|
||||
];
|
||||
encoder.set_vertex_bytes(&floats(strip.as_flattened()), 0)?;
|
||||
encoder.draw_primitives(PrimitiveType::TriangleStrip, 0, 4, 1, 0)?;
|
||||
}
|
||||
encoder.end_encoding()
|
||||
}
|
||||
}
|
||||
|
||||
/// Quad `n`'s corners: a quarter of the target, the quarters in turn.
|
||||
fn quarter(n: usize) -> [[f32; 2]; 2] {
|
||||
let left = if n % 2 == 0 { -1.0 } else { 0.0 };
|
||||
let top = if n % 4 < 2 { 1.0 } else { 0.0 };
|
||||
[[left, top], [left + 1.0, top - 1.0]]
|
||||
}
|
||||
|
||||
/// `values`' bytes, little-endian, as a shader reads them.
|
||||
fn floats(values: &[f32]) -> Vec<u8> {
|
||||
values.iter().flat_map(|v| v.to_le_bytes()).collect()
|
||||
}
|
||||
|
||||
/// Two textures of the target's size in host memory, the first to sample and the second to
|
||||
/// write, over one no-copy buffer of a mapping of a file in memory, with the buffer; none where
|
||||
/// the host gives no such mapping (macOS, the module doc).
|
||||
fn host_textures(
|
||||
device: &rt::Device,
|
||||
) -> Result<Option<(rt::Texture, rt::Texture, rt::Buffer)>, rt::Error> {
|
||||
let plane = WIDTH * HEIGHT * 4;
|
||||
let Some(memory) = crate::os::RegionMemory::new(2 * plane) else {
|
||||
return Ok(None);
|
||||
};
|
||||
let Some(base) = NonNull::new(memory.base()) else {
|
||||
return Ok(None);
|
||||
};
|
||||
// SAFETY: the mapping stays while the runtime holds its import: the keep-alive owns it, and
|
||||
// the runtime drops the keep-alive only once it freed the import.
|
||||
let host = unsafe { crate::os::host_memory(base) };
|
||||
let contents = rt::BufferContents::NoCopy {
|
||||
memory: host,
|
||||
deallocator: None,
|
||||
keep_alive: Some(Box::new(memory)),
|
||||
};
|
||||
let descriptor = rt::BufferDescriptor::new(2 * plane, rt::ResourceOptions::shared(), contents);
|
||||
let buffer = device.new_buffer_with_descriptor(descriptor)?;
|
||||
let mut texture =
|
||||
rt::TextureDescriptor::texture_2d(PixelFormat::BGRA8Unorm, WIDTH, HEIGHT, false);
|
||||
texture.usage = TextureUsage::SHADER_READ | TextureUsage::RENDER_TARGET;
|
||||
texture.resource_options = rt::ResourceOptions::shared();
|
||||
let sampled = buffer.new_texture(&texture, 0, WIDTH * 4)?;
|
||||
let written = buffer.new_texture(&texture, plane, WIDTH * 4)?;
|
||||
Ok(Some((sampled, written, buffer)))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
/// The variable that makes [`a_device_made_after_the_timing_is_a_new_one`]'s process the
|
||||
/// child, which runs in the new empty `HOME` its parent made, its user cache directory in it.
|
||||
const COLD_CHILD: &str = "RVG_TIMING_COLD_CHILD";
|
||||
|
||||
/// A device of the GPU made with the process's options right after the choice's workload ran
|
||||
/// on it ([`time_on`]) is a new device, which the guest's texture IDs are reserved on before
|
||||
/// any is handed out, so a plain texture takes none of them: never the timed device, which
|
||||
/// the runtime's threads still held then, and whose pool had handed IDs out (the module doc).
|
||||
/// Cold, as the choice times the GPUs only where no verdict is kept: the child runs in a new
|
||||
/// empty `HOME` that holds its user cache directory (`crate::os::TESTS_CACHE_DIRECTORY`, as
|
||||
/// Windows' is not under `HOME`). With the timing on the process's own options, the
|
||||
/// reservation was ignored and the plain texture took ID 1, on each of um790's RX 7900 XTX,
|
||||
/// RTX 2080 and Radeon 780M; in the cache directory the tests share, kept from earlier runs,
|
||||
/// the device was a new one on all three
|
||||
#[test]
|
||||
fn a_device_made_after_the_timing_is_a_new_one() {
|
||||
const LINE: &str = "TIMED-COLD: ";
|
||||
if std::env::var_os(COLD_CHILD).is_none() {
|
||||
let home = std::env::temp_dir().join(format!("rvg-timing-cold-{}", std::process::id()));
|
||||
let _ = std::fs::remove_dir_all(&home);
|
||||
std::fs::create_dir_all(&home).unwrap();
|
||||
let out = std::process::Command::new(std::env::current_exe().unwrap())
|
||||
.args([
|
||||
"--exact",
|
||||
"device_choice::timing::tests::a_device_made_after_the_timing_is_a_new_one",
|
||||
"--nocapture",
|
||||
"--test-threads=1",
|
||||
])
|
||||
.env(COLD_CHILD, "1")
|
||||
.env("HOME", &home)
|
||||
.env(crate::os::TESTS_CACHE_DIRECTORY, home.join(".cache"))
|
||||
.output()
|
||||
.unwrap();
|
||||
let _ = std::fs::remove_dir_all(&home);
|
||||
let stdout = String::from_utf8_lossy(&out.stdout);
|
||||
let stderr = String::from_utf8_lossy(&out.stderr);
|
||||
assert!(out.status.success(), "{stdout}{stderr}");
|
||||
// The child's line follows libtest's own `test NAME ... ` on its line.
|
||||
let ran = stdout.lines().find_map(|l| l.find(LINE).map(|at| &l[at..]));
|
||||
let Some(ran) = ran else {
|
||||
panic!("the child timed no GPU: {stdout}{stderr}");
|
||||
};
|
||||
println!("{ran}");
|
||||
return;
|
||||
}
|
||||
let options = crate::platform::device_options();
|
||||
let gpu = rt::Device::system_default_identity_with(options).expect("a Vulkan device");
|
||||
let mut seen = crate::os::seen_devices().iter().enumerate();
|
||||
let (at, timed) = (seen.find(|(_, s)| s.registry_id() == Some(gpu.registry_id)))
|
||||
.expect("the window's probe lists the runtime's default GPU");
|
||||
time_on(at, timed).expect("the workload");
|
||||
let device = rt::Device::with_registry_id(gpu.registry_id, options).unwrap();
|
||||
let guests = 1..=64;
|
||||
let reserved: Vec<rt::ResourceId> = guests.clone().map(rt::ResourceId).collect();
|
||||
(device.reserve_resource_ids(rt::ResourceIdKind::Texture, &reserved)).unwrap();
|
||||
let mut plain = rt::TextureDescriptor::texture_2d(PixelFormat::BGRA8Unorm, 4, 4, false);
|
||||
plain.resource_options = rt::ResourceOptions::private();
|
||||
let id = device.new_texture(&plain).unwrap().gpu_resource_id().0;
|
||||
assert!(
|
||||
!guests.contains(&id),
|
||||
"{}: a plain texture took the reserved ID {id}",
|
||||
gpu.name
|
||||
);
|
||||
println!("{LINE}{}: a plain texture took ID {id}", gpu.name);
|
||||
}
|
||||
|
||||
/// The quads go round the target's four quarters, each a quarter of it
|
||||
#[test]
|
||||
fn the_quads_cover_each_quarter_in_turn() {
|
||||
let quads: Vec<_> = (0..4).map(quarter).collect();
|
||||
assert_eq!(
|
||||
quads,
|
||||
[
|
||||
[[-1.0, 1.0], [0.0, 0.0]],
|
||||
[[0.0, 1.0], [1.0, 0.0]],
|
||||
[[-1.0, 0.0], [0.0, -1.0]],
|
||||
[[0.0, 0.0], [1.0, -1.0]],
|
||||
]
|
||||
);
|
||||
assert_eq!(quarter(4), quarter(0));
|
||||
}
|
||||
}
|
||||
@@ -1,218 +0,0 @@
|
||||
//! The measured pick's verdict, kept for the host in one file, `device-checks/gpu-choice` under
|
||||
//! the library's cache directory (`crate::platform::cache_directory`): which of the timed GPUs
|
||||
//! the workload found fastest, under a key of every timed GPU's UUID and driver version, so only
|
||||
//! the first open after a GPU or driver change times them ([`super::measured`]).
|
||||
//!
|
||||
//! The file is text, one field a line:
|
||||
//!
|
||||
//! ```text
|
||||
//! reims-vgpu gpu choice 1
|
||||
//! key 00000000040000000000000000000000:109060102,00000000c50000000000000000000000:109060102
|
||||
//! pick 00000000c50000000000000000000000
|
||||
//! time 00000000c50000000000000000000000 21544
|
||||
//! time 00000000040000000000000000000000 40711
|
||||
//! ```
|
||||
//!
|
||||
//! The key lists each GPU as its UUID in hex and its driver version in decimal, in the order of
|
||||
//! the UUIDs; `time` lines hold each GPU's workload in microseconds, for the record. A file that
|
||||
//! is missing, unreadable, of another header or another key, or whose pick is not among the key's
|
||||
//! GPUs answers nothing ([`read`]), and the choice times the GPUs again and writes the file anew
|
||||
//! ([`write()`]), through a file beside it renamed over it, so a reader never meets half a file.
|
||||
|
||||
use std::fmt::Write as _;
|
||||
use std::path::Path;
|
||||
use std::time::Duration;
|
||||
|
||||
use super::Seen;
|
||||
|
||||
/// The file's first line: its format.
|
||||
const HEADER: &str = "reims-vgpu gpu choice 1";
|
||||
|
||||
/// The key of the GPUs `timed`: each one's UUID and driver version, in the order of the UUIDs;
|
||||
/// `None` where one has no UUID.
|
||||
pub(super) fn key(timed: &[&Seen]) -> Option<String> {
|
||||
let mut parts: Vec<([u8; 16], u32)> = timed
|
||||
.iter()
|
||||
.map(|s| Some((s.uuid?, s.driver_version)))
|
||||
.collect::<Option<_>>()?;
|
||||
parts.sort_unstable();
|
||||
let parts: Vec<String> = parts
|
||||
.iter()
|
||||
.map(|(uuid, driver)| format!("{}:{driver}", hex(uuid)))
|
||||
.collect();
|
||||
Some(parts.join(","))
|
||||
}
|
||||
|
||||
/// The UUID of the GPU the verdict at `path` picked under `key`: `None` where the file is
|
||||
/// missing, unreadable, of another format or another key, or picks a GPU the key does not list.
|
||||
pub(super) fn read(path: &Path, key: &str) -> Option<[u8; 16]> {
|
||||
let text = std::fs::read_to_string(path).ok()?;
|
||||
let mut lines = text.lines();
|
||||
if lines.next()? != HEADER || lines.next()?.strip_prefix("key ")? != key {
|
||||
return None;
|
||||
}
|
||||
let pick = lines.next()?.strip_prefix("pick ")?;
|
||||
let listed = key
|
||||
.split(',')
|
||||
.any(|part| part.split(':').next() == Some(pick));
|
||||
listed.then(|| uuid(pick)).flatten()
|
||||
}
|
||||
|
||||
/// Writes the verdict that `pick` is the fastest of the GPUs under `key`, with each one's time,
|
||||
/// to `path`, making its directory where there is none: through a file beside it, renamed over
|
||||
/// it.
|
||||
pub(super) fn write(
|
||||
path: &Path,
|
||||
key: &str,
|
||||
pick: &[u8; 16],
|
||||
times: &[([u8; 16], Duration)],
|
||||
) -> std::io::Result<()> {
|
||||
let mut text = format!("{HEADER}\nkey {key}\npick {}\n", hex(pick));
|
||||
for (uuid, time) in times {
|
||||
let _ = writeln!(text, "time {} {}", hex(uuid), time.as_micros());
|
||||
}
|
||||
if let Some(directory) = path.parent() {
|
||||
std::fs::create_dir_all(directory)?;
|
||||
}
|
||||
let beside = path.with_extension(format!("{}.new", std::process::id()));
|
||||
std::fs::write(&beside, text)?;
|
||||
std::fs::rename(&beside, path).inspect_err(|_| {
|
||||
let _ = std::fs::remove_file(&beside);
|
||||
})
|
||||
}
|
||||
|
||||
/// `uuid` in lowercase hex, 32 digits.
|
||||
fn hex(uuid: &[u8; 16]) -> String {
|
||||
uuid.iter().fold(String::with_capacity(32), |mut s, b| {
|
||||
let _ = write!(s, "{b:02x}");
|
||||
s
|
||||
})
|
||||
}
|
||||
|
||||
/// The UUID of 32 hex digits `text`; `None` where it is anything else.
|
||||
fn uuid(text: &str) -> Option<[u8; 16]> {
|
||||
if text.len() != 32 || !text.is_ascii() {
|
||||
return None;
|
||||
}
|
||||
let mut uuid = [0u8; 16];
|
||||
for (at, byte) in uuid.iter_mut().enumerate() {
|
||||
*byte = u8::from_str_radix(text.get(2 * at..2 * at + 2)?, 16).ok()?;
|
||||
}
|
||||
Some(uuid)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) mod tests {
|
||||
use super::super::tests::{discrete, integrated};
|
||||
use super::*;
|
||||
|
||||
/// A fresh directory of this test's own under the system's temporary directory, removed
|
||||
/// where the test ends.
|
||||
pub(crate) struct Scratch(pub(crate) std::path::PathBuf);
|
||||
|
||||
impl Scratch {
|
||||
pub(crate) fn new(name: &str) -> Scratch {
|
||||
let path = std::env::temp_dir().join(format!(
|
||||
"rvg-gpu-choice-{name}-{}-{:?}",
|
||||
std::process::id(),
|
||||
std::thread::current().id()
|
||||
));
|
||||
let _ = std::fs::remove_dir_all(&path);
|
||||
Scratch(path)
|
||||
}
|
||||
|
||||
pub(crate) fn file(&self) -> std::path::PathBuf {
|
||||
self.0.join("device-checks").join("gpu-choice")
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Scratch {
|
||||
fn drop(&mut self) {
|
||||
let _ = std::fs::remove_dir_all(&self.0);
|
||||
}
|
||||
}
|
||||
|
||||
/// The key lists every GPU's UUID and driver version, in the UUIDs' order whatever the
|
||||
/// loader's, and none where a GPU has no UUID
|
||||
#[test]
|
||||
fn the_key_is_every_gpus_uuid_and_driver() {
|
||||
let (a, b) = (integrated(11, 0xc5), discrete(4, 0x04));
|
||||
let key = key(&[&a, &b]).unwrap();
|
||||
assert_eq!(
|
||||
key,
|
||||
"04000000000000000000000000000000:1,c5000000000000000000000000000000:1"
|
||||
);
|
||||
assert_eq!(super::key(&[&b, &a]).unwrap(), key);
|
||||
let newer = Seen {
|
||||
driver_version: 2,
|
||||
..b.clone()
|
||||
};
|
||||
assert_ne!(super::key(&[&a, &newer]).unwrap(), key);
|
||||
let no_uuid = Seen { uuid: None, ..b };
|
||||
assert_eq!(super::key(&[&a, &no_uuid]), None);
|
||||
}
|
||||
|
||||
/// A verdict written is read back under its key, and under no other: another driver version
|
||||
/// or another set of GPUs reads nothing
|
||||
#[test]
|
||||
fn a_verdict_is_read_under_its_key_alone() {
|
||||
let scratch = Scratch::new("key");
|
||||
let (a, b) = (integrated(11, 0xc5), discrete(4, 0x04));
|
||||
let key = key(&[&a, &b]).unwrap();
|
||||
let (ua, ub) = (a.uuid.unwrap(), b.uuid.unwrap());
|
||||
let times = [
|
||||
(ua, Duration::from_micros(21_544)),
|
||||
(ub, Duration::from_micros(40_711)),
|
||||
];
|
||||
write(&scratch.file(), &key, &ua, ×).unwrap();
|
||||
assert_eq!(read(&scratch.file(), &key), Some(ua));
|
||||
let newer = Seen {
|
||||
driver_version: 2,
|
||||
..b.clone()
|
||||
};
|
||||
assert_eq!(
|
||||
read(&scratch.file(), &super::key(&[&a, &newer]).unwrap()),
|
||||
None
|
||||
);
|
||||
assert_eq!(read(&scratch.file(), &super::key(&[&a]).unwrap()), None);
|
||||
let text = std::fs::read_to_string(scratch.file()).unwrap();
|
||||
assert!(text.contains(&format!("time {} 40711", hex(&ub))), "{text}");
|
||||
}
|
||||
|
||||
/// A missing, empty, truncated or garbled file, one of another format, and one whose pick the
|
||||
/// key does not list read nothing
|
||||
#[test]
|
||||
fn a_corrupt_verdict_reads_nothing() {
|
||||
let scratch = Scratch::new("corrupt");
|
||||
let (a, b) = (integrated(11, 0xc5), discrete(4, 0x04));
|
||||
let key = key(&[&a, &b]).unwrap();
|
||||
assert_eq!(read(&scratch.file(), &key), None);
|
||||
std::fs::create_dir_all(scratch.file().parent().unwrap()).unwrap();
|
||||
let other = hex(&[0x77; 16]);
|
||||
let ua = hex(&a.uuid.unwrap());
|
||||
for text in [
|
||||
String::new(),
|
||||
format!("{HEADER}\n"),
|
||||
format!("{HEADER}\nkey {key}\n"),
|
||||
format!("{HEADER}\nkey {key}\npick {}\n", &ua[..31]),
|
||||
format!("{HEADER}\nkey {key}\npick {other}\n"),
|
||||
format!("reims-vgpu gpu choice 2\nkey {key}\npick {ua}\n"),
|
||||
"\u{0}\u{ff}garbage".to_owned(),
|
||||
] {
|
||||
std::fs::write(scratch.file(), &text).unwrap();
|
||||
assert_eq!(read(&scratch.file(), &key), None, "{text:?}");
|
||||
}
|
||||
std::fs::write(scratch.file(), [0xff, 0xfe, 0x00]).unwrap();
|
||||
assert_eq!(read(&scratch.file(), &key), None);
|
||||
}
|
||||
|
||||
/// UUIDs go to hex and back; anything but 32 hex digits is none
|
||||
#[test]
|
||||
fn a_uuid_reads_as_it_is_written() {
|
||||
let u: [u8; 16] = std::array::from_fn(|i| (i * 17) as u8);
|
||||
assert_eq!(uuid(&hex(&u)), Some(u));
|
||||
assert_eq!(uuid("00"), None);
|
||||
assert_eq!(uuid(&"g".repeat(32)), None);
|
||||
assert_eq!(uuid(&"é".repeat(16)), None);
|
||||
}
|
||||
}
|
||||
@@ -7,18 +7,17 @@
|
||||
//! handlers too, before the system ends the other threads, but `std::process::exit` is
|
||||
//! `ExitProcess` there, which runs none of them: a process that ends through it never runs the
|
||||
//! hook (QEMU ends through the C library's). A call into what a driver's destructors freed ends the process: on the
|
||||
//! RTX 5080 Laptop GPU (NVIDIA 615.71.09), the awake thread's touches segfaulted 79 times in a
|
||||
//! six-minute run of the workspace's tests, in processes whose tests had passed (`crate::awake`),
|
||||
//! and test processes ended with `SIGSEGV` inside `libnvidia-glvkspirv.so`, the driver's SPIR-V
|
||||
//! compiler, after their tests passed. The runtime's own exit guard (`rt::process_exiting`) waits
|
||||
//! for the runtime's calls on its own threads; the library's calls on its own threads (making
|
||||
//! RTX 5080 Laptop GPU (NVIDIA 615.71.09), a thread of the library's that touched the device
|
||||
//! segfaulted 79 times in a six-minute run of the workspace's tests, in processes whose tests had
|
||||
//! passed, and test processes ended with `SIGSEGV` inside `libnvidia-glvkspirv.so`, the driver's
|
||||
//! SPIR-V compiler, after their tests passed. The library's calls on its own threads (making
|
||||
//! objects and pipelines, importing pages, encoding, committing, presenting, decoding video) are
|
||||
//! the library's to keep out of that window. This gate does it:
|
||||
//! - **Steps.** Each job of a thread of the library's that may call a GPU's driver runs as a step
|
||||
//! ([`step`]; [`making`] for a pipeline's or a library's compile): every entry of
|
||||
//! `reims-vgpu`'s (its C API's calls, the device's callbacks, the jobs of its lanes, compile
|
||||
//! threads and surface workers), a window's frame, a video picture landed or a frame encoded,
|
||||
//! each call the video crate's threads make, and the awake thread's touches. Steps are counted.
|
||||
//! and each call the video crate's threads make. Steps are counted.
|
||||
//! A step taken once the gate closed is refused, and its thread parks for good ([`stay`]): what
|
||||
//! it holds stays held, and the process's end frees it. A step inside a step is part of the
|
||||
//! outer one and is never refused. Neither is a step on the thread that ran the hook, the
|
||||
@@ -26,11 +25,9 @@
|
||||
//! it.
|
||||
//! - **The hook.** An exit handler ([`arm`]) closes the gate and waits for the steps in progress
|
||||
//! on other threads to end, never for the exiting thread's own (an exit from inside a step): at
|
||||
//! most [`BOUND`], or [`MAKING_BOUND`] while a making is among them, as the runtime's guard
|
||||
//! waits for its own makings (a cold compile can outlast seconds under load). It says so on
|
||||
//! standard error once the wait passes half its bound, and past the bound the exit goes on.
|
||||
//! The gate also counts as closed once the runtime's guard closed (`rt::process_exiting`): no
|
||||
//! step starts after either hook ran.
|
||||
//! most [`BOUND`], or [`MAKING_BOUND`] while a making is among them (a cold compile can outlast
|
||||
//! seconds under load). It says so on standard error once the wait passes half its bound, and
|
||||
//! past the bound the exit goes on. No step starts after the hook ran.
|
||||
//! - **Ahead of the exit.** A host that quiesces the platform before it exits
|
||||
//! (`reims-vgpu`'s `GraphicsDevice::quiesce_for_exit`, the C API's `rvg_quiesce_for_exit`)
|
||||
//! closes the gate then ([`close_ahead`]), on the thread that then exits, and waits for the
|
||||
@@ -46,11 +43,10 @@
|
||||
//! the close can name the steps it waits for. Past [`SITE_SLOTS`] outermost steps at once, the
|
||||
//! rest are counted and not named.
|
||||
//! - **Its order.** The C library runs exit handlers in the reverse order of their registration,
|
||||
//! so the hook runs before every destructor registered before it. It is registered as a device
|
||||
//! is adopted (`crate::gpu::device`) and as a compile pool starts, after the driver was loaded;
|
||||
//! again as the video crate loads a driver (`reims-vgpu`'s video runtime's `arm_exit`); again
|
||||
//! as each making ends, after what the driver's compiler registered at its first use of a path,
|
||||
//! as the runtime's guard does for its own makings; and again as each thread's count of its
|
||||
//! so the hook runs before every destructor registered before it. It is registered as a compile
|
||||
//! pool starts, after the driver was loaded; again as the video crate loads a driver
|
||||
//! (`reims-vgpu`'s video runtime's `arm_exit`); again as each making ends, after what the
|
||||
//! driver's compiler registered at its first use of a path; and again as each thread's count of its
|
||||
//! steps ended reaches each power of two, for what a later call registered, at most 64 times a
|
||||
//! thread. A run of an
|
||||
//! earlier registration finds the hook ran and does nothing. Left open: a destructor
|
||||
@@ -65,15 +61,13 @@ use std::panic::Location;
|
||||
use std::sync::atomic::{AtomicBool, AtomicPtr, AtomicU64, Ordering};
|
||||
use std::time::Duration;
|
||||
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
use crate::core::platform::os::clock::{Clock as _, Deadline, MonoTime};
|
||||
|
||||
/// The longest the hook waits for the steps in progress, while none is a making.
|
||||
pub const BOUND: Duration = Duration::from_secs(2);
|
||||
|
||||
/// The longest the hook waits while a making is among the steps in progress: the runtime's guard
|
||||
/// waits as long for its own makings.
|
||||
/// The longest the hook waits while a making is among the steps in progress: a cold compile can
|
||||
/// outlast seconds under load.
|
||||
pub const MAKING_BOUND: Duration = Duration::from_secs(60);
|
||||
|
||||
/// How often the hook looks at the steps in progress.
|
||||
@@ -148,9 +142,9 @@ pub fn making() -> Option<Step> {
|
||||
}
|
||||
|
||||
/// Whether the process's exit closed the gate: the hook ran, a host closed it ahead of the exit
|
||||
/// ([`close_ahead`]), or the runtime's guard closed.
|
||||
/// ([`close_ahead`]).
|
||||
pub fn closed() -> bool {
|
||||
CLOSED.load(Ordering::SeqCst) || rt::process_exiting()
|
||||
CLOSED.load(Ordering::SeqCst)
|
||||
}
|
||||
|
||||
/// Parks this thread for good: a step was refused, the process exiting (the module docs).
|
||||
|
||||
@@ -1,224 +0,0 @@
|
||||
//! The generation of the runtime's device that a user of its raw Vulkan handles makes its own
|
||||
//! objects on ([`Generation`]): the plane copier's (`crate::os::PlaneCopier`), the toucher that
|
||||
//! keeps the GPU awake (`crate::awake`), and a window's swapchain (`crate::swapchain`).
|
||||
//!
|
||||
//! - **Why.** The runtime's device is a line of generations, one `VkDevice` each. Once its
|
||||
//! `VkDevice` is lost, the runtime makes a new one, and every later call goes there
|
||||
//! (metal2vulkan's `device/line.rs`; `rt::Device::recover_for_test` runs the same recovery with
|
||||
//! no fault). A root handle's `rt::Device::raw` answers the generation that serves at the call,
|
||||
//! and lets go of the one it answered before; `rt::CommandQueue::with_vk_queue` hands out the
|
||||
//! `VkQueue` of the queue's place on the generation that serves. So an object made with one
|
||||
//! generation's handles was used, after a recovery, through the next one's or submitted to its
|
||||
//! queue: objects of two devices in one call. Measured on a Radeon 780M (RADV, Mesa 26.2.6), the
|
||||
//! plane copier's copy after the runtime made its `VkDevice` again died in the driver, on a read
|
||||
//! at address 0x50.
|
||||
//! - **Its handles.** [`Generation::serving`] takes the generation that serves, as the device of
|
||||
//! an object made on it (a Metal fence, which makes no Vulkan object): a generation handle,
|
||||
//! whose `rt::Device::raw` answers that generation's `VkDevice` at every call, and which keeps
|
||||
//! it alive while the user holds it. So the user makes its objects with those handles, and
|
||||
//! destroys them with the same handles after a recovery too, before it lets the generation go.
|
||||
//! - **Its queue.** With it the user takes the `VkQueue` its runtime queue submits to there, and
|
||||
//! makes each submission inside `with_vk_queue` only where the queue handed in is that one
|
||||
//! ([`Generation::with_queue`]). Another is the queue's place on a newer generation: the kept
|
||||
//! `VkDevice`'s queues live as long as it does, so a newer device's never has one of their
|
||||
//! handles. The user then makes its objects again on the generation that serves.
|
||||
//! - **The objects it meets.** A runtime object's device is the generation it was made on: a
|
||||
//! runtime buffer the user's commands write is checked to be of the user's generation
|
||||
//! ([`Generation::is_of`]) before its handle is recorded.
|
||||
//! - **A parked generation.** A `VkDevice` whose work stopped with no loss from the driver (no
|
||||
//! work of it advanced for 10 seconds with some pending, and a probe on another engine of the
|
||||
//! GPU did not complete in 2 seconds: NVIDIA's `Xid 109 CTX SWITCH TIMEOUT`, after which every
|
||||
//! fence wait answers `VK_TIMEOUT` and none answers `VK_ERROR_DEVICE_LOST`) is recovered from as
|
||||
//! a lost one, and parked: the runtime never destroys it nor any object of it, and never waits
|
||||
//! for its queues, since its work never completes (metal2vulkan's `rt::Device::is_parked`).
|
||||
//! The user does the same with its own objects there ([`Generation::is_parked`]): it waits for
|
||||
//! none of its fences and queues past what it has already bounded, and destroys none of them,
|
||||
//! a window's swapchain among them; it lets go of the runtime's objects it holds there, and of
|
||||
//! the generation handle, as after any recovery, which the runtime leaves as they are.
|
||||
|
||||
use ash::vk;
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
/// How many times [`Generation::serving`] takes a generation and its queue before it gives up:
|
||||
/// each turn but the last was a recovery between the two.
|
||||
const TAKES: u32 = 4;
|
||||
|
||||
/// One generation of a runtime device, kept alive, and the `VkQueue` a runtime queue of the
|
||||
/// device submits to on it (the module docs).
|
||||
pub(crate) struct Generation {
|
||||
/// A generation handle: its raw handles are this generation's.
|
||||
device: rt::Device,
|
||||
/// Its `VkDevice`, by which generations are told apart while both live.
|
||||
handle: vk::Device,
|
||||
/// The `VkQueue` the queue submits to on it.
|
||||
queue: vk::Queue,
|
||||
/// That queue's family.
|
||||
family: u32,
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for Generation {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("Generation")
|
||||
.field("handle", &self.handle)
|
||||
.field("queue", &self.queue)
|
||||
.field("family", &self.family)
|
||||
.finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
/// The generation of `device`'s line that serves now: the device of a fence made on it.
|
||||
fn generation_serving(device: &rt::Device) -> rt::Device {
|
||||
device.new_fence().device()
|
||||
}
|
||||
|
||||
/// The `VkDevice` of `generation`, a generation handle (an object's device, or one
|
||||
/// [`generation_serving`] took): its own, which a call on a root handle would not be.
|
||||
fn handle_of(generation: &rt::Device) -> vk::Device {
|
||||
// SAFETY: only the handle is read, while the generation lives.
|
||||
unsafe { generation.raw() }.device.handle()
|
||||
}
|
||||
|
||||
impl Generation {
|
||||
/// The generation of `queue`'s device that serves, with the `VkQueue` `queue` submits to there
|
||||
/// and its family; `Err` where the device recovered each time the two were taken
|
||||
/// ([`TAKES`]). The generation is taken before the queue, which `with_vk_queue` hands out with
|
||||
/// the `VkDevice` it belongs to: where that is the generation's, the queue's place is on it.
|
||||
pub(crate) fn serving(queue: &rt::CommandQueue) -> Result<Generation, String> {
|
||||
for _ in 0..TAKES {
|
||||
let device = generation_serving(queue.device());
|
||||
let handle = handle_of(&device);
|
||||
// SAFETY: the closure keeps no handle and calls nothing.
|
||||
let (on, vk_queue, family) =
|
||||
unsafe { queue.with_vk_queue(|d, q, family| (d.handle(), q, family)) };
|
||||
if on == handle {
|
||||
return Ok(Generation {
|
||||
device,
|
||||
handle,
|
||||
queue: vk_queue,
|
||||
family,
|
||||
});
|
||||
}
|
||||
}
|
||||
Err(format!(
|
||||
"the device recovered each of the {TAKES} times its queue was taken"
|
||||
))
|
||||
}
|
||||
|
||||
/// The generation handle: its calls go to this generation while it serves.
|
||||
pub(crate) fn device(&self) -> &rt::Device {
|
||||
&self.device
|
||||
}
|
||||
|
||||
/// This generation's raw handles.
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// `rt::Device::raw`'s: the handles are used while `self` lives, and the queues the runtime
|
||||
/// submits to only through [`Generation::with_queue`].
|
||||
pub(crate) unsafe fn raw(&self) -> rt::DeviceHandles<'_> {
|
||||
// SAFETY: the caller's.
|
||||
unsafe { self.device.raw() }
|
||||
}
|
||||
|
||||
/// The family of the queue's `VkQueue` here.
|
||||
pub(crate) fn family(&self) -> u32 {
|
||||
self.family
|
||||
}
|
||||
|
||||
/// Whether this generation still serves `queue`'s device: false once a recovery made a new
|
||||
/// `VkDevice`, and the user's objects are to be made again ([`Generation::serving`]).
|
||||
pub(crate) fn serves(&self, queue: &rt::CommandQueue) -> bool {
|
||||
handle_of(&generation_serving(queue.device())) == self.handle
|
||||
}
|
||||
|
||||
/// Whether this generation's `VkDevice` stopped and is parked (the module docs): its objects
|
||||
/// are left as they are, never waited for nor destroyed. False while it serves, and for one
|
||||
/// lost to the driver's `VK_ERROR_DEVICE_LOST`.
|
||||
pub(crate) fn is_parked(&self) -> bool {
|
||||
self.device.is_parked(self.handle)
|
||||
}
|
||||
|
||||
/// Whether `device`, the device of a runtime object (a generation handle), is this
|
||||
/// generation: the object's Vulkan handles are of this generation's `VkDevice`.
|
||||
pub(crate) fn is_of(&self, device: &rt::Device) -> bool {
|
||||
handle_of(device) == self.handle
|
||||
}
|
||||
|
||||
/// `submit` with this generation's `VkQueue`, inside `queue`'s `with_vk_queue`, under the
|
||||
/// runtime's lock of that queue: `None`, with nothing called, where `queue` submits to
|
||||
/// another generation's queue now (a recovery moved it there).
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// `rt::CommandQueue::with_vk_queue`'s: `submit` keeps no handle, makes no call into the
|
||||
/// runtime and waits for nothing a later submission of the runtime's gives. `queue` is the one
|
||||
/// this generation was taken with.
|
||||
pub(crate) unsafe fn with_queue<R>(
|
||||
&self,
|
||||
queue: &rt::CommandQueue,
|
||||
submit: impl FnOnce(vk::Queue) -> R,
|
||||
) -> Option<R> {
|
||||
// SAFETY: the caller's.
|
||||
unsafe { queue.with_vk_queue(|_, q, _| (q == self.queue).then(|| submit(q))) }
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
/// A device of its own for each test that recovers it, as a recovery moves every user of the
|
||||
/// device: the process's test device stays as it was.
|
||||
fn own_device() -> rt::Device {
|
||||
rt::Device::system_default().expect("a runtime device")
|
||||
}
|
||||
|
||||
/// A generation serves until the device recovers; then its queue is another generation's, so
|
||||
/// nothing is submitted with it, and a generation taken again serves, of another `VkDevice`
|
||||
/// and with another queue. A device handle an object answered before the recovery keeps
|
||||
/// meaning the old generation, whatever the runtime carries the object itself to, and an
|
||||
/// object made after is of the new.
|
||||
#[test]
|
||||
fn a_generation_serves_until_its_device_recovers() {
|
||||
let device = own_device();
|
||||
let queue = device.new_command_queue().expect("a queue");
|
||||
let first = Generation::serving(&queue).expect("a generation");
|
||||
assert!(first.serves(&queue));
|
||||
// SAFETY: the closure keeps the handle only to return it, compared and never used.
|
||||
let submitted = unsafe { first.with_queue(&queue, |q| q) };
|
||||
assert_eq!(submitted, Some(first.queue));
|
||||
let before = device.new_fence();
|
||||
// The runtime carries a fence across a recovery, so its `device()` later answers the
|
||||
// generation it was carried to: the handle taken now is the old generation's.
|
||||
let before_device = before.device();
|
||||
assert!(first.is_of(&before_device));
|
||||
|
||||
device.recover_for_test().expect("the recovery");
|
||||
assert!(!first.serves(&queue));
|
||||
// SAFETY: as above.
|
||||
assert_eq!(unsafe { first.with_queue(&queue, |q| q) }, None);
|
||||
assert!(
|
||||
first.is_of(&before_device),
|
||||
"a handle taken before the recovery is the old generation's"
|
||||
);
|
||||
|
||||
let second = Generation::serving(&queue).expect("a generation");
|
||||
assert!(second.serves(&queue));
|
||||
assert_ne!(second.handle, first.handle);
|
||||
assert_ne!(second.queue, first.queue);
|
||||
// SAFETY: as above.
|
||||
assert_eq!(
|
||||
unsafe { second.with_queue(&queue, |q| q) },
|
||||
Some(second.queue)
|
||||
);
|
||||
let after = device.new_fence();
|
||||
assert!(second.is_of(&after.device()));
|
||||
assert!(!second.is_of(&before_device));
|
||||
// The old generation's handles still answer its own `VkDevice` while it is held.
|
||||
// SAFETY: only the handle is read, while `first` lives.
|
||||
assert_eq!(unsafe { first.raw() }.device.handle(), first.handle);
|
||||
// A recovery from a loss parks nothing: the old generation's objects are destroyed as
|
||||
// before; only a stopped one is parked, which no test here can make.
|
||||
assert!(!first.is_parked() && !second.is_parked());
|
||||
}
|
||||
}
|
||||
@@ -1,192 +1,29 @@
|
||||
//! The runtime's GPU objects: the device's queries and creators ([`device`]), capabilities
|
||||
//! ([`caps`]) and pixel format descriptions ([`format_info`]), resources and state objects
|
||||
//! ([`resource`]) and the guest's pages under them ([`backing`]), the descriptors ([`desc`]), the
|
||||
//! encoders, the indirect command buffers, rate maps, the command queue and buffer, and the
|
||||
//! events; Metal's GPU address space, which buffers and heaps are placed by ([`metal_space`]); the
|
||||
//! two-plane YCbCr formats ([`ycbcr`]) and the formats it makes no texture of
|
||||
//! ([`no_texture`]); what GPU work may write, where a write that never reaches a surface's memory
|
||||
//! dies ([`writes`]); and the debug lines that time the runtime's compiles ([`timing`]).
|
||||
//!
|
||||
//! Every Metal method core asks for is one runtime call, run through the answer layer
|
||||
//! ([`crate::answer`]) and named by its selector. The encoder families (`BlitCmd`, `ComputeCmd`,
|
||||
//! `RenderCmd`, `IcbRenderCmd`, `IcbComputeCmd`) are each one exhaustive `match` in their trait's
|
||||
//! `encode`, one call per variant.
|
||||
//!
|
||||
//! The raw values core passes (`u64` pixel formats, texture types, options) become the runtime's
|
||||
//! typed values here: a value the runtime's type cannot hold dies at the selector that took it
|
||||
//! ([`crate::answer::unrepresentable`]).
|
||||
//! What the rt platform takes of Metal's documented facts and of the M3 Max's answers: the stand-ins
|
||||
//! ([`caps`]) and the identity answers' relations ([`identity`]), the descriptors' resource options
|
||||
//! and the facts a texture over a surface's plane takes ([`device`]), the formats Metal makes no
|
||||
//! view in ([`no_texture`]), the copy of the guest's bytes a write takes ([`resource`]), the
|
||||
//! library's own shaders ([`shaders`]) and the trace's clock ([`timing`]); and Metal's raw pixel
|
||||
//! formats and swizzles as metal2vulkan's types.
|
||||
|
||||
pub mod backing;
|
||||
pub mod caps;
|
||||
pub mod command;
|
||||
#[cfg(test)]
|
||||
#[cfg(target_os = "macos")]
|
||||
mod depth_denormals;
|
||||
pub mod desc;
|
||||
pub mod device;
|
||||
pub mod dynamic_library;
|
||||
pub mod encode_blit;
|
||||
pub mod encode_compute;
|
||||
pub mod encode_render;
|
||||
pub mod event;
|
||||
pub mod fill;
|
||||
pub mod format_info;
|
||||
#[cfg(test)]
|
||||
mod frame_cost;
|
||||
pub mod function_table;
|
||||
pub mod icb;
|
||||
pub mod identity;
|
||||
pub mod metal_space;
|
||||
pub mod no_texture;
|
||||
mod pages_in_place;
|
||||
pub mod predication;
|
||||
pub mod rate_map;
|
||||
pub mod resource;
|
||||
#[cfg(test)]
|
||||
#[cfg(target_os = "macos")]
|
||||
mod rgbx;
|
||||
pub mod shaders;
|
||||
#[cfg(test)]
|
||||
#[cfg(target_os = "macos")]
|
||||
mod slice_write_repro;
|
||||
#[cfg(test)]
|
||||
pub(crate) mod spin;
|
||||
pub mod states;
|
||||
#[cfg(unix)]
|
||||
mod sync_file;
|
||||
pub mod timing;
|
||||
#[cfg(test)]
|
||||
#[cfg(target_os = "macos")]
|
||||
mod undefined;
|
||||
pub mod writes;
|
||||
pub mod ycbcr;
|
||||
|
||||
use std::ops::Range;
|
||||
use crate::core::platform::types::Swizzle;
|
||||
use metal2vulkan::metal::{PixelFormat, TextureSwizzle, TextureSwizzleChannels};
|
||||
|
||||
use crate::core::platform::types::{MtlOrigin, MtlRegion, MtlSize, NsRange, Swizzle};
|
||||
use metal2vulkan::metal::{
|
||||
PixelFormat, TextureSwizzle, TextureSwizzleChannels, TextureType, TextureUsage,
|
||||
};
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
use crate::answer::unrepresentable;
|
||||
|
||||
/// The most elements a bind's list holds on the stack ([`listed`]): Metal's 31 buffer slots of a
|
||||
/// stage, and as many textures or samplers.
|
||||
const LISTED: usize = 31;
|
||||
|
||||
/// Runs `call` with each element of `list` as `map` makes it, in order: a bind's list of core's
|
||||
/// objects as the runtime's, which every bind of several slots makes, on the stack where it holds
|
||||
/// at most [`LISTED`], else in a `Vec`. The runtime reads the slice alone, so where it lies
|
||||
/// changes nothing it answers.
|
||||
pub(crate) fn listed<A, B: Copy + Default, R>(
|
||||
list: &[A],
|
||||
mut map: impl FnMut(&A) -> B,
|
||||
call: impl FnOnce(&[B]) -> R,
|
||||
) -> R {
|
||||
if list.len() > LISTED {
|
||||
let all: Vec<B> = list.iter().map(map).collect();
|
||||
return call(&all);
|
||||
}
|
||||
let mut on_stack = [B::default(); LISTED];
|
||||
for (to, from) in on_stack.iter_mut().zip(list) {
|
||||
*to = map(from);
|
||||
}
|
||||
call(&on_stack[..list.len()])
|
||||
}
|
||||
|
||||
/// `MTLSize`.
|
||||
pub(crate) fn size(s: MtlSize) -> rt::Size {
|
||||
rt::Size::new(s.width, s.height, s.depth)
|
||||
}
|
||||
|
||||
/// `MTLOrigin`.
|
||||
pub(crate) fn origin(o: MtlOrigin) -> rt::Origin {
|
||||
rt::Origin::new(o.x, o.y, o.z)
|
||||
}
|
||||
|
||||
/// `MTLRegion`.
|
||||
pub(crate) fn region(r: MtlRegion) -> rt::Region {
|
||||
rt::Region::new_3d(
|
||||
r.origin.x,
|
||||
r.origin.y,
|
||||
r.origin.z,
|
||||
r.size.width,
|
||||
r.size.height,
|
||||
r.size.depth,
|
||||
)
|
||||
}
|
||||
|
||||
/// `NSRange` as the range of indices it names; `None` where its end passes `u64::MAX`.
|
||||
pub(crate) fn range(r: NsRange) -> Option<Range<u64>> {
|
||||
r.location.checked_add(r.length).map(|end| r.location..end)
|
||||
}
|
||||
|
||||
/// A raw `MTLPixelFormat`, sent with `sel`.
|
||||
pub(crate) fn pixel_format(sel: &'static str, raw: u64) -> PixelFormat {
|
||||
runtime_pixel_format(raw)
|
||||
.unwrap_or_else(|| unrepresentable(sel, &format!("pixel format {raw}")))
|
||||
}
|
||||
|
||||
/// The runtime's format of a raw `MTLPixelFormat`: `None` for a value it has no enumerator of.
|
||||
/// metal2vulkan's format of a raw `MTLPixelFormat`: `None` for a value it has no enumerator of.
|
||||
pub(crate) fn runtime_pixel_format(raw: u64) -> Option<PixelFormat> {
|
||||
u32::try_from(raw)
|
||||
.ok()
|
||||
.and_then(|raw| PixelFormat::try_from(raw).ok())
|
||||
}
|
||||
|
||||
/// The runtime's format of a raw `MTLPixelFormat` Metal takes, or the raw value, where the runtime
|
||||
/// has no format of it or Metal describes none for it (`Depth24Unorm_Stencil8` and `X24_Stencil8`,
|
||||
/// which the runtime has), but `MTLPixelFormatInvalid`: a texture or a view of a raw value dies
|
||||
/// where it is made, or is nil, as Metal's ([`crate::gpu::desc::lacked`]). `sel` asks Metal's
|
||||
/// description ([`crate::gpu::format_info::described`]).
|
||||
pub(crate) fn held_format(sel: &'static str, raw: u64) -> Result<PixelFormat, u64> {
|
||||
held_by(raw, |raw| crate::gpu::format_info::described(sel, raw))
|
||||
}
|
||||
|
||||
/// The runtime's format of `raw` where `described` says Metal describes it, or `raw` itself.
|
||||
fn held_by(raw: u64, described: impl FnOnce(u64) -> bool) -> Result<PixelFormat, u64> {
|
||||
match runtime_pixel_format(raw) {
|
||||
Some(pf) if raw == 0 || described(raw) => Ok(pf),
|
||||
_ => Err(raw),
|
||||
}
|
||||
}
|
||||
|
||||
/// A raw `MTLTextureType`, sent with `sel`.
|
||||
pub(crate) fn texture_type(sel: &'static str, raw: u64) -> TextureType {
|
||||
runtime_texture_type(raw)
|
||||
.unwrap_or_else(|| unrepresentable(sel, &format!("texture type {raw}")))
|
||||
}
|
||||
|
||||
/// The runtime's type of a raw `MTLTextureType`: `None` for a value it has no enumerator of.
|
||||
pub(crate) fn runtime_texture_type(raw: u64) -> Option<TextureType> {
|
||||
u32::try_from(raw)
|
||||
.ok()
|
||||
.and_then(|raw| TextureType::try_from(raw).ok())
|
||||
}
|
||||
|
||||
/// A raw `MTLTextureUsage`, sent with `sel`.
|
||||
pub(crate) fn texture_usage(sel: &'static str, raw: u64) -> TextureUsage {
|
||||
u32::try_from(raw)
|
||||
.ok()
|
||||
.and_then(|raw| TextureUsage::try_from(raw).ok())
|
||||
.unwrap_or_else(|| unrepresentable(sel, &format!("texture usage {raw:#x}")))
|
||||
}
|
||||
|
||||
/// Core's `MTLTextureSwizzleChannels`, sent with `sel`.
|
||||
pub(crate) fn swizzle(sel: &'static str, s: Swizzle) -> TextureSwizzleChannels {
|
||||
runtime_swizzle(s).unwrap_or_else(|| {
|
||||
unrepresentable(
|
||||
sel,
|
||||
&format!(
|
||||
"texture swizzle ({}, {}, {}, {})",
|
||||
s.red, s.green, s.blue, s.alpha
|
||||
),
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
/// The runtime's swizzle of core's: `None` where a channel is a value it has no enumerator of.
|
||||
/// metal2vulkan's swizzle of core's: `None` where a channel is a value it has no enumerator of.
|
||||
pub(crate) fn runtime_swizzle(s: Swizzle) -> Option<TextureSwizzleChannels> {
|
||||
let channel = |raw: u8| TextureSwizzle::try_from(u32::from(raw)).ok();
|
||||
Some(TextureSwizzleChannels {
|
||||
@@ -196,106 +33,3 @@ pub(crate) fn runtime_swizzle(s: Swizzle) -> Option<TextureSwizzleChannels> {
|
||||
alpha: channel(s.alpha)?,
|
||||
})
|
||||
}
|
||||
|
||||
/// A raw value of the Metal enum or option set `T`, which `what` names, sent with `sel`.
|
||||
pub(crate) fn metal_value<T: TryFrom<u32>>(sel: &'static str, what: &str, raw: u64) -> T {
|
||||
u32::try_from(raw)
|
||||
.ok()
|
||||
.and_then(|raw| T::try_from(raw).ok())
|
||||
.unwrap_or_else(|| unrepresentable(sel, &format!("{what} {raw:#x}")))
|
||||
}
|
||||
|
||||
/// A buffer of the platform's own (a predication counter, a fill's staging, a draw's index
|
||||
/// buffer: none a guest names) of `length` bytes and `options`, holding `contents`, outside the
|
||||
/// Metal address space (`AddressPlacement::Outside`): it takes no Metal address, so no guest
|
||||
/// buffer's `gpuAddress` depends on when the work that uses it completes, as Metal's own
|
||||
/// allocations move none of a program's.
|
||||
pub(crate) fn own_buffer(
|
||||
device: &rt::Device,
|
||||
length: u64,
|
||||
options: rt::ResourceOptions,
|
||||
contents: rt::BufferContents<'_>,
|
||||
) -> Result<rt::Buffer, rt::Error> {
|
||||
let descriptor = rt::BufferDescriptor::new(length, options, contents)
|
||||
.with_placement(rt::AddressPlacement::Outside);
|
||||
device.new_buffer_with_descriptor(descriptor)
|
||||
}
|
||||
|
||||
/// A raw `MTLResourceOptions`, sent with `sel`.
|
||||
pub(crate) fn resource_options(sel: &'static str, raw: u64) -> rt::ResourceOptions {
|
||||
rt::ResourceOptions::from_raw(raw)
|
||||
.unwrap_or_else(|_| unrepresentable(sel, &format!("resource options {raw:#x}")))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::core::raise::death::DeathKind;
|
||||
use crate::core::testkit::capture::catch_death;
|
||||
|
||||
/// The platform's own buffers lie outside the Metal address space, `[2^47, 2^48)`, where no
|
||||
/// guest buffer lies
|
||||
#[test]
|
||||
fn own_buffers_take_no_metal_address() {
|
||||
use crate::core::platform::device::GpuDevice as _;
|
||||
use crate::core::platform::resource::Buffer as _;
|
||||
use crate::core::raise::OnFault;
|
||||
|
||||
let d = crate::gpu::device::tests::dev();
|
||||
let shared = rt::ResourceOptions::shared();
|
||||
let own = own_buffer(&d.raw, 64, shared, rt::BufferContents::Copy(&[7; 64])).unwrap();
|
||||
let guest = d
|
||||
.new_buffer_of_length(OnFault::Return, 64, 0)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
assert!((1 << 47..1 << 48).contains(&own.gpu_address().0));
|
||||
assert!(guest.gpu_address() < 1 << 47);
|
||||
}
|
||||
|
||||
/// Core's values carry each field to the runtime's; a raw value the runtime cannot hold dies
|
||||
/// at the selector
|
||||
#[test]
|
||||
fn values_convert() {
|
||||
assert_eq!(size(MtlSize::new(1, 2, 3)), rt::Size::new(1, 2, 3));
|
||||
assert_eq!(origin(MtlOrigin::new(4, 5, 6)), rt::Origin::new(4, 5, 6));
|
||||
let r = region(MtlRegion::new(
|
||||
MtlOrigin::new(1, 2, 0),
|
||||
MtlSize::new(3, 4, 1),
|
||||
));
|
||||
assert_eq!(r, rt::Region::new_3d(1, 2, 0, 3, 4, 1));
|
||||
assert_eq!(range(NsRange::new(2, 3)), Some(2..5));
|
||||
assert_eq!(range(NsRange::new(u64::MAX, 1)), None);
|
||||
assert_eq!(pixel_format("setPixelFormat:", 80), PixelFormat::BGRA8Unorm);
|
||||
assert_eq!(texture_type("setTextureType:", 2), TextureType::Type2D);
|
||||
assert_eq!(texture_usage("setUsage:", 3).as_raw(), 3);
|
||||
assert_eq!(resource_options("x", 0x20).raw(), 0x20);
|
||||
let site = catch_death(|| pixel_format("setPixelFormat:", 1 << 40)).unwrap_err();
|
||||
assert_eq!(
|
||||
(site.kind, site.file),
|
||||
(DeathKind::Abort, "setPixelFormat:")
|
||||
);
|
||||
assert_eq!(
|
||||
resource_options("x", rt::ResourceOptions::PRIVATE_BIT | 0x20).raw(),
|
||||
0x100_0020,
|
||||
"Metal's private bit 24, which the runtime takes"
|
||||
);
|
||||
let site =
|
||||
catch_death(|| resource_options("newBufferWithLength:options:", 1 << 25)).unwrap_err();
|
||||
assert_eq!(site.file, "newBufferWithLength:options:");
|
||||
}
|
||||
|
||||
/// A bind's list reaches the runtime as the elements `map` makes, in order, at every length:
|
||||
/// on the stack up to [`LISTED`], in a `Vec` past it
|
||||
#[test]
|
||||
fn listed_lists_are_the_mapped_elements_in_order() {
|
||||
for len in [0, 1, 2, LISTED - 1, LISTED, LISTED + 1, 128] {
|
||||
let list: Vec<Option<u32>> = (0..len)
|
||||
.map(|i| u32::try_from(i).ok().filter(|i| i % 3 != 1))
|
||||
.collect();
|
||||
let map = |v: &Option<u32>| v.map(|v| u64::from(v) * 7);
|
||||
let expected: Vec<Option<u64>> = list.iter().map(map).collect();
|
||||
let got = listed(&list, map, <[Option<u64>]>::to_vec);
|
||||
assert_eq!(got, expected, "{len} elements");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,158 +0,0 @@
|
||||
//! The read-only bit each buffer and heap keeps ([`Backing`]), and what this platform hands the
|
||||
//! runtime with a no-copy buffer's or heap's memory: the trace of where it was handed
|
||||
//! ([`ImportSite`], [`ImportTrace`]), and the keep-alive that holds what keeps it mapped
|
||||
//! ([`keep_alive`]).
|
||||
//!
|
||||
//! **Read-only.** On Linux the runtime makes a no-copy buffer or heap made with
|
||||
//! `MTLResourceOptions` bit 24 or over pages mapped read-only over a copy of them, whose GPU
|
||||
//! writes it drops, as the views' gate refuses read-only pages (`crate::os::import_view`): a
|
||||
//! shader's, a blit's into a buffer and a visibility result's are sent, and dropped as Metal's
|
||||
//! are, while a pass's store into the object's memory and a write of a texture over it are
|
||||
//! answered where they are encoded ([`Backing::read_only_now`], `crate::gpu::writes`). The
|
||||
//! runtime keeps the pages a range had when it imported them (`tests/no_copy_remap.rs`).
|
||||
|
||||
use std::ptr::NonNull;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
|
||||
use crate::core::num::ToU64;
|
||||
use crate::core::rt::BlockEnv;
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
/// The runtime rounds a heap's size up to a multiple of this (16 KiB), and the heap's memory
|
||||
/// covers all of it.
|
||||
pub(crate) const HEAP_GRANULE: u64 = 0x4000;
|
||||
|
||||
/// The read-only bit a buffer or heap was made with, and whether the memory it lies in is
|
||||
/// read-only.
|
||||
#[derive(Debug)]
|
||||
pub struct Backing {
|
||||
read_only: bool,
|
||||
/// Whether the memory the object lies in is read-only where the runtime does not import
|
||||
/// read-only memory as it is mapped ([`crate::os::COPIES_READ_ONLY`]): the memory a no-copy
|
||||
/// buffer or heap was made over, mapped read-only or made with bit 24.
|
||||
kept: AtomicBool,
|
||||
/// Whether, of that memory, the pages are mapped read-only, which a CPU write through them
|
||||
/// cannot write ([`Backing::pages_read_only`]).
|
||||
mapped_read_only: AtomicBool,
|
||||
}
|
||||
|
||||
impl Backing {
|
||||
/// The backing of a buffer or heap over the memory it was made with; `read_only` for one
|
||||
/// made with `MTLResourceOptions` bit 24.
|
||||
pub(crate) fn new(read_only: bool) -> Backing {
|
||||
Backing {
|
||||
read_only,
|
||||
kept: AtomicBool::new(false),
|
||||
mapped_read_only: AtomicBool::new(false),
|
||||
}
|
||||
}
|
||||
|
||||
/// The object, a no-copy buffer or heap, was made over memory of the caller's whose pages are
|
||||
/// mapped read-only where `mapped_read_only` (`os::ImportView::read_only`), with
|
||||
/// `MTLResourceOptions` bit 24 where `bit_24` or [`Backing::new`] was told so: its memory is
|
||||
/// read-only where either holds ([`Backing::read_only_now`]).
|
||||
pub(crate) fn imported(&self, mapped_read_only: bool, bit_24: bool) {
|
||||
let read_only = mapped_read_only || bit_24 || self.read_only;
|
||||
let kept = crate::os::COPIES_READ_ONLY && read_only;
|
||||
(self.mapped_read_only).store(kept && mapped_read_only, Ordering::Release);
|
||||
self.kept.store(kept, Ordering::Release);
|
||||
}
|
||||
|
||||
/// Whether the memory the object lies in is read-only memory the runtime copies
|
||||
/// ([`Backing::read_only_now`]) whose pages are mapped read-only: a CPU write of a texture
|
||||
/// over it, which the runtime makes through the pages, dies, as Metal's CPU write through
|
||||
/// such a mapping ends the process (`crate::gpu::resource`).
|
||||
pub(crate) fn pages_read_only(&self) -> bool {
|
||||
self.mapped_read_only.load(Ordering::Acquire)
|
||||
}
|
||||
|
||||
/// Whether the memory the object lies in is read-only where the runtime does not import
|
||||
/// read-only memory as it is mapped (on Linux, [`crate::os::COPIES_READ_ONLY`]): it makes the
|
||||
/// object over a copy of it, dropping the GPU's writes, where Metal's GPU keeps them from the
|
||||
/// memory itself and faults a pass that stores into it.
|
||||
pub(crate) fn read_only_now(&self) -> bool {
|
||||
self.kept.load(Ordering::Acquire)
|
||||
}
|
||||
|
||||
/// [`Backing::read_only_now`], asked as work that may write through a texture over the
|
||||
/// object is encoded ([`crate::gpu::writes::Kept`]).
|
||||
pub(crate) fn kept(&self) -> crate::gpu::writes::Kept {
|
||||
match self.read_only_now() {
|
||||
true => crate::gpu::writes::Kept::Copied,
|
||||
false => crate::gpu::writes::Kept::No,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Where host memory was handed to the runtime, as the trace names it ([`ImportTrace`]).
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub(crate) enum ImportSite {
|
||||
/// A no-copy buffer over host memory core gives (`newBufferWithBytesNoCopy`).
|
||||
NoCopyBytes,
|
||||
/// A no-copy buffer a descriptor names (`newBufferWithDescriptor:`).
|
||||
NoCopyDescriptor,
|
||||
/// A heap over host memory (`new_heap_over_host_memory`).
|
||||
Heap,
|
||||
}
|
||||
|
||||
impl ImportSite {
|
||||
/// The site's number in the trace.
|
||||
fn code(self) -> u64 {
|
||||
match self {
|
||||
Self::NoCopyBytes => 1,
|
||||
Self::NoCopyDescriptor => 2,
|
||||
Self::Heap => 4,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// The trace of the host memory this platform hands the runtime for one no-copy buffer or heap,
|
||||
/// with `REIMS_VGPU_TRACE` set ([`crate::core::trace`]): `imp` as its keep-alive is
|
||||
/// made (the site, the first byte given, its length, the first byte handed over), and `impfree`
|
||||
/// as the keep-alive goes ([`keep_alive`]). It marks each buffer, not each import: a buffer
|
||||
/// made over exactly the bytes a live no-copy buffer was made over lies in that one's import
|
||||
/// (the runtime's `host_aliases.rs`), and its keep-alive goes at its release; the runtime's
|
||||
/// `WorkCounts` count those (`host_keep_alives_covered`). A diagnostic: it holds nothing and
|
||||
/// reads nothing with an effect, and the keep-alive drops it last.
|
||||
pub(crate) struct ImportTrace(u64);
|
||||
|
||||
impl ImportTrace {
|
||||
pub(crate) fn new(
|
||||
site: ImportSite,
|
||||
given: NonNull<u8>,
|
||||
length: u64,
|
||||
imported: NonNull<u8>,
|
||||
) -> Self {
|
||||
let at = imported.as_ptr().addr().to_u64();
|
||||
let given = given.as_ptr().addr().to_u64();
|
||||
crate::core::trace::event("imp", &[site.code(), given, length, at]);
|
||||
Self(at)
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for ImportTrace {
|
||||
fn drop(&mut self) {
|
||||
crate::core::trace::event("impfree", &[self.0]);
|
||||
}
|
||||
}
|
||||
|
||||
/// The runtime's keep-alive of `kept`, what keeps the memory of a no-copy buffer's or heap's
|
||||
/// import mapped (the record of its pinned pages, an [`UnmapHold`](crate::remap::UnmapHold)): the
|
||||
/// runtime
|
||||
/// drops it once it freed the device's import of the memory, after the deallocator ran, on
|
||||
/// the thread that frees the import, which may be one of the runtime's; or, for a buffer whose
|
||||
/// import keeps another buffer's keep-alive already (one that lies in a live buffer's import),
|
||||
/// at the buffer's release, after its deallocator (the runtime's `host_memory.rs`, "A
|
||||
/// keep-alive"). Its drop runs marked ours, so a panic there aborts.
|
||||
pub(crate) fn keep_alive(kept: impl Send + 'static) -> rt::KeepAlive {
|
||||
/// `kept`, dropped marked ours.
|
||||
struct Kept<T>(Option<T>);
|
||||
impl<T> Drop for Kept<T> {
|
||||
fn drop(&mut self) {
|
||||
// A callout on the runtime's thread: marked ours, so a panic here aborts.
|
||||
let _env = BlockEnv::foreign();
|
||||
drop(self.0.take());
|
||||
}
|
||||
}
|
||||
Box::new(Kept(Some(kept)))
|
||||
}
|
||||
@@ -1,188 +1,16 @@
|
||||
//! `DeviceCaps` on the Vulkan platform: every answer core asks a device, read once per device.
|
||||
//!
|
||||
//! Each answer comes from one of three sources, in this order:
|
||||
//! - **the runtime's answer** of the Metal query (`DeviceProperties`,
|
||||
//! `Device::heap_buffer_size_and_align`): the name, the threadgroup sizes, the public queries,
|
||||
//! `supportsTextureWriteRoundingMode:` (Apple's SPI: yes for 1 and 2, as Metal answers; at
|
||||
//! mode 2 the runtime rounds a render state's half-float colour attachments to nearest even,
|
||||
//! as Metal's, announces a blend of other factors than one and zero at the draw
|
||||
//! (`blended-write-rounding`, relayed, a death in strict mode) and refuses a fragment
|
||||
//! function's half-float and small-float texture writes, which die at their selector; a
|
||||
//! half-float attachment it is not measured to store as Metal does is relayed as the state is
|
||||
//! made, a death in strict mode), and, in
|
||||
//! [`crate::gpu::format_info`], Apple's private pixel format description and level layout
|
||||
//! (`Device::pixel_format_info`, `Device::texture_level_info`);
|
||||
//! - **the runtime's answer of Apple's private property** on the device
|
||||
//! (`Device::private_properties`), read from what the runtime acts on: its argument tables'
|
||||
//! entries, the texture sides and layers its descriptors take (Metal's, or the device's where
|
||||
//! they are fewer), its viewports, its threadgroup memory table and alignment, its rate maps'
|
||||
//! layers, the compile layer's threads per threadgroup, the linear alignment at which the
|
||||
//! device's images hold a texture over a buffer in place (the largest of the formats'), the
|
||||
//! IOSurface alignment it places textures at, and whether it takes a buffer's attribute stride
|
||||
//! per bind (`supportsDynamicAttributeStride`: on every device, through the pipeline's static
|
||||
//! stride or vertex pulling where the device lacks `VK_EXT_extended_dynamic_state`):
|
||||
//! [`computed`];
|
||||
//! - **computed from documented facts** the runtime gives (its device's Vulkan description, the
|
||||
//! compile layer's `MetalDeviceProperties`), for the other private properties: [`computed`];
|
||||
//! - **a stand-in** where no documented fact gives the answer, or where the runtime's answer is
|
||||
//! not Metal's and the guest or the host sees it: Metal's answer on the host the stand-ins were
|
||||
//! read on, an Apple M3 Max, but for the registry ID, which Metal answers at run time on the
|
||||
//! host the library runs on.
|
||||
//!
|
||||
//! **This table lists every stand-in of the crate**, the `DeviceCaps` answers read here and the
|
||||
//! answers other modules give from Metal on the M3 Max, each beside the code that answers it:
|
||||
//!
|
||||
//! | answer | stand-in | why not the runtime's or a fact |
|
||||
//! |---|---|---|
|
||||
//! | `registryID` of the runtime's system default device | Metal's system default device's, asked at run time on macOS ([`crate::os::default_registry_id`]; `0x10000043f` on the M3 Max) | the runtime's is folded from the device UUID, which MoltenVK fills with the vendor and device IDs alone (`0x0902061a6b100000` on the M3 Max), and the core count and driver sizes Metal answers for that GPU are found by Metal's (`gpu_core_count`, `identity::driver_sizes`); another device, and a host where Metal has none, answer the runtime's |
|
||||
//! | `supportsFamily:` of Apple5 to Apple10, -1009 | yes, yes, yes, yes, yes, no, no | the runtime claims a family only where every row of Apple's table is exact, and claims none on MoltenVK. **Pending support** (below): what a family promises that the runtime refuses dies at its selector |
|
||||
//! | `supportsExtendedXR10Formats` | yes | **pending support** (below): the runtime makes textures of the XR10 formats (550 to 555), in heaps too, and of format 84 (plane 1's view format of the two-plane XR10 textures, 550 and 551), reads and writes them in kernels, samples them in 2D and gathers 552 to 555 as floats, unswizzled and under the four swizzles of the texture or a view the tests read through (`rgbx`'s `XR_SWIZZLES`, which move, repeat, drop and replace channels; no other swizzle is measured), as Metal does on the M3 (`rgbx`'s `extended_range_textures_read_as_metals`), reads 552 and 554 through an argument buffer as Metal does, and samples and gathers them so as Metal does through a sampler of one filter and no mip filter, samples other textures through one as Metal does while one lives that the command does not reach, and dies, naming the runtime's refusal, at a command that samples or gathers one it reaches (names or makes resident) through an argument buffer otherwise (a sampler of a mip filter among them), or reads an `_sRGB` twin or a swizzled one so (`rgbx`'s `extended_range_textures_an_argument_buffer_holds_read_as_metals`), copies 550's and 551's colour words to and from the CPU and buffers as Metal does, and renders to one where the fragment function writes all of its channels or none. It blends a `half4` output, and a `float4` one, into one in the shader, by its model of Metal's blend, and reads one it blends by framebuffer fetch. The model holds without fast math, each product rounded to `half` as Metal's compiler does there (`encode_render`'s `float4_extended_range_blends_are_metals_here` and `half4_extended_range_blends_are_metals_without_fast_math` compare `float4` and `half4` outputs with Metal across passes, into each linear form and each `_sRGB` twin), and under fast math for an output each of whose lanes is a load; where Metal may round the blend's source otherwise, under fast math an output the function computes, or a module that names no math mode, the render state announces the output's kind: for a `half4` one `extended-range-blend-source`, which the device relays for its reach ([`crate::answer`]): a computed `half4` misses Metal's by one code of a channel at 13 of the 66 blended configurations the tests draw, at 130 to 483 of 4096 texels each (`half4_extended_range_blends_announce_their_source`); for a `float4` one `extended-range-float-blend-source`, which the runtime announces at each draw that binds the state's variant, where the draw dies (the state is made), where a computed `float4` missed Metal's at 17 of the 66 (`float4_extended_range_blends_die_naming_their_source`). The tests draw the 22 blends of `XR_BLENDS` into each linear form and the 8 of `XR_SRGB_BLENDS` into each `_sRGB` twin; without fast math, where the runtime also draws a blend by the blend colour under a difference, and any blend into an `_sRGB` twin, they draw those of `XR_CONSTANT_DIFFERENCES` into each form and the rest of `XR_BLENDS` into each twin as Metal does (`extended_range_blends_drawn_without_fast_math_alone_are_metals`), and into each form and twin six blends under write masks of one colour channel and of two as Metal does, and a function's two outputs into colour 0, unblended, storing the first output's values as Metal does, the second nowhere, and without fast math under six blends of the second source as Metal does (`extended_range_masked_blends_and_two_output_states_are_metals`); the others are not measured. A draw that blends into or reads an attachment an earlier draw of its pass may have written, or that its `Clear` left between two codes, reads the `half` values the runtime holds through a pass of one sample and one layer without a rasterization-rate map, as Metal's tile memory does, announcing nothing, so its blends in one pass are Metal's (`encode_render`'s `float4_extended_range_blends_are_metals_here`, `a_blend_onto_a_clear_between_codes_is_metals`); otherwise (another such pass, after an execution of render commands or a tile dispatch, where an earlier render pass instance of the pass wrote the attachment, or a draw whose pipeline has no shadowed form) it sees the codes the runtime stored, where Metal holds the value through the pass, which the runtime announces and the device relays (`extended-range-blends-stored-codes`). A multisampled render target of one resolves by the runtime's own resolve of its codes after the pass: `BGR10_XR`'s and `BGRA10_XR`'s colour as Metal's, an alpha within a code and an `_sRGB` twin's colour within 7 (`encode_render`'s `drawn_extended_range_samples_resolve_as_metals`), which the runtime announces and the device relays (`extended-range-resolve`). The runtime refuses the rest, which dies at its selector; among it a render target of one unblended under a mask of some of its channels, blended under fast math under a mask of one colour channel, by a factor of the second source, by the blend colour under a difference, into an `_sRGB` form beyond the
Line truncated
|
||||
//! | `supports_float16_bcubic_filtering` | yes | undocumented, unmeasured |
|
||||
//! | `minimumLinearTextureAlignmentForPixelFormat:` of `BGRA8Unorm`, and `minimumTextureBufferAlignmentForPixelFormat:` of each format a texture buffer takes ([`crate::gpu::identity`]) | 16 bytes, Metal's answer for every format a buffer backs (measured on the M3 Max and the M4), and the runtime's refusal of the others: a compressed, depth or stencil format, or one Metal describes none of ([`linear_alignment`]) | the runtime answers the alignment at which the device's images hold a texture over a buffer in place, at least Metal's (`Device::minimum_linear_texture_alignment_for_pixel_format`: 256 for most formats on RADV, 64 on lavapipe, 16 on MoltenVK), and the guest's frameworks lay out their linear textures and texture buffers by it: an answer stays as it was until the guests boot with the new one |
|
||||
//! | `is_rgb10a2_gamma_supported` (key 8) | yes | **pending support** (below): the runtime holds no texture of `RGB10A2Unorm_sRGB` (586), which Metal makes, so it answers no on every device (`Device::private_properties`), and a texture of it dies where it is made (measured on the M3 Max, of `ShaderRead` usage and of `ShaderRead` and `RenderTarget`) |
|
||||
//! | `is_large_mrt_supported`, `supports_conditional_load_store`, `supports_compute_compressed_texture_write` | yes, yes, no: Metal's answers, as the runtime records them (`PrivateAnswer::Metal`) | undocumented, unmeasured: the runtime has no answer of the device's for them |
|
||||
//! | `supports_texture_2d_multisample_array` | yes | undocumented |
|
||||
//! | `supportsPrimitiveType:` of the raw values 5 to 9 | yes, yes, yes, yes, no | no public `MTLPrimitiveType` is one; the runtime draws 5 to 8 as Metal does (`rt::DrawPrimitiveType`). **Pending support** (below): a draw of one the runtime cannot draw as Metal does, which it refuses, dies at the draw's selector (`encode_render`) |
|
||||
//! | `maxComputeThreadgroupMemory` (Apple's private property, the guest's device-info key 31) | 65536, Metal's answer, as the runtime records it (`PrivateAnswer::Metal`) | undocumented, and not the public `maxThreadgroupMemoryLength` (32768, Metal's answer and the runtime's) |
|
||||
//! | `maxVertexAmplificationCount` (private, key 20) | 2, Metal's answer as the runtime records it (`PrivateAnswer::Metal`), or the largest count the public `supportsVertexAmplificationCount:` takes where that is less | undocumented: the public query takes 1 to 8 on Metal and on the runtime |
|
||||
//! | `supportsTileShaders`, `supportsNonSquareTileShaders`, `supportsImageBlocks` (private, keys 23 and 24) | yes | the runtime makes tile pipelines and imageblocks, a `half4` member over `RGBA8Unorm` among them. **Pending support** (below): it answers no on every device (`Device::private_properties`), as its audit of Apple9 refuses part of each row (`TileShaders` and `NonsquareTileDispatch` tile shading it has not built, `Imageblocks` imageblock masters), which dies at its selector |
|
||||
//! | the address an indirect command's arguments answer for a nil patch or control-point index buffer (`icb::NIL_BUFFER_ADDRESS`) | `0x1eeee1111` | Metal's private getters' answer, which no record holds |
|
||||
//!
|
||||
//! **Pending support.** In the rows marked so, Metal has the capability and the runtime's support
|
||||
//! for it is pending at the pinned runtime. The answer is kept Metal's, as the guest sees an M3
|
||||
//! Max and the suite's expected files were recorded there. What the guest then does with it and
|
||||
//! the runtime refuses dies at its selector ([`crate::answer::refused`],
|
||||
//! [`crate::answer::unrepresentable`]), never with a faked result.
|
||||
//!
|
||||
//! **Command predication is the adapter's** ([`crate::gpu::predication`]), with no limit on
|
||||
//! nesting, as Metal's: `supportsCommandBufferJump` (key 33's 0x4) is yes and
|
||||
//! `maxPredicatedNestingDepth` (key 36) is `u32::MAX`, Metal's answers.
|
||||
//!
|
||||
//! **Where the device lacks any other capability, the answer is the device's truth**, never
|
||||
//! Metal's:
|
||||
//! - the two SIMD flags (key 33's 0x40, `supports_simd_reduction`, and 0x100,
|
||||
//! `supports_simd_shuffle_and_fill`) are yes only where the runtime takes every function of
|
||||
//! the classes they promise, in every stage, as Metal's device-wide flags do: where each row of
|
||||
//! Apple's feature tables the flag covers is exact in the runtime's audit of the Apple9 column
|
||||
//! (`Device::family_rows`, [`SIMD_ROWS`]): "SIMD-scoped reduction operations" and "Quad-scoped
|
||||
//! reduction operations" for 0x40, "SIMD shift and fill" for 0x100. The rows answer by the
|
||||
//! stages' classes and the quad members the compile layer decodes. At the pinned runtime every
|
||||
//! row is exact on this host, so both flags are yes and key 33 is Metal's: the quad
|
||||
//! reductions combine a quad's lanes in Metal's order, `(a + b) + (c + d)`, under the ballot
|
||||
//! and shuffle classes, which MoltenVK's vertex stage has too, and a fill's modulo is answered
|
||||
//! as Metal answers it, a constant one and a runtime one. A guest told yes where a row is not
|
||||
//! exact picks work that Metal runs and the runtime refuses or runs otherwise; told no, it
|
||||
//! never makes that pipeline;
|
||||
//! - buffers and heaps over address ranges are no, as the AMD Radeon Pro 5300M and the Intel UHD
|
||||
//! 630 answer (measured, macOS 26.7.1), where the M3 Max answers yes: this platform makes
|
||||
//! neither, and the guest's bundle refuses a buffer descriptor with address ranges, its
|
||||
//! answers to both selectors IOGPU's base device's (no on every guest measured), so nothing a
|
||||
//! guest reads changes with these;
|
||||
//! - `supportsResourceDetachBacking` is no, as the AMD Radeon Pro 5300M and the Intel UHD 630
|
||||
//! answer (measured, macOS 26.7.1), where the M3 Max answers yes: nothing detaches or replaces
|
||||
//! a backing. This platform does neither, and the guest's heaps answer neither (the Metal
|
||||
//! bundle's `RgfxHeap` raises an unrecognized selector, as Metal's base heap), so the bundle
|
||||
//! answers no as well;
|
||||
//! - `heapTextureSizeAndAlignWithDescriptor:` of a depth or stencil texture with
|
||||
//! `allowGPUOptimizedContents` off answers Metal's size, the runtime's model of Metal's answer,
|
||||
//! which answers an X32_Stencil8 texture as a Stencil8 one of its shape, as the runtime's own
|
||||
//! is larger: MoltenVK keeps the texture's GPU-optimized layout, which the runtime announces
|
||||
//! (`OptimizedDepthStencilTexture`, [`crate::gpu::device`]'s query). It dies for a descriptor
|
||||
//! the model does not answer (one of `ShaderAtomic` usage the runtime refuses first, as Metal
|
||||
//! asserts), and so does a
|
||||
//! placement of such a texture in a heap where the runtime's size decides it
|
||||
//! (`crate::gpu::resource::Placements`), and
|
||||
//! `newTextureWithDescriptor:` of such a texture the runtime's model of Metal's answer has
|
||||
//! none for, at every shape; where the model has one, the texture takes it
|
||||
//! ([`crate::gpu::metal_space::own_heap_size`]);
|
||||
//! - `heapTextureSizeAndAlignWithDescriptor:` of a texture whose layout in Metal's heaps the
|
||||
//! runtime does not model (8 samples, which the runtime refuses first), whose
|
||||
//! size and alignment the runtime answers as its device's image's and announces so
|
||||
//! (`unmeasured-heap-texture-size`), dies at its selector, naming it ([`crate::answer::HEARD`]):
|
||||
//! a guest that sized a heap by such answers could fit more or fewer such textures in it than
|
||||
//! on Metal, at other offsets. The runtime models a mipmapped texture Metal keeps losslessly
|
||||
//! compressed and a one-sample `Depth32Float_Stencil8` one, which answer Metal's: the
|
||||
//! three-level `RGBA16Float` ones the macOS 26 boots ask among them, and a seven-level 64x64
|
||||
//! `R32Uint` render target, 0x5800 bytes (`resource`'s
|
||||
//! `lossless_mipmapped_heap_texture_sizes_are_metals`);
|
||||
//! - a two-plane XR10 texture (550, 551) in a heap takes the size and alignment
|
||||
//! `heapTextureSizeAndAlignWithDescriptor:` answers, Metal's two planes. One of one level, but
|
||||
//! for a 1D array, keeps its first level's slices in the heap's bytes where Metal lays them out
|
||||
//! (a 3D one its first depth slice, over which Metal lays every other); a mipmapped one and a
|
||||
//! 1D array keep the first level there too, where Metal's paths address the later levels at
|
||||
//! bytes that differ by path, which the runtime announces (`heap-two-plane-layout`, relayed, in
|
||||
//! strict mode dying at the creation, [`crate::answer::DIES`]); any other's texels (one past the
|
||||
//! device's limits) lie in memory of their own, apart from the heap's bytes, which the runtime
|
||||
//! announces (`heap-two-plane-texture`),
|
||||
//! where Metal's texture keeps its two planes there. So a buffer or texture placed over such a
|
||||
//! texture's range of the heap while it lives dies at the placement, as such a texture placed
|
||||
//! over a living one's does, the heap's cover, the buffer over all of it core makes with each
|
||||
//! heap, included: such a texture dies in every heap core makes
|
||||
//! ([`crate::gpu::resource::Placements`]); the heap's bytes there, read through the heap's
|
||||
//! address or the guest's memory under a heap over it, are not its texels either;
|
||||
//! - a two-plane XR10 texture (550, 551) over plane 0 of a 'b3a8' surface is the runtime's, its
|
||||
//! colour words in plane 0 and its alpha bytes in plane 1, read, sampled, cleared, filled and
|
||||
//! copied to and from another texture of the format as Metal's (the tests compare them over the
|
||||
//! guest's shape and others); one over another surface or over plane 1, or rotated, which Metal
|
||||
//! makes, dies where it is made, naming the runtime's refusal; a copy within one dies at the
|
||||
//! copy, naming the runtime's refusal, where Metal copies;
|
||||
//! - a texture of a two-plane YCbCr format over an IOSurface is the runtime's for the 24 formats
|
||||
//! it reads ([`crate::gpu::ycbcr::runtime_makes`], the packed 508 to 510 and 528 to 530 among
|
||||
//! them), Metal's bit for bit in every comparison the tests make (`ycbcr/sampling.rs`:
|
||||
//! `read()`, nearest samples under every address mode, gathers under the clamping ones and
|
||||
//! each border colour, and linear samples, over every OSType each is made over, and constexpr
|
||||
//! samplers). One over a surface whose OSType, plane, chroma or matrix the runtime does not
|
||||
//! read dies where it is made, where Metal makes it; and a command that samples one through a
|
||||
//! sampler slot that samples a texture of another map in the same stage, by a function that
|
||||
//! samples through handles able to reach it, or through a constexpr sampler whose modes are
|
||||
//! not stated or map to one a constexpr sampler cannot address, which the runtime cannot map,
|
||||
//! dies there.
|
||||
//!
|
||||
//! **Unannounced runtime gaps**, reported to the runtime, which announces nothing to die at. Each
|
||||
//! differs from Metal silently, as nothing here dies at it either, until the runtime announces
|
||||
//! it, then it is placed by its reach. One at the pinned runtime: an execution of indirect
|
||||
//! commands the CPU wrote runs their records as they stood at its command buffer's commit, where
|
||||
//! Metal's GPU reads them as it runs the execution, so a setter of a command after the commit,
|
||||
//! while the command buffer waits (behind an event, or on another queue), changes what Metal
|
||||
//! runs and not what the runtime runs (`crate::gpu::command::executions`; a write by the GPU
|
||||
//! there dies instead, `gpu_writes`).
|
||||
//!
|
||||
//! **Differences this platform announces itself**, each a line on stderr once per device, until
|
||||
//! the runtime announces a typed kind for it, which then places it by its reach: none at the
|
||||
//! pinned runtime, which announces the layouts of a texture placed in a heap over no address
|
||||
//! ranges, whose bytes core copies to and from the guest's pages, that are not Metal's there
|
||||
//! (`heap-texture-untiled-layout`, `heap-texture-lossless-layout`, relayed). On Linux, read-only
|
||||
//! memory (the guest's read-only objects, a heap or no-copy buffer made with bit 24, and a no-copy
|
||||
//! buffer or heap over pages mapped read-only) the runtime makes over a copy whose GPU writes it
|
||||
//! drops, announced (`copied-host-pages`), and what Metal answers otherwise there is
|
||||
//! `crate::gpu::writes`'s.
|
||||
//! The stand-ins of the rt platform's answers (`crate::rt_platform::answers`): Metal's answers on
|
||||
//! an Apple M3 Max, where no documented fact and no Vulkan query gives one and the guest or the
|
||||
//! host sees it. What the guest then does with an answer that rt refuses dies at its selector,
|
||||
//! never with a faked result.
|
||||
|
||||
use std::sync::Arc;
|
||||
use crate::core::platform::caps::FAMILIES;
|
||||
|
||||
use crate::core::num::ToU64;
|
||||
use crate::core::platform::caps::{
|
||||
DeviceCaps, FAMILIES, Flags, HEAP_QUERY_OPTIONS, Limits, PRIMITIVE_TYPE_COUNT, SAMPLE_COUNTS,
|
||||
WRITE_ROUNDING_MODES,
|
||||
};
|
||||
use crate::core::platform::types::{MtlSize, SizeAndAlign};
|
||||
use crate::core::raise::RaiseResult;
|
||||
use metal2vulkan::device::VkFeature;
|
||||
use metal2vulkan::error::Feature;
|
||||
use metal2vulkan::metal::PixelFormat;
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
use crate::answer::{Policy, refused, send};
|
||||
use crate::gpu::resource_options;
|
||||
|
||||
/// The public `MTLPrimitiveType`s: point, line, line strip, triangle, triangle strip, which the
|
||||
/// runtime draws.
|
||||
const PUBLIC_PRIMITIVE_TYPES: u64 = 5;
|
||||
|
||||
/// The stand-ins: Metal's answers on an Apple M3 Max, where no documented fact
|
||||
/// gives one (the module's table). The registry ID, which Metal answers at run time, is the
|
||||
/// OS's ([`crate::os::default_registry_id`]).
|
||||
/// The stand-ins: Metal's answers on an Apple M3 Max, where no documented fact gives one (the
|
||||
/// module docs). The registry ID, which Metal answers at run time, is the OS's
|
||||
/// ([`crate::os::default_registry_id`]).
|
||||
pub mod stand_in {
|
||||
/// `supportsFamily:` of each of core's `FAMILIES`.
|
||||
/// `supportsFamily:` of each of core's `FAMILIES`: Apple5 to Apple9 yes, Apple10 and -1009
|
||||
/// no.
|
||||
pub const FAMILIES: [bool; 7] = [true, true, true, true, true, false, false];
|
||||
/// `supportsExtendedXR10Formats`.
|
||||
pub const EXTENDED_XR10_FORMATS: bool = true;
|
||||
@@ -192,468 +20,19 @@ pub mod stand_in {
|
||||
pub const IMAGE_BLOCKS: bool = true;
|
||||
/// `isRGB10A2GammaSupported`.
|
||||
pub const RGB10A2_GAMMA: bool = true;
|
||||
/// `supportsFloat16BCubicFiltering`.
|
||||
/// `supportsFloat16BCubicFiltering`: undocumented, unmeasured.
|
||||
pub const FLOAT16_BCUBIC_FILTERING: bool = true;
|
||||
/// `supportsTexture2DMultisampleArray`.
|
||||
/// `supportsTexture2DMultisampleArray`: undocumented.
|
||||
pub const TEXTURE_2D_MULTISAMPLE_ARRAY: bool = true;
|
||||
/// `supportsPrimitiveType:` of the raw values 5 to 9.
|
||||
/// `supportsPrimitiveType:` of the raw values 5 to 9, no public `MTLPrimitiveType`.
|
||||
pub const PRIVATE_PRIMITIVE_TYPES: [bool; 5] = [true, true, true, true, false];
|
||||
}
|
||||
|
||||
/// The runtime's answer of a query whose runtime piece may not be built yet: a gap dies at the
|
||||
/// query's selector, as every send the runtime refuses where Metal answers does.
|
||||
fn query<T>(sel: &'static str, answer: Result<T, rt::RuntimeGap>) -> T {
|
||||
answer.unwrap_or_else(|gap| refused(sel, &rt::Error::NotImplemented(gap)))
|
||||
}
|
||||
|
||||
/// The largest count in `1..=64` that `accepts` takes, counting up from 1 until it refuses one; 0
|
||||
/// when it refuses 1.
|
||||
fn largest(sel: &'static str, accepts: impl Fn(u64) -> Result<bool, rt::RuntimeGap>) -> u64 {
|
||||
(1..=64u64)
|
||||
.take_while(|&count| query(sel, accepts(count)))
|
||||
.last()
|
||||
.unwrap_or(0)
|
||||
}
|
||||
|
||||
/// The rows of Apple's feature tables each SIMD flag of key 33 promises, in every stage:
|
||||
/// `supports_simd_reduction` (0x40) the SIMD- and quad-scoped reductions, and
|
||||
/// `supports_simd_shuffle_and_fill` (0x100) SIMD shift and fill, whose row covers its quad forms.
|
||||
const SIMD_ROWS: [&[rt::FeatureRow]; 2] = [
|
||||
&[rt::FeatureRow::SimdReduction, rt::FeatureRow::QuadReduction],
|
||||
&[rt::FeatureRow::SimdShiftAndFill],
|
||||
];
|
||||
|
||||
/// Whether every row of each of [`SIMD_ROWS`] is exact on `device`: offered in every stage,
|
||||
/// refusing nothing Metal takes, in the runtime's audit of the Apple9 column, which lists all
|
||||
/// three rows, as `supportsFamily:` judges them.
|
||||
fn simd_rows_exact(device: &rt::Device) -> [bool; 2] {
|
||||
let audit = device.family_rows(rt::GpuFamily::Apple9);
|
||||
SIMD_ROWS.map(|rows| {
|
||||
rows.iter().all(|&row| {
|
||||
audit
|
||||
.iter()
|
||||
.any(|a| a.row == rt::FamilyRow::Feature(row) && a.state == rt::RowState::Exact)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/// The runtime's answer of `property` on the device, read from what it acts on; where it has none
|
||||
/// of the device's, Metal's measured answer, as the runtime records
|
||||
/// it (its `PrivateAnswer::Metal`: `maxComputeThreadgroupMemory` and
|
||||
/// `maxVertexAmplificationCount` at the pinned runtime), a stand-in (the module's table).
|
||||
fn device_count(private: &rt::PrivateProperties, property: rt::PrivateCount) -> u64 {
|
||||
let answer = private.count(property);
|
||||
answer.value().unwrap_or(answer.metal())
|
||||
}
|
||||
|
||||
/// The runtime's answer of `property` on the device, as [`device_count`].
|
||||
fn device_flag(private: &rt::PrivateProperties, property: rt::PrivateFlag) -> bool {
|
||||
let answer = private.flag(property);
|
||||
answer.value().unwrap_or(answer.metal())
|
||||
}
|
||||
|
||||
/// `supportsMemoryOrderAtomics`: Metal's answer (yes on the M3 Max, measured), where the device has
|
||||
/// the atomics; no where it lacks them.
|
||||
/// The runtime runs an atomic of any order on every device, and reaches the coherent device memory
|
||||
/// one orders under the Vulkan memory model at device scope, which a device without
|
||||
/// `vulkanMemoryModel` and `vulkanMemoryModelDeviceScope` refuses: its answer of the property on
|
||||
/// the device (`Device::private_properties`), yes on MoltenVK.
|
||||
fn memory_order_atomics(private: &rt::PrivateProperties) -> bool {
|
||||
let answer = private.flag(rt::PrivateFlag::SupportsMemoryOrderAtomics);
|
||||
answer.value().unwrap_or(false) && answer.metal()
|
||||
}
|
||||
|
||||
/// Apple's private properties: limits and flags, and `maxVertexAmplificationCount`, each the
|
||||
/// runtime's answer on the device (`private`, `Device::private_properties`), computed from the
|
||||
/// documented facts it gives, or a stand-in (the module's docs).
|
||||
fn computed(device: &rt::Device, private: &rt::PrivateProperties) -> (u64, Limits, Flags) {
|
||||
use rt::{PrivateCount as C, PrivateFlag as F};
|
||||
let props = device.properties();
|
||||
let metal = device.compile_device().metal_properties();
|
||||
let count = |property| device_count(private, property);
|
||||
let flag = |property| device_flag(private, property);
|
||||
let amplification = largest("supportsVertexAmplificationCount:", |count| {
|
||||
props.supports_vertex_amplification_count(count)
|
||||
});
|
||||
let [simd_reduction, simd_shuffle_and_fill] = simd_rows_exact(device);
|
||||
let refuses = |feature: Feature| {
|
||||
metal
|
||||
.unsupported_features
|
||||
.iter()
|
||||
.any(|u| u.feature == feature)
|
||||
};
|
||||
let limits = Limits {
|
||||
device_linear_texture_alignment_bytes: count(C::DeviceLinearTextureAlignmentBytes),
|
||||
iosurface_read_only_texture_alignment_bytes: count(
|
||||
C::IosurfaceReadOnlyTextureAlignmentBytes,
|
||||
),
|
||||
iosurface_texture_alignment_bytes: count(C::IosurfaceTextureAlignmentBytes),
|
||||
linear_texture_alignment_bytes: count(C::LinearTextureAlignmentBytes),
|
||||
max_compute_buffers: count(C::MaxComputeBuffers),
|
||||
max_compute_local_memory_sizes: count(C::MaxComputeLocalMemorySizes),
|
||||
max_compute_samplers: count(C::MaxComputeSamplers),
|
||||
max_compute_textures: count(C::MaxComputeTextures),
|
||||
max_compute_threadgroup_memory: count(C::MaxComputeThreadgroupMemory),
|
||||
max_compute_threadgroup_memory_alignment_bytes: count(
|
||||
C::MaxComputeThreadgroupMemoryAlignmentBytes,
|
||||
),
|
||||
max_fragment_buffers: count(C::MaxFragmentBuffers),
|
||||
max_fragment_samplers: count(C::MaxFragmentSamplers),
|
||||
max_fragment_textures: count(C::MaxFragmentTextures),
|
||||
// The adapter's predication nests without limit (`predication`).
|
||||
max_predicated_nesting_depth: u64::from(u32::MAX),
|
||||
max_rasterization_rate_layer_count: count(C::MaxRasterizationRateLayerCount),
|
||||
max_texture_height_2d: count(C::MaxTextureHeight2D),
|
||||
max_texture_layers: count(C::MaxTextureLayers),
|
||||
max_texture_width_2d: count(C::MaxTextureWidth2D),
|
||||
max_threadgroup_memory_length: props.max_threadgroup_memory_length,
|
||||
max_tile_buffers: count(C::MaxTileBuffers),
|
||||
max_tile_samplers: count(C::MaxTileSamplers),
|
||||
max_tile_textures: count(C::MaxTileTextures),
|
||||
max_total_compute_threads_per_threadgroup: count(C::MaxTotalComputeThreadsPerThreadgroup),
|
||||
max_vertex_buffers: count(C::MaxVertexBuffers),
|
||||
max_vertex_samplers: count(C::MaxVertexSamplers),
|
||||
max_vertex_textures: count(C::MaxVertexTextures),
|
||||
max_viewport_count: count(C::MaxViewportCount),
|
||||
};
|
||||
let flags = Flags {
|
||||
are_raster_order_groups_supported: query(
|
||||
"areRasterOrderGroupsSupported",
|
||||
props.are_raster_order_groups_supported(),
|
||||
),
|
||||
is_depth24_stencil8_pixel_format_supported: query(
|
||||
"isDepth24Stencil8PixelFormatSupported",
|
||||
props.is_depth24_stencil8_pixel_format_supported(),
|
||||
),
|
||||
// The compile layer's: a fragment function reads its colour attachments, through
|
||||
// rasterization-order input attachments or the pixel interlock's storage form: yes on
|
||||
// MoltenVK, RADV, ANV and NVIDIA. The runtime's own answer
|
||||
// (`PrivateFlag::IsFramebufferReadSupported`, its `ProgrammableBlending` row) is yes on
|
||||
// MoltenVK and RADV too, and no on NVIDIA and ANV, which render the one- and
|
||||
// two-channel 8-bit sRGB formats (and, on NVIDIA, the packed 16-bit ones and
|
||||
// `RGB9E5Float`) only through a view of their word, whose fetch the compile layer
|
||||
// refuses per pipeline (`NotImplemented(Format)`), which dies at the pipeline's
|
||||
// creation. An answer stays as it was until the guests boot with the new one, so this
|
||||
// one stays the compile layer's.
|
||||
is_framebuffer_read_supported: !refuses(Feature::FramebufferFetch),
|
||||
is_large_mrt_supported: flag(F::IsLargeMrtSupported),
|
||||
is_rgb10a2_gamma_supported: stand_in::RGB10A2_GAMMA,
|
||||
supports_buffer_with_address_ranges: false,
|
||||
// The guest makes a buffer over a surface's pages through the reims-graphics device
|
||||
// (`RgfxBufferOverSurfacePages`), which this platform makes as any no-copy buffer.
|
||||
supports_buffer_with_iosurface: true,
|
||||
// The adapter builds command predication (`predication`).
|
||||
supports_command_buffer_jump: true,
|
||||
supports_compute_compressed_texture_write: flag(F::SupportsComputeCompressedTextureWrite),
|
||||
supports_conditional_load_store: flag(F::SupportsConditionalLoadStore),
|
||||
supports_dynamic_attribute_stride: flag(F::SupportsDynamicAttributeStride),
|
||||
supports_extended_xr10_formats: stand_in::EXTENDED_XR10_FORMATS,
|
||||
supports_float16_bcubic_filtering: stand_in::FLOAT16_BCUBIC_FILTERING,
|
||||
supports_heap_with_address_ranges: false,
|
||||
supports_image_blocks: stand_in::IMAGE_BLOCKS,
|
||||
supports_memory_order_atomics: memory_order_atomics(private),
|
||||
supports_native_hardware_fp16: props.description.has(VkFeature::ShaderFloat16),
|
||||
supports_non_square_tile_shaders: stand_in::TILE_SHADERS,
|
||||
supports_programmable_sample_positions: query(
|
||||
"areProgrammableSamplePositionsSupported",
|
||||
props.are_programmable_sample_positions_supported(),
|
||||
),
|
||||
// Nothing detaches or replaces a backing (the module's docs).
|
||||
supports_resource_detach_backing: false,
|
||||
// The runtime's shared texture handle, in this process.
|
||||
supports_shared_texture_handles: true,
|
||||
supports_simd_reduction: simd_reduction,
|
||||
supports_simd_shuffle_and_fill: simd_shuffle_and_fill,
|
||||
supports_texture_2d_multisample_array: stand_in::TEXTURE_2D_MULTISAMPLE_ARRAY,
|
||||
supports_tile_shaders: stand_in::TILE_SHADERS,
|
||||
};
|
||||
let amplification = amplification.min(count(C::MaxVertexAmplificationCount));
|
||||
(amplification, limits, flags)
|
||||
}
|
||||
|
||||
/// `gpuCoreCount` (private, the guest's device-info key 34) of the device named `name`, whose
|
||||
/// driver reports `reported` cores and which this platform answers registry ID `registry_id` for:
|
||||
/// the device's own GPU's cores, never another GPU's.
|
||||
/// - On macOS, for the device this platform answers Metal's registry ID for (the runtime's system
|
||||
/// default device, which MoltenVK runs on Metal's default GPU, [`crate::os::default_registry_id`]):
|
||||
/// Metal's own answer for that GPU ([`crate::os::default_gpu_core_count`]), 40 on the M3 Max.
|
||||
/// - Else the driver's count, where it reports one (`rt::DeviceProperties::gpu_core_count`:
|
||||
/// NVIDIA's streaming multiprocessors, 60 on an RTX 5080 Laptop GPU; AMD's compute units; Arm's
|
||||
/// shader cores).
|
||||
/// - Else none (Intel's drivers, lavapipe, and a device MoltenVK runs on another GPU than Metal's
|
||||
/// default report no count): core writes no key 34 pair, as Apple's framework writes none for a
|
||||
/// device that does not respond to `gpuCoreCount`. An x86-64 guest's device does not respond to
|
||||
/// it on any host, as the AMD Radeon Pro 5300M's and the Intel UHD 630's do not (measured: macOS
|
||||
/// 26.7.1, oracle_caps), so only an Apple GPU's, an arm64 guest's, answers the count, 0 where
|
||||
/// there is none. Logged once at info, as the device's caps are read, naming the kind
|
||||
/// (`gpu-core-count-unknown`).
|
||||
fn gpu_core_count(name: &str, reported: Option<u32>, registry_id: u64) -> Option<u64> {
|
||||
let metals = if crate::os::default_registry_id() == Some(registry_id) {
|
||||
crate::os::default_gpu_core_count()
|
||||
} else {
|
||||
None
|
||||
};
|
||||
let count = metals.or(reported.map(u64::from));
|
||||
if count.is_none() {
|
||||
log::info!(
|
||||
target: "reims_vgpu_vulkan::caps", kind = "gpu-core-count-unknown";
|
||||
"gpuCoreCount: {name}: its driver reports no core count and no Metal device stands for \
|
||||
it, so the guest's device info carries none (key 34): an arm64 guest's device answers \
|
||||
0, and an x86-64 guest's answers none, as an x86 Mac's does"
|
||||
);
|
||||
}
|
||||
count
|
||||
}
|
||||
|
||||
/// Metal's `minimumLinearTextureAlignmentForPixelFormat:` on an Apple GPU, the M3 Max's and the
|
||||
/// M4's, for every pixel format a buffer backs: a stand-in (the module's table). It is also the
|
||||
/// alignment the runtime holds a texture's rows over a buffer or a plane of an IOSurface without
|
||||
/// planes to, as Metal does (`BufferTextureProblem::RowPitchAlignment`), which a device cache laid
|
||||
/// out at the GPU's pitch has its rows meet (`GpuDevice::linear_rows_pitch`).
|
||||
/// M4's, for every pixel format a buffer backs (measured): a stand-in (the module docs). It is
|
||||
/// also the alignment Metal holds a texture's rows over a buffer or a plane of an IOSurface
|
||||
/// without planes to, which a device cache laid out at the GPU's pitch has its rows meet
|
||||
/// (`GpuDevice::linear_rows_pitch`).
|
||||
pub(crate) const METAL_LINEAR_ALIGNMENT: u64 = 16;
|
||||
|
||||
/// `minimumLinearTextureAlignmentForPixelFormat:` of `pf` as this platform answers it, a stand-in
|
||||
/// (the module's table): [`METAL_LINEAR_ALIGNMENT`] for each format the runtime's query answers,
|
||||
/// and the runtime's refusal of the others (`Invalid`, `BufferTextureProblem::NotLinear`: a
|
||||
/// compressed, depth or stencil format, or one Metal describes none of, at which Metal's query
|
||||
/// asserts). The runtime's own answer, the device's, is not taken here: the guest's IOSurface
|
||||
/// aligns the rows of the surfaces it lays out to it instead, where they lie in place in their
|
||||
/// pages (`GpuDevice::linear_row_alignment`).
|
||||
pub(crate) fn linear_alignment(device: &rt::Device, pf: PixelFormat) -> Result<u64, rt::Error> {
|
||||
device
|
||||
.minimum_linear_texture_alignment_for_pixel_format(pf)
|
||||
.map(|_| METAL_LINEAR_ALIGNMENT)
|
||||
}
|
||||
|
||||
/// `heapBufferSizeAndAlignWithLength:options:` of (`length`, `options`).
|
||||
fn heap_buffer_size_and_align(
|
||||
device: &rt::Device,
|
||||
length: u64,
|
||||
options: u64,
|
||||
) -> RaiseResult<SizeAndAlign> {
|
||||
let sel = "heapBufferSizeAndAlignWithLength:options:";
|
||||
let options = resource_options(sel, options);
|
||||
send(sel, Policy::Caught, || {
|
||||
let answer = device.heap_buffer_size_and_align(length, options);
|
||||
Ok(SizeAndAlign {
|
||||
size: answer.size,
|
||||
align: answer.align,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/// Every answer of `device`, read once. `registry_id` is the one this platform answers for it
|
||||
/// (`device::registry_id`), and `page_size` the length of the heap-buffer query
|
||||
/// (`vm_page_size`).
|
||||
pub fn read(device: &rt::Device, registry_id: u64, page_size: u64) -> Arc<DeviceCaps> {
|
||||
let props = device.properties();
|
||||
let private = device.private_properties();
|
||||
let (max_vertex_amplification_count, limits, flags) = computed(device, &private);
|
||||
let rt::Size {
|
||||
width,
|
||||
height,
|
||||
depth,
|
||||
} = props.max_threads_per_threadgroup;
|
||||
Arc::new(DeviceCaps {
|
||||
name: Some(props.name.clone()),
|
||||
registry_id,
|
||||
gpu_core_count: gpu_core_count(&props.name, props.gpu_core_count, registry_id),
|
||||
max_threads_per_threadgroup: MtlSize::new(width, height, depth),
|
||||
max_vertex_amplification_count,
|
||||
limits,
|
||||
flags,
|
||||
sample_counts: SAMPLE_COUNTS.map(|count| {
|
||||
Ok(query(
|
||||
"supportsTextureSampleCount:",
|
||||
props.supports_texture_sample_count(count),
|
||||
))
|
||||
}),
|
||||
primitive_types: std::array::from_fn(|t| {
|
||||
let t = t.to_u64();
|
||||
Ok(match t.checked_sub(PUBLIC_PRIMITIVE_TYPES) {
|
||||
None => true,
|
||||
Some(private) => stand_in::PRIVATE_PRIMITIVE_TYPES
|
||||
.get(usize::try_from(private).unwrap_or(usize::MAX))
|
||||
.copied()
|
||||
.unwrap_or(false),
|
||||
})
|
||||
}),
|
||||
families: stand_in::FAMILIES.map(Ok),
|
||||
write_rounding_modes: WRITE_ROUNDING_MODES
|
||||
.map(|mode| Ok(props.supports_texture_write_rounding_mode(mode.cast_unsigned()))),
|
||||
heap_buffer_page_private: heap_buffer_size_and_align(device, page_size, HEAP_QUERY_OPTIONS),
|
||||
min_linear_alignment_bgra8: send(
|
||||
"minimumLinearTextureAlignmentForPixelFormat:",
|
||||
Policy::Caught,
|
||||
|| linear_alignment(device, PixelFormat::BGRA8Unorm),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
// The tables core asks are as long as the answers here hold.
|
||||
const _: () = assert!(FAMILIES.len() == stand_in::FAMILIES.len());
|
||||
const _: () = assert!(PRIMITIVE_TYPE_COUNT == PUBLIC_PRIMITIVE_TYPES + 5);
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::core::platform::device::GpuDevice;
|
||||
|
||||
use super::*;
|
||||
use crate::gpu::device::tests::dev;
|
||||
|
||||
/// `gpuCoreCount` of a device no Metal device stands for is its driver's count, and none
|
||||
/// where its driver reports none: never another GPU's
|
||||
#[test]
|
||||
fn gpu_core_counts_are_the_devices_own() {
|
||||
let elsewhere = crate::os::default_registry_id().map_or(1, |id| id ^ 1);
|
||||
assert_eq!(
|
||||
gpu_core_count("an RTX 5080 Laptop GPU", Some(60), elsewhere),
|
||||
Some(60)
|
||||
);
|
||||
assert_eq!(gpu_core_count("llvmpipe", None, elsewhere), None);
|
||||
}
|
||||
|
||||
/// The SIMD flags answer whether the runtime's audit finds their rows exact ([`SIMD_ROWS`]):
|
||||
/// yes for both at the pinned runtime, every row exact on this host
|
||||
#[test]
|
||||
fn simd_flags_answer_the_runtimes_family_rows() {
|
||||
let d = dev();
|
||||
let flags = &d.caps().flags;
|
||||
let answers = [
|
||||
flags.supports_simd_reduction,
|
||||
flags.supports_simd_shuffle_and_fill,
|
||||
];
|
||||
assert_eq!(answers, simd_rows_exact(&d.raw));
|
||||
let audit = d.raw.family_rows(rt::GpuFamily::Apple9);
|
||||
for &row in SIMD_ROWS.iter().flat_map(|rows| rows.iter()) {
|
||||
let state = audit
|
||||
.iter()
|
||||
.find(|a| a.row == rt::FamilyRow::Feature(row))
|
||||
.map(|a| &a.state);
|
||||
assert_eq!(state, Some(&rt::RowState::Exact), "{row:?}");
|
||||
}
|
||||
assert_eq!(answers, [true, true]);
|
||||
}
|
||||
|
||||
/// Every count but four, and `supportsDynamicAttributeStride`, is the runtime's answer on
|
||||
/// the device, read from what it acts on (`Device::private_properties`), no more than Metal's
|
||||
/// but for an alignment, at least Metal's; the others are the module's stand-ins, this
|
||||
/// platform's own (`gpuCoreCount`, predication, buffers and heaps over address ranges and
|
||||
/// surfaces) or computed from the compile layer, each where its row says
|
||||
#[test]
|
||||
fn private_properties_are_the_runtimes_where_it_answers_them() {
|
||||
use rt::PrivateCount as C;
|
||||
let d = dev();
|
||||
let private = d.raw.private_properties();
|
||||
let caps = d.caps();
|
||||
let l = &caps.limits;
|
||||
for property in C::ALL {
|
||||
let ours = match property {
|
||||
C::GpuCoreCount
|
||||
| C::MaxVertexAmplificationCount
|
||||
| C::MaxComputeThreadgroupMemory
|
||||
| C::MaxPredicatedNestingDepth => continue,
|
||||
C::DeviceLinearTextureAlignmentBytes => l.device_linear_texture_alignment_bytes,
|
||||
C::LinearTextureAlignmentBytes => l.linear_texture_alignment_bytes,
|
||||
C::IosurfaceTextureAlignmentBytes => l.iosurface_texture_alignment_bytes,
|
||||
C::IosurfaceReadOnlyTextureAlignmentBytes => {
|
||||
l.iosurface_read_only_texture_alignment_bytes
|
||||
}
|
||||
C::MaxVertexBuffers => l.max_vertex_buffers,
|
||||
C::MaxFragmentBuffers => l.max_fragment_buffers,
|
||||
C::MaxComputeBuffers => l.max_compute_buffers,
|
||||
C::MaxTileBuffers => l.max_tile_buffers,
|
||||
C::MaxVertexTextures => l.max_vertex_textures,
|
||||
C::MaxFragmentTextures => l.max_fragment_textures,
|
||||
C::MaxComputeTextures => l.max_compute_textures,
|
||||
C::MaxTileTextures => l.max_tile_textures,
|
||||
C::MaxVertexSamplers => l.max_vertex_samplers,
|
||||
C::MaxFragmentSamplers => l.max_fragment_samplers,
|
||||
C::MaxComputeSamplers => l.max_compute_samplers,
|
||||
C::MaxTileSamplers => l.max_tile_samplers,
|
||||
C::MaxComputeLocalMemorySizes => l.max_compute_local_memory_sizes,
|
||||
C::MaxComputeThreadgroupMemoryAlignmentBytes => {
|
||||
l.max_compute_threadgroup_memory_alignment_bytes
|
||||
}
|
||||
C::MaxRasterizationRateLayerCount => l.max_rasterization_rate_layer_count,
|
||||
C::MaxTextureWidth2D => l.max_texture_width_2d,
|
||||
C::MaxTextureHeight2D => l.max_texture_height_2d,
|
||||
C::MaxTextureLayers => l.max_texture_layers,
|
||||
C::MaxTotalComputeThreadsPerThreadgroup => {
|
||||
l.max_total_compute_threads_per_threadgroup
|
||||
}
|
||||
C::MaxViewportCount => l.max_viewport_count,
|
||||
other => panic!("{other:?}: a count this test does not know"),
|
||||
};
|
||||
let answer = private.count(property);
|
||||
assert_eq!(Some(ours), answer.value(), "{}", property.selector());
|
||||
// A texture's row alignment, linear or an IOSurface's, is the device's images' (256 on
|
||||
// RADV), past Metal's 16.
|
||||
if matches!(
|
||||
property,
|
||||
C::DeviceLinearTextureAlignmentBytes
|
||||
| C::LinearTextureAlignmentBytes
|
||||
| C::IosurfaceTextureAlignmentBytes
|
||||
| C::IosurfaceReadOnlyTextureAlignmentBytes
|
||||
) {
|
||||
assert!(
|
||||
ours >= answer.metal(),
|
||||
"{}: below Metal's",
|
||||
property.selector()
|
||||
);
|
||||
} else {
|
||||
assert!(
|
||||
ours <= answer.metal(),
|
||||
"{}: past Metal's",
|
||||
property.selector()
|
||||
);
|
||||
}
|
||||
}
|
||||
assert_eq!(
|
||||
Some(caps.flags.supports_dynamic_attribute_stride),
|
||||
private
|
||||
.flag(rt::PrivateFlag::SupportsDynamicAttributeStride)
|
||||
.value()
|
||||
);
|
||||
}
|
||||
|
||||
/// The private properties the runtime has no answer of the device's for answer Metal's, as
|
||||
/// the runtime records it (`rt::PrivateAnswer::Metal`):
|
||||
/// `maxComputeThreadgroupMemory`, `maxVertexAmplificationCount` (no more than the device
|
||||
/// takes), `isLargeMRTSupported`, `supportsComputeCompressedTextureWrite` and
|
||||
/// `supportsConditionalLoadStore`
|
||||
#[test]
|
||||
fn metal_only_properties_are_the_runtimes_record_of_metals() {
|
||||
use rt::{PrivateAnswer, PrivateCount as C, PrivateFlag as F};
|
||||
let d = dev();
|
||||
let private = d.raw.private_properties();
|
||||
let caps = d.caps();
|
||||
assert_eq!(
|
||||
private.count(C::MaxComputeThreadgroupMemory),
|
||||
PrivateAnswer::Metal(caps.limits.max_compute_threadgroup_memory)
|
||||
);
|
||||
let PrivateAnswer::Metal(amplification) = private.count(C::MaxVertexAmplificationCount)
|
||||
else {
|
||||
panic!("maxVertexAmplificationCount: an answer of the device's");
|
||||
};
|
||||
assert!(caps.max_vertex_amplification_count <= amplification);
|
||||
let f = &caps.flags;
|
||||
for (flag, ours) in [
|
||||
(F::IsLargeMrtSupported, f.is_large_mrt_supported),
|
||||
(
|
||||
F::SupportsComputeCompressedTextureWrite,
|
||||
f.supports_compute_compressed_texture_write,
|
||||
),
|
||||
(
|
||||
F::SupportsConditionalLoadStore,
|
||||
f.supports_conditional_load_store,
|
||||
),
|
||||
] {
|
||||
let answer = private.flag(flag);
|
||||
assert_eq!(answer, PrivateAnswer::Metal(ours), "{}", flag.selector());
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
mod metal_tests;
|
||||
}
|
||||
-82
@@ -1,82 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
name "Some(\"Apple M3 Max\")"
|
||||
gpuCoreCount "Some(40)"
|
||||
maxThreadsPerThreadgroup "MtlSize { width: 1024, height: 1024, depth: 1024 }"
|
||||
maxVertexAmplificationCount "2"
|
||||
device_linear_texture_alignment_bytes "16"
|
||||
iosurface_read_only_texture_alignment_bytes "16"
|
||||
iosurface_texture_alignment_bytes "16"
|
||||
linear_texture_alignment_bytes "16"
|
||||
max_compute_buffers "31"
|
||||
max_compute_local_memory_sizes "31"
|
||||
max_compute_samplers "16"
|
||||
max_compute_textures "128"
|
||||
max_compute_threadgroup_memory "65536"
|
||||
max_compute_threadgroup_memory_alignment_bytes "16"
|
||||
max_fragment_buffers "31"
|
||||
max_fragment_samplers "16"
|
||||
max_fragment_textures "128"
|
||||
max_predicated_nesting_depth "4294967295"
|
||||
max_rasterization_rate_layer_count "2"
|
||||
max_texture_height_2d "16384"
|
||||
max_texture_layers "2048"
|
||||
max_texture_width_2d "16384"
|
||||
max_threadgroup_memory_length "32768"
|
||||
max_tile_buffers "31"
|
||||
max_tile_samplers "16"
|
||||
max_tile_textures "128"
|
||||
max_total_compute_threads_per_threadgroup "1024"
|
||||
max_vertex_buffers "31"
|
||||
max_vertex_samplers "16"
|
||||
max_vertex_textures "128"
|
||||
max_viewport_count "16"
|
||||
are_raster_order_groups_supported "true"
|
||||
is_depth24_stencil8_pixel_format_supported "false"
|
||||
is_framebuffer_read_supported "true"
|
||||
is_large_mrt_supported "true"
|
||||
is_rgb10a2_gamma_supported "true"
|
||||
supports_buffer_with_address_ranges "true"
|
||||
supports_buffer_with_iosurface "true"
|
||||
supports_command_buffer_jump "true"
|
||||
supports_compute_compressed_texture_write "false"
|
||||
supports_conditional_load_store "true"
|
||||
supports_dynamic_attribute_stride "true"
|
||||
supports_extended_xr10_formats "true"
|
||||
supports_float16_bcubic_filtering "true"
|
||||
supports_heap_with_address_ranges "true"
|
||||
supports_image_blocks "true"
|
||||
supports_memory_order_atomics "true"
|
||||
supports_native_hardware_fp16 "true"
|
||||
supports_non_square_tile_shaders "true"
|
||||
supports_programmable_sample_positions "true"
|
||||
supports_resource_detach_backing "true"
|
||||
supports_shared_texture_handles "true"
|
||||
supports_simd_reduction "true"
|
||||
supports_simd_shuffle_and_fill "true"
|
||||
supports_texture_2d_multisample_array "true"
|
||||
supports_tile_shaders "true"
|
||||
supportsTextureSampleCount:1 "Ok(true)"
|
||||
supportsTextureSampleCount:2 "Ok(true)"
|
||||
supportsTextureSampleCount:4 "Ok(true)"
|
||||
supportsTextureSampleCount:8 "Ok(false)"
|
||||
supportsPrimitiveType:0 "Ok(true)"
|
||||
supportsPrimitiveType:1 "Ok(true)"
|
||||
supportsPrimitiveType:2 "Ok(true)"
|
||||
supportsPrimitiveType:3 "Ok(true)"
|
||||
supportsPrimitiveType:4 "Ok(true)"
|
||||
supportsPrimitiveType:5 "Ok(true)"
|
||||
supportsPrimitiveType:6 "Ok(true)"
|
||||
supportsPrimitiveType:7 "Ok(true)"
|
||||
supportsPrimitiveType:8 "Ok(true)"
|
||||
supportsPrimitiveType:9 "Ok(false)"
|
||||
supportsFamily:1005 "Ok(true)"
|
||||
supportsFamily:1006 "Ok(true)"
|
||||
supportsFamily:1007 "Ok(true)"
|
||||
supportsFamily:1008 "Ok(true)"
|
||||
supportsFamily:1009 "Ok(true)"
|
||||
supportsFamily:1010 "Ok(false)"
|
||||
supportsFamily:-1009 "Ok(false)"
|
||||
supportsTextureWriteRoundingMode:1 "Ok(true)"
|
||||
supportsTextureWriteRoundingMode:2 "Ok(true)"
|
||||
heapBufferSizeAndAlignWithLength:options: "Ok(SizeAndAlign { size: 16384, align: 256 })"
|
||||
minimumLinearTextureAlignmentForPixelFormat: "Ok(16)"
|
||||
@@ -1,182 +0,0 @@
|
||||
//! The tests of `caps` that compare with Metal on this host: macOS only.
|
||||
|
||||
use crate::core::platform::caps::LINEAR_ALIGNMENT_FORMAT;
|
||||
|
||||
use super::*;
|
||||
|
||||
/// The runtime's answers are its device's, and the computed ones follow the documented facts:
|
||||
/// the M3 Max under MoltenVK, Metal's argument tables, the five public primitive types;
|
||||
/// `isDepth24Stencil8PixelFormatSupported` is no, as Metal answers here
|
||||
#[test]
|
||||
fn caps_are_the_runtimes_and_the_documented_facts() {
|
||||
let d = dev();
|
||||
let caps = d.caps();
|
||||
assert!(Arc::ptr_eq(&caps, &d.caps()), "read once, then shared");
|
||||
let props = d.raw.properties();
|
||||
assert_eq!(caps.name.as_deref(), Some(props.name.as_str()));
|
||||
assert_eq!(
|
||||
Some(caps.registry_id),
|
||||
crate::os::default_registry_id(),
|
||||
"Metal's default device's"
|
||||
);
|
||||
assert_eq!(
|
||||
caps.gpu_core_count,
|
||||
crate::os::default_gpu_core_count(),
|
||||
"Metal's default device's"
|
||||
);
|
||||
assert!(caps.gpu_core_count.is_some_and(|n| n > 0));
|
||||
assert_eq!(caps.limits.max_compute_buffers, 31);
|
||||
assert_eq!(caps.limits.max_vertex_textures, 128);
|
||||
assert_eq!(caps.limits.max_fragment_samplers, 16);
|
||||
assert_eq!(
|
||||
caps.limits.max_predicated_nesting_depth,
|
||||
u64::from(u32::MAX)
|
||||
);
|
||||
assert_eq!(caps.limits.max_rasterization_rate_layer_count, 2);
|
||||
assert_eq!(
|
||||
caps.max_vertex_amplification_count, 2,
|
||||
"the stand-in, under 8"
|
||||
);
|
||||
assert!(caps.limits.max_texture_width_2d >= 16384);
|
||||
assert_eq!(
|
||||
caps.limits.max_threadgroup_memory_length,
|
||||
props.max_threadgroup_memory_length
|
||||
);
|
||||
assert!(caps.flags.supports_tile_shaders && caps.flags.supports_image_blocks);
|
||||
assert!(
|
||||
!caps.flags.is_depth24_stencil8_pixel_format_supported,
|
||||
"an Apple GPU's no, on every device (the runtime's D663)"
|
||||
);
|
||||
assert!(
|
||||
caps.flags.supports_command_buffer_jump,
|
||||
"the adapter's predication"
|
||||
);
|
||||
let f = &caps.flags;
|
||||
assert!(
|
||||
!f.supports_buffer_with_address_ranges && !f.supports_heap_with_address_ranges,
|
||||
"nothing makes a buffer or heap over address ranges"
|
||||
);
|
||||
assert!(
|
||||
!f.supports_resource_detach_backing,
|
||||
"nothing detaches or replaces a backing"
|
||||
);
|
||||
assert_eq!(caps.primitive_types[..5], [true; 5].map(Ok));
|
||||
assert_eq!(
|
||||
caps.heap_buffer_page_private,
|
||||
Ok(SizeAndAlign {
|
||||
size: 16384,
|
||||
align: 256
|
||||
})
|
||||
);
|
||||
assert_eq!(caps.min_linear_alignment_bgra8, Ok(16));
|
||||
assert_eq!(
|
||||
LINEAR_ALIGNMENT_FORMAT,
|
||||
u64::from(PixelFormat::BGRA8Unorm.as_raw())
|
||||
);
|
||||
}
|
||||
|
||||
/// Every answer of `caps`, by its selector, in the order core's `DeviceCaps` holds them.
|
||||
fn answers(caps: &DeviceCaps) -> Vec<(String, String)> {
|
||||
let mut out = vec![
|
||||
("name".to_owned(), format!("{:?}", caps.name)),
|
||||
("registryID".to_owned(), format!("{:#x}", caps.registry_id)),
|
||||
(
|
||||
"gpuCoreCount".to_owned(),
|
||||
format!("{:?}", caps.gpu_core_count),
|
||||
),
|
||||
(
|
||||
"maxThreadsPerThreadgroup".to_owned(),
|
||||
format!("{:?}", caps.max_threads_per_threadgroup),
|
||||
),
|
||||
(
|
||||
"maxVertexAmplificationCount".to_owned(),
|
||||
caps.max_vertex_amplification_count.to_string(),
|
||||
),
|
||||
];
|
||||
// `Debug` of the structs names every field: one answer a field.
|
||||
let fields = |debug: String| {
|
||||
let body = debug
|
||||
.split_once('{')
|
||||
.and_then(|(_, rest)| rest.rsplit_once('}'))
|
||||
.map(|(body, _)| body.to_owned())
|
||||
.unwrap_or_default();
|
||||
body.split(',')
|
||||
.filter_map(|f| f.split_once(':'))
|
||||
.map(|(k, v)| (k.trim().to_owned(), v.trim().to_owned()))
|
||||
.collect::<Vec<_>>()
|
||||
};
|
||||
out.extend(fields(format!("{:?}", caps.limits)));
|
||||
out.extend(fields(format!("{:?}", caps.flags)));
|
||||
for (count, answer) in SAMPLE_COUNTS.iter().zip(&caps.sample_counts) {
|
||||
out.push((
|
||||
format!("supportsTextureSampleCount:{count}"),
|
||||
format!("{answer:?}"),
|
||||
));
|
||||
}
|
||||
for (t, answer) in caps.primitive_types.iter().enumerate() {
|
||||
out.push((format!("supportsPrimitiveType:{t}"), format!("{answer:?}")));
|
||||
}
|
||||
for (family, answer) in FAMILIES.iter().zip(&caps.families) {
|
||||
out.push((format!("supportsFamily:{family}"), format!("{answer:?}")));
|
||||
}
|
||||
for (mode, answer) in WRITE_ROUNDING_MODES.iter().zip(&caps.write_rounding_modes) {
|
||||
out.push((
|
||||
format!("supportsTextureWriteRoundingMode:{mode}"),
|
||||
format!("{answer:?}"),
|
||||
));
|
||||
}
|
||||
out.push((
|
||||
"heapBufferSizeAndAlignWithLength:options:".to_owned(),
|
||||
format!("{:?}", caps.heap_buffer_page_private),
|
||||
));
|
||||
out.push((
|
||||
"minimumLinearTextureAlignmentForPixelFormat:".to_owned(),
|
||||
format!("{:?}", caps.min_linear_alignment_bgra8),
|
||||
));
|
||||
out
|
||||
}
|
||||
|
||||
/// The answers of the device's caps that are not Metal's on the M3 Max, each the device's truth
|
||||
/// where it lacks what Metal has (the module's docs), and the answer it gives: no buffer or heap
|
||||
/// is made over address ranges, and no backing is detached or replaced.
|
||||
const NOT_METALS: [(&str, &str); 3] = [
|
||||
("supports_buffer_with_address_ranges", "false"),
|
||||
("supports_heap_with_address_ranges", "false"),
|
||||
("supports_resource_detach_backing", "false"),
|
||||
];
|
||||
|
||||
/// Every answer of the device's caps is Metal's on the M3 Max, field for field:
|
||||
/// every limit, flag, sample count, primitive type, family and rounding mode core asks, and the
|
||||
/// heap-buffer and linear-alignment queries, but those of [`NOT_METALS`], each of which answers
|
||||
/// its own value where Metal's differs
|
||||
///
|
||||
/// The registry ID, which names the device until the host restarts, is left out, and a GPU other
|
||||
/// than the one Metal's answers were recorded on answers otherwise, so there the test ends.
|
||||
#[test]
|
||||
fn every_cap_is_metals() {
|
||||
let ours = answers(&dev().caps());
|
||||
if !crate::metal_matches!("name", ours[0].1) {
|
||||
eprintln!(
|
||||
"{}: not the GPU Metal's answers were recorded on",
|
||||
ours[0].1
|
||||
);
|
||||
return;
|
||||
}
|
||||
for (name, want) in NOT_METALS {
|
||||
let o = &ours.iter().find(|(n, _)| n == name).unwrap().1;
|
||||
assert_eq!(o, want, "{name}");
|
||||
assert!(!crate::metal_matches!(name, o), "{name}: Metal's too");
|
||||
}
|
||||
let differ: Vec<String> = ours
|
||||
.iter()
|
||||
.filter(|(name, _)| name != "registryID" && NOT_METALS.iter().all(|(n, _)| n != name))
|
||||
.filter(|(name, o)| !crate::metal_matches!(name, o))
|
||||
.map(|(name, o)| format!("{name}: ours {o}, not Metal's"))
|
||||
.collect();
|
||||
assert!(
|
||||
differ.is_empty(),
|
||||
"{} differ:\n{}",
|
||||
differ.len(),
|
||||
differ.join("\n")
|
||||
);
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,485 +0,0 @@
|
||||
//! The commands an execution of an indirect command buffer runs, checked at its command buffer's
|
||||
//! commit where a direct command of their kind dies at its call.
|
||||
//!
|
||||
//! - **What is checked.** Two deaths of a direct command depend, for an execution, on the
|
||||
//! records of the commands it runs: their draws, and the pipeline states they name. The
|
||||
//! runtime runs the records as they stand at the commit (`crate::gpu::icb`), so the commit
|
||||
//! reads them (`IndirectCommandBuffer::commands`, of the execution's range, or of every
|
||||
//! command where a buffer holds the range) and dies, at `commit`, naming the execution and the
|
||||
//! command, where a direct command of its kind dies:
|
||||
//! - a draw of points, of some vertices and instances, under a state whose points Metal sizes
|
||||
//! none of ([`Points`], `crate::gpu::encode_render`'s `sized`).
|
||||
//!
|
||||
//! Commands that inherit the encoder's state are decided at the execution's call where the
|
||||
//! state alone decides (`crate::gpu::encode_compute`, `crate::gpu::encode_render`). A command
|
||||
//! of no draw or dispatch, or of a record that names no state, runs nothing, and is not asked;
|
||||
//! nor is an execution in an encoder its command buffer's failure runs nothing of
|
||||
//! ([`rt::FailedEncoders`]). The state a command runs is the live state of the ID its record
|
||||
//! names, where that state's identifier is the one the record answers; else the runtime runs
|
||||
//! the state the program set on the command and released since, of which nothing here holds
|
||||
//! what decides, and a command a death would ask of dies.
|
||||
//!
|
||||
//! The commit reads the records only where what every route wrote into them so far
|
||||
//! (`IndirectCommandBuffer::command_writes`) leaves it something to find ([`may_find`]), as
|
||||
//! the runtime's host step reads them for its check only so (`IndirectCommandCheckNeeds`). A
|
||||
//! buffer into whose records no route wrote a draw or a dispatch runs nothing: a buffer of no
|
||||
//! command types among them, whose execution in a pass Metal runs nothing of, and whose
|
||||
//! records the runtime refuses to read. Where the execution asks of no ID of the guest's and
|
||||
//! its encoder made no buffer resident for writing, a draw of points is the only death to
|
||||
//! find, so a buffer whose records hold none, as one of draws of triangles, is read at the
|
||||
//! commit by the runtime alone.
|
||||
//! - **Records the GPU may write** ([`gpu_writes`]): a blit's copy into a buffer or reset of
|
||||
//! it, and a command, direct or executed, whose state can encode indirect commands in an
|
||||
//! encoder that made the buffer resident for writing, may write its records as the GPU runs,
|
||||
//! and what it wrote may stay. Once the runtime's buffer says so (`gpu_written`, which each
|
||||
//! of those sets at its call, as does any encoder's making the buffer resident for writing),
|
||||
//! it records an execution committed since once the work before it completed (its host step),
|
||||
//! from the records as the GPU and the CPU left them, and so it does an execution whose range
|
||||
//! a buffer holds, and a compute encoder's execution under predication. The commit then reads
|
||||
//! nothing: an execution that a death could ask of hands the runtime a check at its call
|
||||
//! ([`Execution::host_step_check`]), which the host step runs on each command it will record,
|
||||
//! before it records any, and which dies there where the commit would have
|
||||
//! ([`ask`]). Where the commit reads the records, the runtime records them as the commit read
|
||||
//! them and never runs the check. An execution whose own commands may write its records dies
|
||||
//! at the commit. A write encoded while a committed command buffer that has not ended executes
|
||||
//! the buffer as its commit read it dies at its own call: it may land before those commands
|
||||
//! run.
|
||||
|
||||
use std::ops::Range;
|
||||
use std::sync::Arc;
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
||||
use crate::core::platform::icb::IndirectCommandBuffer as _;
|
||||
use metal2vulkan::metal::PrimitiveType;
|
||||
use metal2vulkan::pipeline::CommandWrites;
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
use crate::answer::{get, plain, unrepresentable};
|
||||
use crate::gpu::command::Progress;
|
||||
use crate::gpu::icb::{IcbObject, VulkanIcb};
|
||||
|
||||
/// The operations of a record that runs something: a draw of any kind or a dispatch
|
||||
/// (`rt::IndirectCommandBuffer::command_writes`). A record of none runs nothing, and [`ask`] asks
|
||||
/// nothing of it.
|
||||
const RUNS: u32 = CommandWrites::DRAW
|
||||
| CommandWrites::DRAW_INDEXED
|
||||
| CommandWrites::DRAW_PATCHES
|
||||
| CommandWrites::DRAW_MESH
|
||||
| CommandWrites::DISPATCH;
|
||||
|
||||
/// Which states size the points an execution's commands draw ([`Execution::check`]).
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub(crate) enum Points {
|
||||
/// Not asked: a compute encoder's execution, or commands that inherit a state that sizes
|
||||
/// them, or no state.
|
||||
Unasked,
|
||||
/// The commands inherit the encoder's state, whose points Metal sizes none of: a draw of
|
||||
/// points dies.
|
||||
Unsized,
|
||||
/// Each command's own state decides ([`crate::gpu::states::points_sized`]).
|
||||
Own,
|
||||
}
|
||||
|
||||
/// An execution of an indirect command buffer whose commands its commit reads (the module docs).
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct Execution {
|
||||
/// Its selector, which a death names.
|
||||
pub(crate) sel: &'static str,
|
||||
/// The buffer it executes.
|
||||
pub(crate) icb: VulkanIcb,
|
||||
/// Its range; `None` for one a buffer holds, which the GPU reads as it runs, so every command
|
||||
/// of the buffer is asked.
|
||||
pub(crate) range: Option<Range<u64>>,
|
||||
/// Which states size its draws of points.
|
||||
pub(crate) points: Points,
|
||||
/// The indirect command buffers its encoder made resident for writing, where its commands
|
||||
/// name their own states: a command whose state can encode indirect commands may write their
|
||||
/// records ([`gpu_writes`]).
|
||||
pub(crate) writable: Vec<VulkanIcb>,
|
||||
}
|
||||
|
||||
impl Execution {
|
||||
/// Whether its commit reads its commands.
|
||||
pub(crate) fn asks(&self) -> bool {
|
||||
self.decides() || !self.writable.is_empty()
|
||||
}
|
||||
|
||||
/// Whether its commands decide a death.
|
||||
fn decides(&self) -> bool {
|
||||
self.points != Points::Unasked
|
||||
}
|
||||
|
||||
/// Checks its commands at the commit (the module docs): dies where one would die as a direct
|
||||
/// command, marks the buffers its commands may write, and answers the buffer whose records
|
||||
/// the commit read for a death, which [`reads`] then holds.
|
||||
pub(super) fn check(self) -> Option<VulkanIcb> {
|
||||
let decides = self.decides();
|
||||
let Execution {
|
||||
sel: execution,
|
||||
icb,
|
||||
range,
|
||||
points,
|
||||
writable,
|
||||
} = self;
|
||||
if plain(|| icb.raw.gpu_written()) {
|
||||
// The host step reads its commands, and asks them where a death could
|
||||
// ([`Execution::host_step_check`]); here they are not known: any of them may write.
|
||||
writable.iter().for_each(|w| gpu_writes("commit", w));
|
||||
return None;
|
||||
}
|
||||
if !may_find(&icb, points, !writable.is_empty()) {
|
||||
return decides.then_some(icb);
|
||||
}
|
||||
let range = range.unwrap_or(0..icb.size());
|
||||
let commands = get("commit", || icb.raw.commands(range.clone()));
|
||||
let mut writes = false;
|
||||
for (index, command) in (range.start..).zip(&commands) {
|
||||
writes |= ask(execution, index, command, points, true) == Some(true);
|
||||
}
|
||||
if writes && !writable.is_empty() {
|
||||
if decides && writable.iter().any(|w| same(w, &icb)) {
|
||||
unrepresentable(
|
||||
"commit",
|
||||
&format!(
|
||||
"{execution} of an indirect command buffer its encoder made resident \
|
||||
for writing, a command of which may write its records as the GPU runs \
|
||||
them: what its later commands run is not what the commit read"
|
||||
),
|
||||
);
|
||||
}
|
||||
writable.iter().for_each(|w| gpu_writes("commit", w));
|
||||
}
|
||||
decides.then_some(icb)
|
||||
}
|
||||
|
||||
/// The check the runtime's host step runs on each command it records of this execution,
|
||||
/// where its commit reads nothing (the module docs); `None` where no death could ask of its
|
||||
/// commands, which leaves the runtime its other paths. It dies where [`Execution::check`]
|
||||
/// would, at `commit`, on the scheduler's thread: the death ends the process there, as `fatal` does outside the tests' in-process capture, and unwinds
|
||||
/// nothing into the runtime. A death test's child runs without that capture, as production.
|
||||
/// With it, what the check looks for: draws of points where a state sizes them. An execution
|
||||
/// of a range
|
||||
/// whose buffer's records rule out every kind it names may run on the GPU alone, unchecked;
|
||||
/// one of a range the GPU reads looks for every kind.
|
||||
pub(crate) fn host_step_check(
|
||||
&self,
|
||||
) -> Option<(rt::IndirectCommandCheck, rt::IndirectCommandCheckNeeds)> {
|
||||
if !self.decides() {
|
||||
return None;
|
||||
}
|
||||
let (execution, points) = (self.sel, self.points);
|
||||
let needs = rt::IndirectCommandCheckNeeds::new(points != Points::Unasked, false);
|
||||
let check: rt::IndirectCommandCheck = Box::new(move |index, command| {
|
||||
ask(execution, index, command, points, false);
|
||||
});
|
||||
Some((check, needs))
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether the commit's reading of `icb`'s records may find a death or a write ([`ask`]): whether
|
||||
/// what every route wrote into them so far (`command_writes`), the CPU's setters alone where the
|
||||
/// GPU may have written none, holds a draw or a dispatch, and, where the execution asks of
|
||||
/// no buffer made resident for writing (`by_state`), a draw of points
|
||||
/// where `points` asks of them. Records no route wrote a draw or a dispatch into run nothing and
|
||||
/// ask nothing: a buffer of no command types among them, whose execution in a pass Metal runs
|
||||
/// nothing of, and whose records the runtime refuses to read.
|
||||
fn may_find(icb: &VulkanIcb, points: Points, by_state: bool) -> bool {
|
||||
let writes = plain(|| icb.raw.command_writes());
|
||||
let point_draws =
|
||||
points != Points::Unasked && writes.may_draw_primitive_type(PrimitiveType::Point.as_raw());
|
||||
writes.may(RUNS) && (by_state || point_draws)
|
||||
}
|
||||
|
||||
/// Asks command `index` of `execution`'s indirect command buffer, `command`, of the death a direct
|
||||
/// command of its kind dies of (the module docs), `points` saying which states size its draws
|
||||
/// of points: dies where one would, at `commit`. Where `encodes` is asked (the commit's), answers
|
||||
/// whether its state may encode indirect commands (one released since may); `None` for a
|
||||
/// command of no draw or dispatch, or of no state, which runs nothing, and wherever `encodes` is
|
||||
/// not asked and the answer decides no death. A command's state is looked at only where a death
|
||||
/// or the answer needs it: a host step asks each of tens of thousands of commands a frame.
|
||||
fn ask(
|
||||
execution: &str,
|
||||
index: u64,
|
||||
command: &rt::IndirectCommand,
|
||||
points: Points,
|
||||
encodes: bool,
|
||||
) -> Option<bool> {
|
||||
let at = || format!("command {index} of {execution}'s indirect command buffer");
|
||||
let named =
|
||||
match command {
|
||||
rt::IndirectCommand::Compute(c) if c.dispatch.is_some() => {
|
||||
if c.pipeline_id.is_none() || !encodes {
|
||||
return None;
|
||||
}
|
||||
let state = c.pipeline.as_ref().filter(|s| {
|
||||
Some(plain(|| s.unique_identifier())) == c.pipeline_unique_identifier
|
||||
});
|
||||
state.map(|s| plain(|| s.can_encode_indirect_commands()))
|
||||
}
|
||||
rt::IndirectCommand::Render(r) if r.draw.is_some() => {
|
||||
let of_points = points != Points::Unasked && points_drawn(r.draw);
|
||||
if points == Points::Unsized && of_points {
|
||||
dies_unsized(&at());
|
||||
}
|
||||
let sized_asked = points == Points::Own && of_points;
|
||||
if r.pipeline_id.is_none() || !(encodes || sized_asked) {
|
||||
return None;
|
||||
}
|
||||
let state = r.pipeline.as_ref().filter(|s| {
|
||||
Some(plain(|| s.unique_identifier())) == r.pipeline_unique_identifier
|
||||
});
|
||||
if sized_asked {
|
||||
match state.map(crate::gpu::states::points_sized) {
|
||||
Some(Some(true)) => {}
|
||||
Some(Some(false)) => dies_unsized(&at()),
|
||||
Some(None) | None => unrepresentable(
|
||||
"commit",
|
||||
&format!(
|
||||
"{}, a draw of points under a pipeline state the program released, \
|
||||
which the runtime runs: its input primitive topology class, which \
|
||||
decides whether Metal sizes its points, went with it",
|
||||
at()
|
||||
),
|
||||
),
|
||||
}
|
||||
}
|
||||
if !encodes {
|
||||
return None;
|
||||
}
|
||||
state.map(|s| plain(|| s.can_encode_indirect_commands()))
|
||||
}
|
||||
_ => return None,
|
||||
};
|
||||
// `None`: a state released since, whose functions nothing here holds.
|
||||
Some(named != Some(false))
|
||||
}
|
||||
|
||||
/// Whether `draw` is of points, of some vertices or indices and instances: the draw as the record
|
||||
/// runs it ([`rt::EncodedRenderCommand::draw`], of the type set), not as the arguments getters
|
||||
/// answer it, which read quads and a quad strip as points ([`rt::IndirectRenderCommand::draw`]).
|
||||
fn points_drawn(draw: Option<rt::IndirectDraw>) -> bool {
|
||||
match draw {
|
||||
Some(rt::IndirectDraw::Primitives {
|
||||
primitive_type: rt::DrawPrimitiveType::Public(PrimitiveType::Point),
|
||||
vertex_count,
|
||||
instance_count,
|
||||
..
|
||||
}) => vertex_count != 0 && instance_count != 0,
|
||||
Some(rt::IndirectDraw::IndexedPrimitives {
|
||||
primitive_type: rt::DrawPrimitiveType::Public(PrimitiveType::Point),
|
||||
index_count,
|
||||
instance_count,
|
||||
..
|
||||
}) => index_count != 0 && instance_count != 0,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Dies at `commit` at `at`, a draw of points under a state whose points Metal sizes none of.
|
||||
fn dies_unsized(at: &str) -> ! {
|
||||
unrepresentable(
|
||||
"commit",
|
||||
&format!(
|
||||
"{at}, a draw of {}",
|
||||
crate::gpu::encode_render::UNSIZED_POINTS
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
/// Whether `a` and `b` are one buffer.
|
||||
fn same(a: &VulkanIcb, b: &VulkanIcb) -> bool {
|
||||
std::ptr::eq::<IcbObject>(&**a, &**b)
|
||||
}
|
||||
|
||||
/// A command encoded at `sel` may write `icb`'s records on the GPU (the module docs). It dies
|
||||
/// where a committed command buffer that has not ended executes them as its commit read them
|
||||
/// ([`reads`]): the write may land before those run.
|
||||
pub(crate) fn gpu_writes(sel: &'static str, icb: &VulkanIcb) {
|
||||
if icb.readers.load(Ordering::SeqCst) != 0 {
|
||||
unrepresentable(
|
||||
sel,
|
||||
"a write on the GPU of the records of an indirect command buffer that a committed \
|
||||
command buffer that has not ended executes, whose commands its commit read and \
|
||||
checked: the write may land before they run, behind an event or on another queue, \
|
||||
and what they run then is not checked",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// A committed command buffer of `progress` executes `icb` as its commit read its records,
|
||||
/// until it ends ([`gpu_writes`]).
|
||||
pub(super) fn reads(icb: &VulkanIcb, progress: &Progress) {
|
||||
icb.readers.fetch_add(1, Ordering::SeqCst);
|
||||
progress.hold(Read(Arc::clone(&icb.readers)));
|
||||
}
|
||||
|
||||
/// A reader of an indirect command buffer's records ([`IcbObject::readers`]), which ends as its
|
||||
/// command buffer's progress lets go of it.
|
||||
struct Read(Arc<AtomicUsize>);
|
||||
|
||||
impl Drop for Read {
|
||||
fn drop(&mut self) {
|
||||
self.0.fetch_sub(1, Ordering::SeqCst);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::core::platform::Handle as _;
|
||||
use crate::core::platform::command::{CommandBuffer as _, CommandQueue as _};
|
||||
use crate::core::platform::device::GpuDevice as _;
|
||||
use crate::core::platform::icb::{IcbRenderCmd, IndirectRenderCommand as _};
|
||||
use crate::core::platform::render::{RenderCmd, RenderEncoder as _};
|
||||
use crate::core::platform::types::NsRange;
|
||||
use crate::core::platform::values::IcbDesc;
|
||||
use crate::core::raise::OnFault;
|
||||
use crate::core::testkit::capture::catch_death;
|
||||
use metal2vulkan::metal::PixelFormat;
|
||||
use metal2vulkan::pipeline::{
|
||||
ColorAttachmentDescriptor, RenderPipelineDescriptor, StageSource,
|
||||
};
|
||||
|
||||
use super::*;
|
||||
use crate::gpu::device::VulkanDevice;
|
||||
use crate::gpu::device::tests::dev;
|
||||
use crate::gpu::resource::VulkanRenderPipeline;
|
||||
|
||||
const VERT: &[u8] = include_bytes!("../../../../../tests/shaders/vert.metallib");
|
||||
const FRAG: &[u8] = include_bytes!("../../../../../tests/shaders/frag.metallib");
|
||||
|
||||
/// `tri_vert` and `tri_frag` into `BGRA8Unorm`, with indirect command buffer support: its
|
||||
/// vertex function writes no `[[point_size]]`, of no input primitive topology class.
|
||||
fn state(d: &VulkanDevice) -> VulkanRenderPipeline {
|
||||
let function = |bytes, name| {
|
||||
d.raw
|
||||
.new_library_with_data(bytes)
|
||||
.unwrap()
|
||||
.new_function_with_name(name)
|
||||
.unwrap()
|
||||
.function_descriptor()
|
||||
};
|
||||
let mut desc =
|
||||
RenderPipelineDescriptor::new(StageSource::Function(function(VERT, "tri_vert")));
|
||||
desc.fragment = Some(StageSource::Function(function(FRAG, "tri_frag")));
|
||||
desc.color_attachments[0] = Some(ColorAttachmentDescriptor::new(PixelFormat::BGRA8Unorm));
|
||||
desc.support_indirect_command_buffers = true;
|
||||
crate::gpu::resource::render_pipeline(
|
||||
d.raw
|
||||
.new_render_pipeline_state(&desc, &rt::PipelineOptions::default())
|
||||
.unwrap(),
|
||||
)
|
||||
}
|
||||
|
||||
/// A buffer of `n` draws of `primitive_type` (three vertices, one instance) under `state`.
|
||||
fn draws(
|
||||
d: &VulkanDevice,
|
||||
state: &VulkanRenderPipeline,
|
||||
n: u64,
|
||||
primitive_type: u64,
|
||||
) -> VulkanIcb {
|
||||
let icb = d
|
||||
.new_indirect_command_buffer(
|
||||
&IcbDesc {
|
||||
command_types: 1,
|
||||
max_vertex_buffer_bind_count: 2,
|
||||
max_fragment_buffer_bind_count: 2,
|
||||
..IcbDesc::default()
|
||||
},
|
||||
n,
|
||||
0,
|
||||
)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
for i in 0..n {
|
||||
let c = icb.render_command(i).unwrap().unwrap();
|
||||
for cmd in [
|
||||
IcbRenderCmd::SetRenderPipelineState {
|
||||
pipeline_state: Some(state),
|
||||
},
|
||||
IcbRenderCmd::DrawPrimitives {
|
||||
primitive_type,
|
||||
vertex_start: 0,
|
||||
vertex_count: 3,
|
||||
instance_count: 1,
|
||||
base_instance: 0,
|
||||
},
|
||||
] {
|
||||
c.encode(cmd).unwrap();
|
||||
}
|
||||
}
|
||||
icb
|
||||
}
|
||||
|
||||
/// A render encoder's execution of `icb`'s commands `range`, whose commands name their own
|
||||
/// states, as `crate::gpu::encode_render` makes it.
|
||||
fn execution(icb: &VulkanIcb, range: Range<u64>) -> Execution {
|
||||
Execution {
|
||||
sel: "executeCommandsInBuffer:withRange:",
|
||||
icb: icb.clone_ref(),
|
||||
range: Some(range),
|
||||
points: Points::Own,
|
||||
writable: Vec::new(),
|
||||
}
|
||||
}
|
||||
|
||||
/// A render pass's execution of a buffer of no command types runs nothing, as Metal's does,
|
||||
/// whose records the runtime refuses to read: its commit reads none and completes
|
||||
#[test]
|
||||
fn an_execution_of_a_buffer_of_no_command_types_runs_nothing() {
|
||||
let (p, d) = (crate::platform::tests::platform(), dev());
|
||||
let icb = d
|
||||
.new_indirect_command_buffer(&IcbDesc::default(), 2, 0)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let (_dst, pass) = crate::gpu::encode_render::tests::pass_of(&p, &d, (4, 4));
|
||||
let q = d.new_command_queue().unwrap();
|
||||
let cb = q.command_buffer(OnFault::Die).unwrap().unwrap();
|
||||
let e = cb.render_encoder(OnFault::Die, &pass).unwrap().unwrap();
|
||||
for cmd in [
|
||||
RenderCmd::ExecuteCommandsInBuffer {
|
||||
indirect_command_buffer: &icb,
|
||||
execution_range: NsRange::new(0, 2),
|
||||
},
|
||||
RenderCmd::EndEncoding,
|
||||
] {
|
||||
e.encode(OnFault::Die, cmd).unwrap();
|
||||
}
|
||||
cb.commit(OnFault::Die).unwrap();
|
||||
cb.wait_until_completed(OnFault::Die).unwrap();
|
||||
assert_eq!(cb.error(), None);
|
||||
}
|
||||
|
||||
/// The commit reads an execution's records only where what they may hold leaves a death to
|
||||
/// find: of a buffer of draws of triangles under a state that sizes no points, none, its
|
||||
/// buffer still held as read; once one command draws points there, every command of the
|
||||
/// range, dying at that one
|
||||
#[test]
|
||||
fn the_commit_reads_records_only_where_a_death_may_lie() {
|
||||
let d = dev();
|
||||
let s = state(&d);
|
||||
let icb = draws(&d, &s, 4, 3);
|
||||
let reads = || d.raw.work_counts().indirect_records_read;
|
||||
let before = reads();
|
||||
assert!(execution(&icb, 0..4).check().is_some());
|
||||
assert_eq!(reads() - before, 0);
|
||||
let c = icb.render_command(2).unwrap().unwrap();
|
||||
c.encode(IcbRenderCmd::DrawPrimitives {
|
||||
primitive_type: 0,
|
||||
vertex_start: 0,
|
||||
vertex_count: 3,
|
||||
instance_count: 1,
|
||||
base_instance: 0,
|
||||
})
|
||||
.unwrap();
|
||||
*crate::answer::LAST_LINE.lock() = None;
|
||||
let before = reads();
|
||||
let site = catch_death(|| execution(&icb, 0..4).check()).unwrap_err();
|
||||
assert_eq!(site.file, "commit");
|
||||
assert_eq!(reads() - before, 4);
|
||||
let line = crate::answer::LAST_LINE.lock().take().unwrap_or_default();
|
||||
assert!(
|
||||
line.contains("command 2 of executeCommandsInBuffer"),
|
||||
"{line}"
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,331 +0,0 @@
|
||||
//! A `Depth32Float` texture's denormal depths, stored and compared as Metal does: what the
|
||||
//! runtime announces as `depth-denormals` on this host's MoltenVK is measured against Metal here.
|
||||
|
||||
use crate::core::platform::Platform;
|
||||
use crate::core::platform::blit::{BlitCmd, BlitEncoder as _};
|
||||
use crate::core::platform::command::{CommandBuffer as _, CommandQueue as _};
|
||||
use crate::core::platform::descriptor::RenderPassDescriptor as _;
|
||||
use crate::core::platform::device::GpuDevice as _;
|
||||
use crate::core::platform::render::{RenderCmd, RenderEncoder as _};
|
||||
use crate::core::platform::resource::{Buffer as _, Library as _};
|
||||
use crate::core::platform::types::{ClearColor, MtlOrigin, MtlSize};
|
||||
use crate::core::platform::values::{
|
||||
ColorAttachmentSet, DepthAttachmentSet, DepthStencilDesc, FullRenderPipelineDesc, TextureDesc,
|
||||
};
|
||||
use crate::core::raise::OnFault;
|
||||
|
||||
use crate::gpu::device::tests::dev;
|
||||
use crate::platform::tests::platform;
|
||||
|
||||
/// The library of `depth_denormals.metal`.
|
||||
const LIBRARY: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/depth_denormals.metallib"));
|
||||
|
||||
/// The target's side, in pixels.
|
||||
const SIDE: u64 = 8;
|
||||
|
||||
/// `MTLPixelFormatRGBA8Unorm`.
|
||||
const RGBA8: u32 = 70;
|
||||
|
||||
/// `MTLTextureUsageShaderRead | RenderTarget`, the private storage mode's resource options,
|
||||
/// `MTLLoadActionClear`, `MTLStoreActionStore`.
|
||||
const USAGE: u64 = 5;
|
||||
const PRIVATE: u64 = 0x20;
|
||||
const CLEAR: u64 = 2;
|
||||
const STORE: u64 = 1;
|
||||
|
||||
/// The state of the vertex function `vertex` and the fragment function `fragment` of
|
||||
/// `depth_denormals.metal`, into `colours` ([`colours_of`]) over a `Depth32Float` depth
|
||||
/// attachment.
|
||||
///
|
||||
/// [`colours_of`]: crate::gpu::device::tests::colours_of
|
||||
fn state<P: Platform>(
|
||||
d: &P::Device,
|
||||
(vertex, fragment): (&str, &str),
|
||||
colours: &[&[(u8, u32)]],
|
||||
) -> P::RenderPipeline {
|
||||
let library = d.new_library(LIBRARY).unwrap().unwrap().unwrap();
|
||||
let [vertex, fragment] =
|
||||
[vertex, fragment].map(|name| library.new_function(OnFault::Die, name).unwrap().unwrap());
|
||||
d.new_render_pipeline_state_full(&FullRenderPipelineDesc {
|
||||
colors: crate::gpu::device::tests::colours_of(colours),
|
||||
depth_pixel_format: u64::from(DEPTH32),
|
||||
..FullRenderPipelineDesc::new(&vertex, Some(&fragment))
|
||||
})
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
/// A buffer holding `contents`.
|
||||
fn buffer<P: Platform>(d: &P::Device, length: u64, contents: &[u8]) -> P::Buffer {
|
||||
let b = d
|
||||
.new_buffer_of_length(OnFault::Die, length, 0)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
// SAFETY: a Shared buffer of at least `contents.len()` bytes, which no command uses yet.
|
||||
unsafe {
|
||||
std::ptr::copy_nonoverlapping(
|
||||
contents.as_ptr(),
|
||||
b.contents().as_ptr::<u8>(),
|
||||
contents.len(),
|
||||
)
|
||||
};
|
||||
b
|
||||
}
|
||||
|
||||
/// A `SIDE` by `SIDE` texture of `format`.
|
||||
fn target<P: Platform>(p: &P, d: &P::Device, format: u32) -> P::Texture {
|
||||
let desc = p.texture_descriptor(&TextureDesc {
|
||||
texture_type: 2,
|
||||
pixel_format: u64::from(format),
|
||||
width: SIDE,
|
||||
height: SIDE,
|
||||
sample_count: 1,
|
||||
usage: USAGE,
|
||||
..TextureDesc::default()
|
||||
});
|
||||
d.new_texture(OnFault::Die, &desc).unwrap().unwrap()
|
||||
}
|
||||
|
||||
/// The bytes of `t`, `bytes` a texel, read back by a blit into a Shared buffer, after `encode`
|
||||
/// (the render pass) on the same command buffer.
|
||||
fn read_back<P: Platform>(
|
||||
d: &P::Device,
|
||||
cb: &P::CommandBuffer,
|
||||
t: &P::Texture,
|
||||
bytes: u64,
|
||||
) -> P::Buffer {
|
||||
let length = SIDE * SIDE * bytes;
|
||||
let out = buffer::<P>(d, length, &[]);
|
||||
let blit = cb.blit_encoder(OnFault::Die).unwrap().unwrap();
|
||||
for cmd in [
|
||||
BlitCmd::CopyTextureToBuffer {
|
||||
source_texture: t,
|
||||
source_slice: 0,
|
||||
source_level: 0,
|
||||
source_origin: MtlOrigin::new(0, 0, 0),
|
||||
source_size: MtlSize::new(SIDE, SIDE, 1),
|
||||
destination_buffer: &out,
|
||||
destination_offset: 0,
|
||||
destination_bytes_per_row: SIDE * bytes,
|
||||
destination_bytes_per_image: length,
|
||||
},
|
||||
BlitCmd::EndEncoding,
|
||||
] {
|
||||
blit.encode(OnFault::Die, cmd).unwrap();
|
||||
}
|
||||
out
|
||||
}
|
||||
|
||||
/// The bytes of `b`'s first `n`, read after its command buffer completed.
|
||||
fn bytes_of<P: Platform>(b: &P::Buffer, n: u64) -> Vec<u8> {
|
||||
let n = usize::try_from(n).unwrap();
|
||||
// SAFETY: a Shared buffer's bytes, read after the command buffer that wrote them completed.
|
||||
unsafe { std::slice::from_raw_parts(b.contents().as_ptr::<u8>(), n) }.to_vec()
|
||||
}
|
||||
|
||||
/// `MTLPixelFormatDepth32Float`, and `MTLLoadActionLoad`.
|
||||
const DEPTH32: u32 = 252;
|
||||
const LOAD: u64 = 1;
|
||||
|
||||
/// The positive and negative denormal depths, smallest and largest, which a depth texture
|
||||
/// stores and a depth test compares (`depth-denormals`).
|
||||
const DENORMALS: [u32; 4] = [0x0000_0001, 0x007f_ffff, 0x8000_0001, 0x807f_ffff];
|
||||
|
||||
/// What a pass draws over a `Depth32Float` texture whose every texel holds `stored`, written by
|
||||
/// a blit from a buffer, or by the pass's clear where `cleared`: the colour of one white triangle
|
||||
/// at depth 0 under depth `compare`, unwritten, over a black clear, then the depth's bytes, each
|
||||
/// read back by a blit.
|
||||
fn denormal_depth_drawn<P: Platform>(
|
||||
p: &P,
|
||||
d: &P::Device,
|
||||
stored: f32,
|
||||
cleared: bool,
|
||||
compare: u64,
|
||||
) -> (Vec<u8>, Vec<u8>) {
|
||||
let element: &[(u8, u32)] = &[(0, 0), (1, RGBA8)];
|
||||
let state = state::<P>(d, ("cover", "paint"), &[element]);
|
||||
let colour = target(p, d, RGBA8);
|
||||
let depth = d
|
||||
.new_texture(
|
||||
OnFault::Die,
|
||||
&p.texture_descriptor(&TextureDesc {
|
||||
texture_type: 2,
|
||||
pixel_format: u64::from(DEPTH32),
|
||||
width: SIDE,
|
||||
height: SIDE,
|
||||
sample_count: 1,
|
||||
usage: USAGE,
|
||||
resource_options: Some(PRIVATE),
|
||||
..TextureDesc::default()
|
||||
}),
|
||||
)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let q = d.new_command_queue().unwrap();
|
||||
let cb = q.command_buffer(OnFault::Die).unwrap().unwrap();
|
||||
let texels: Vec<u8> = (0..SIDE * SIDE)
|
||||
.flat_map(|_| stored.to_ne_bytes())
|
||||
.collect();
|
||||
let source = buffer::<P>(d, SIDE * SIDE * 4, &texels);
|
||||
if !cleared {
|
||||
let blit = cb.blit_encoder(OnFault::Die).unwrap().unwrap();
|
||||
for cmd in [
|
||||
BlitCmd::CopyBufferToTexture {
|
||||
source_buffer: &source,
|
||||
source_offset: 0,
|
||||
source_bytes_per_row: SIDE * 4,
|
||||
source_bytes_per_image: SIDE * SIDE * 4,
|
||||
source_size: MtlSize::new(SIDE, SIDE, 1),
|
||||
destination_texture: &depth,
|
||||
destination_slice: 0,
|
||||
destination_level: 0,
|
||||
destination_origin: MtlOrigin::new(0, 0, 0),
|
||||
},
|
||||
BlitCmd::EndEncoding,
|
||||
] {
|
||||
blit.encode(OnFault::Die, cmd).unwrap();
|
||||
}
|
||||
}
|
||||
let pass = p.render_pass_descriptor();
|
||||
pass.set_color_attachment(
|
||||
OnFault::Die,
|
||||
0,
|
||||
&ColorAttachmentSet {
|
||||
texture: Some(Some(&colour)),
|
||||
load_action: Some(CLEAR),
|
||||
store_action: Some(STORE),
|
||||
clear_color: Some(ClearColor {
|
||||
red: 0.0,
|
||||
green: 0.0,
|
||||
blue: 0.0,
|
||||
alpha: 1.0,
|
||||
}),
|
||||
..ColorAttachmentSet::default()
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
pass.set_depth_attachment(&DepthAttachmentSet {
|
||||
texture: Some(Some(&depth)),
|
||||
load_action: Some(if cleared { CLEAR } else { LOAD }),
|
||||
store_action: Some(STORE),
|
||||
clear_depth: Some(f64::from(stored)),
|
||||
..DepthAttachmentSet::default()
|
||||
});
|
||||
let tests_depth = d
|
||||
.new_depth_stencil_state(&DepthStencilDesc {
|
||||
depth_compare_function: Some(compare),
|
||||
depth_write_enabled: Some(false),
|
||||
front: None,
|
||||
back: None,
|
||||
})
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let z = buffer::<P>(d, 4, &0.0f32.to_ne_bytes());
|
||||
let white = buffer::<P>(
|
||||
d,
|
||||
16,
|
||||
&[1.0f32; 4]
|
||||
.iter()
|
||||
.flat_map(|f| f.to_ne_bytes())
|
||||
.collect::<Vec<_>>(),
|
||||
);
|
||||
let e = cb.render_encoder(OnFault::Die, &pass).unwrap().unwrap();
|
||||
for cmd in [
|
||||
RenderCmd::SetRenderPipelineState {
|
||||
pipeline_state: Some(&state),
|
||||
},
|
||||
RenderCmd::SetDepthStencilState {
|
||||
depth_stencil_state: Some(&tests_depth),
|
||||
},
|
||||
RenderCmd::SetVertexBuffer {
|
||||
buffer: Some(&z),
|
||||
offset: 0,
|
||||
index: 0,
|
||||
},
|
||||
RenderCmd::SetFragmentBuffer {
|
||||
buffer: Some(&white),
|
||||
offset: 0,
|
||||
index: 0,
|
||||
},
|
||||
RenderCmd::DrawPrimitives {
|
||||
primitive_type: 3,
|
||||
vertex_start: 0,
|
||||
vertex_count: 3,
|
||||
},
|
||||
RenderCmd::EndEncoding,
|
||||
] {
|
||||
e.encode(OnFault::Die, cmd).unwrap();
|
||||
}
|
||||
let drawn = read_back::<P>(d, &cb, &colour, 4);
|
||||
let kept = read_back::<P>(d, &cb, &depth, 4);
|
||||
cb.commit(OnFault::Die).unwrap();
|
||||
cb.wait_until_completed(OnFault::Die).unwrap();
|
||||
assert!(cb.error().is_none(), "{:?}", cb.error());
|
||||
(
|
||||
bytes_of::<P>(&drawn, SIDE * SIDE * 4),
|
||||
bytes_of::<P>(&kept, SIDE * SIDE * 4),
|
||||
)
|
||||
}
|
||||
|
||||
/// `MTLCompareFunctionEqual`, `LessEqual` and `GreaterEqual`: the compare functions under which a
|
||||
/// fragment at depth 0 passes against a stored 0.
|
||||
const PASS_AT_ZERO: [u64; 3] = [2, 3, 6];
|
||||
|
||||
/// A `Depth32Float` texture keeps a denormal depth that a blit from a buffer writes, positive or
|
||||
/// negative, or that a pass clears it to, and a draw at depth 0 compares against it, under every
|
||||
/// compare function but `Never` and `Always`, as Metal on this host does (an Apple M3 Max): the
|
||||
/// drawn colour and the depth's bytes are Metal's. Metal compares a positive denormal above
|
||||
/// zero, so a draw at 0 under `Less` covers the target, and keeps its bytes. The runtime
|
||||
/// announces `depth-denormals` at each such blit and clear on this host's MoltenVK, which it has
|
||||
/// measured on an Apple M4 alone; this is the measurement on this host's GPU.
|
||||
///
|
||||
/// A device without `VK_EXT_depth_range_unrestricted` (MoltenVK) clamps a blit's depths into
|
||||
/// `[0, 1]`: each blit dies of `restricted-depth-upload` in strict mode. By default the blit
|
||||
/// keeps a positive denormal, and the answer is Metal's; it stores a negative one as 0, its
|
||||
/// clamp, against which the draw at depth 0 passes under `Equal`, `LessEqual` and
|
||||
/// `GreaterEqual` alone: the colour white under those, the black clear under the others, and
|
||||
/// every depth byte 0. A pass's clear, to a positive denormal alone, is no upload, and its
|
||||
/// answer is Metal's there too
|
||||
#[test]
|
||||
fn denormal_depths_store_and_compare_as_metals() {
|
||||
use crate::gpu::device::tests::{clamped_depth, clamps_depth, uploading_depth};
|
||||
const UPLOAD: &str = "copyFromBuffer:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:\
|
||||
sourceSize:toTexture:destinationSlice:destinationLevel:\
|
||||
destinationOrigin:";
|
||||
let (p, d) = (platform(), dev());
|
||||
let mut cases = 0;
|
||||
for bits in DENORMALS {
|
||||
let stored = f32::from_bits(bits);
|
||||
// A pass clears to a depth within [0, 1] alone: the positive denormals.
|
||||
let ways: &[bool] = if bits & 0x8000_0000 == 0 {
|
||||
&[false, true]
|
||||
} else {
|
||||
&[false]
|
||||
};
|
||||
for &cleared in ways {
|
||||
for compare in 1..=6 {
|
||||
let drawn = || denormal_depth_drawn(&p, &d, stored, cleared, compare);
|
||||
let ours = if cleared {
|
||||
drawn()
|
||||
} else {
|
||||
uploading_depth(&d, UPLOAD, drawn)
|
||||
};
|
||||
let case = format!("{bits:#010x}, cleared {cleared}, compare {compare}");
|
||||
if clamped_depth(bits) == bits || !clamps_depth(&d) {
|
||||
crate::metal_check_raw!(&case, ours);
|
||||
} else {
|
||||
assert_eq!(clamped_depth(bits), 0, "{case}");
|
||||
let texel: [u8; 4] = match PASS_AT_ZERO.contains(&compare) {
|
||||
true => [0xff; 4],
|
||||
false => [0, 0, 0, 0xff],
|
||||
};
|
||||
let texels = usize::try_from(SIDE * SIDE).unwrap();
|
||||
let colour: Vec<u8> = texel.repeat(texels);
|
||||
assert_eq!(ours, (colour, vec![0; 4 * texels]), "{case}");
|
||||
}
|
||||
cases += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
assert_eq!(cases, 36);
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
-5
@@ -1,5 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
550 (384, 256) options 0x10 bytes 524288 b0c2f685fdc4ac2b63e7335ac4a8fd82 fe070220fe070220fe070220fe070220fe070220fe070220fe070220fe070220
|
||||
550 (33, 17) options 0x0 bytes 5184 aed6509e6701c7a1a8a89a22539a6669 fe070220fe070220fe070220fe070220fe070220fe070220fe070220fe070220
|
||||
551 (384, 256) options 0x10 bytes 524288 48c77c4cf69189949f936b73d152fd82 b2272029b2272029b2272029b2272029b2272029b2272029b2272029b2272029
|
||||
551 (33, 17) options 0x0 bytes 5184 e5ececaa40a47cb8956673f030b11aa0 b2272029b2272029b2272029b2272029b2272029b2272029b2272029b2272029
|
||||
-49
@@ -1,49 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
550 (384, 256) options 0x10 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([4, 2], [16, 5]) bytes 524288 da88ab9f87635b5dac0b5ac6a9d5bbc4 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([3, 1], [7, 3]) bytes 524288 833c935032f4b3b83209641ffa39469e 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([28, 14], [16, 8]) bytes 524288 70e917549c39e32e23bec9a16eae119b 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Bytes([161, 178, 195]) ([4, 2], [16, 5]) bytes 524288 5d1a8294943d979c06d78d25a0f62624 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Bytes([161, 178, 195]) ([3, 1], [7, 3]) bytes 524288 b073a1dfd60b82c799edc1753a83d8f9 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Bytes([161, 178, 195]) ([28, 14], [16, 8]) bytes 524288 e0e8c927e2bba86deb2e6bbd25b25f1b 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([4, 2], [16, 5]) bytes 524288 821553a805ccc6be7669a395aaad6424 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([3, 1], [7, 3]) bytes 524288 b179de0035a2b1e40f42f168d3039f2c 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([28, 14], [16, 8]) bytes 524288 bfb0284b194673b2ed2a5f6aa531161b 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([4, 2], [16, 5]) bytes 524288 ae9ab25e03c534207013e5e1aa44c244 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([3, 1], [7, 3]) bytes 524288 137fd68117ffdb837401d1a65284374e 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([28, 14], [16, 8]) bytes 524288 a6c03628945911d169de6abefab59e9b 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
550 (33, 17) options 0x0 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([4, 2], [16, 5]) bytes 5184 7ed73c0727db67ab0de97600b0201e89 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([3, 1], [7, 3]) bytes 5184 cf0b13eed73fdb698361bbb0e390141b 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([28, 14], [16, 8]) bytes 5184 9128f77809dc5f0339d96f3267dbb814 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Bytes([161, 178, 195]) ([4, 2], [16, 5]) bytes 5184 d15622318b95dcafe0a0c290f0678769 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Bytes([161, 178, 195]) ([3, 1], [7, 3]) bytes 5184 5cb61e0df12f94fb84b8794caa4fa20c 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Bytes([161, 178, 195]) ([28, 14], [16, 8]) bytes 5184 2164c1f8b5f8a538ccd1b1e6d45e7117 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([4, 2], [16, 5]) bytes 5184 aafabadc2974878f6c7587d95805b329 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([3, 1], [7, 3]) bytes 5184 a733f00ad716b2dbbc715027d9bb559d 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([28, 14], [16, 8]) bytes 5184 1e6c35c99f1d80736f98fe5c570ffbe2 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([4, 2], [16, 5]) bytes 5184 93b70350055f855b64ec9b9a07baf389 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([3, 1], [7, 3]) bytes 5184 1c4b06ab37120dfa95608a8812d6d25b 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
550 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([28, 14], [16, 8]) bytes 5184 887563a3347b07c588834402a129254c 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (384, 256) options 0x10 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([4, 2], [16, 5]) bytes 524288 da88ab9f87635b5dac0b5ac6a9d5bbc4 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([3, 1], [7, 3]) bytes 524288 833c935032f4b3b83209641ffa39469e 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([28, 14], [16, 8]) bytes 524288 70e917549c39e32e23bec9a16eae119b 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Bytes([161, 178, 195]) ([4, 2], [16, 5]) bytes 524288 5d1a8294943d979c06d78d25a0f62624 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Bytes([161, 178, 195]) ([3, 1], [7, 3]) bytes 524288 b073a1dfd60b82c799edc1753a83d8f9 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Bytes([161, 178, 195]) ([28, 14], [16, 8]) bytes 524288 e0e8c927e2bba86deb2e6bbd25b25f1b 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([4, 2], [16, 5]) bytes 524288 821553a805ccc6be7669a395aaad6424 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([3, 1], [7, 3]) bytes 524288 b179de0035a2b1e40f42f168d3039f2c 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([28, 14], [16, 8]) bytes 524288 bfb0284b194673b2ed2a5f6aa531161b 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([4, 2], [16, 5]) bytes 524288 ae9ab25e03c534207013e5e1aa44c244 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([3, 1], [7, 3]) bytes 524288 137fd68117ffdb837401d1a65284374e 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (384, 256) options 0x10 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([28, 14], [16, 8]) bytes 524288 a6c03628945911d169de6abefab59e9b 0002e8d0c6f701ffcfba36b87a6d4a487a8a4313ac9401319f03df4ac7c954b7
|
||||
551 (33, 17) options 0x0 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([4, 2], [16, 5]) bytes 5184 7ed73c0727db67ab0de97600b0201e89 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([3, 1], [7, 3]) bytes 5184 cf0b13eed73fdb698361bbb0e390141b 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Bytes([17, 34, 51, 68, 85, 102, 119, 136]) ([28, 14], [16, 8]) bytes 5184 9128f77809dc5f0339d96f3267dbb814 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Bytes([161, 178, 195]) ([4, 2], [16, 5]) bytes 5184 d15622318b95dcafe0a0c290f0678769 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Bytes([161, 178, 195]) ([3, 1], [7, 3]) bytes 5184 5cb61e0df12f94fb84b8794caa4fa20c 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Bytes([161, 178, 195]) ([28, 14], [16, 8]) bytes 5184 2164c1f8b5f8a538ccd1b1e6d45e7117 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([4, 2], [16, 5]) bytes 5184 aafabadc2974878f6c7587d95805b329 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([3, 1], [7, 3]) bytes 5184 a733f00ad716b2dbbc715027d9bb559d 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 70) ([28, 14], [16, 8]) bytes 5184 1e6c35c99f1d80736f98fe5c570ffbe2 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([4, 2], [16, 5]) bytes 5184 93b70350055f855b64ec9b9a07baf389 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([3, 1], [7, 3]) bytes 5184 1c4b06ab37120dfa95608a8812d6d25b 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
551 (33, 17) options 0x0 Color(ClearColor { red: 0.25, green: -0.5, blue: 1.25, alpha: 0.75 }, 115) ([28, 14], [16, 8]) bytes 5184 887563a3347b07c588834402a129254c 0002cb25ba1713957f372d730e4d354952155eb549192d22fb50f7b4f6a581bb
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
OneCommandBuffer bytes 16384 0471743bce33f33322181df7bae6abde 01080f161d242b323940474e555c636a71787f868d949ba2a9b0b7bec5ccd3da
|
||||
EventAcrossQueues bytes 16384 0471743bce33f33322181df7bae6abde 01080f161d242b323940474e555c636a71787f868d949ba2a9b0b7bec5ccd3da
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
550 (384, 256): copy 0 bytes 524288 3d4f76f6de494be05fa075f1aba7a8cc 00038dc62fe6e63cbe0f89e1c6c5c8c207b8db631c9558cd951d74971634fdf2
|
||||
550 (384, 256): copy 1 bytes 524288 846c43cfd890eeaccf249dae7bdc043d 00038dc62fe6e63cbe0f89e1c6c5c8c207b8db631c9558cd951d74971634fdf2
|
||||
550 (33, 17): copy 0 bytes 5184 fa5b0a5ab20039bd6ceba3fedfbb52f9 0003b0675fb6b27a302158879801315e093837dac88e1f54a8f87a0baa301551
|
||||
550 (33, 17): copy 1 bytes 5184 6e5eda4427e046938a1e17b4021124c7 0003b0675fb6b27a302158879801315e093837dac88e1f54a8f87a0baa301551
|
||||
551 (384, 256): copy 0 bytes 524288 3d4f76f6de494be05fa075f1aba7a8cc 00038dc62fe6e63cbe0f89e1c6c5c8c207b8db631c9558cd951d74971634fdf2
|
||||
551 (384, 256): copy 1 bytes 524288 846c43cfd890eeaccf249dae7bdc043d 00038dc62fe6e63cbe0f89e1c6c5c8c207b8db631c9558cd951d74971634fdf2
|
||||
551 (33, 17): copy 0 bytes 5184 fa5b0a5ab20039bd6ceba3fedfbb52f9 0003b0675fb6b27a302158879801315e093837dac88e1f54a8f87a0baa301551
|
||||
551 (33, 17): copy 1 bytes 5184 6e5eda4427e046938a1e17b4021124c7 0003b0675fb6b27a302158879801315e093837dac88e1f54a8f87a0baa301551
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
550 Replace bytes 33816 a6bd1077d130d250f7e6cf8840f33a5b 004000000000000000254a6f94b9de082d52779cc1e610355a7fa4c9ee183d62
|
||||
550 ToBuffer bytes 33816 08bf6552de6576a15e44d2c8b9bf4ec3 00400000000000000005891b7c930e36db55bedac234514350fac3ab20194b75
|
||||
550 FromBuffer bytes 33816 a6bd1077d130d250f7e6cf8840f33a5b 004000000000000000254a6f94b9de082d52779cc1e610355a7fa4c9ee183d62
|
||||
551 Replace bytes 33816 a6bd1077d130d250f7e6cf8840f33a5b 004000000000000000254a6f94b9de082d52779cc1e610355a7fa4c9ee183d62
|
||||
551 ToBuffer bytes 33816 08bf6552de6576a15e44d2c8b9bf4ec3 00400000000000000005891b7c930e36db55bedac234514350fac3ab20194b75
|
||||
551 FromBuffer bytes 33816 a6bd1077d130d250f7e6cf8840f33a5b 004000000000000000254a6f94b9de082d52779cc1e610355a7fa4c9ee183d62
|
||||
-1537
File diff suppressed because it is too large.
Load diff
-13
@@ -1,13 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
576's size SizeAndAlign { size: 640, align: 128 }
|
||||
576: a texture buffer's size SizeAndAlign { size: 32, align: 16 }
|
||||
577's size SizeAndAlign { size: 640, align: 128 }
|
||||
577: a texture buffer's size SizeAndAlign { size: 32, align: 16 }
|
||||
578's size SizeAndAlign { size: 1152, align: 128 }
|
||||
578: a texture buffer's size SizeAndAlign { size: 64, align: 16 }
|
||||
579's size SizeAndAlign { size: 1152, align: 128 }
|
||||
579: a texture buffer's size SizeAndAlign { size: 64, align: 16 }
|
||||
624's size SizeAndAlign { size: 16640, align: 16 }
|
||||
625's size SizeAndAlign { size: 16640, align: 16 }
|
||||
626's size SizeAndAlign { size: 16640, align: 16 }
|
||||
627's size SizeAndAlign { size: 16640, align: 16 }
|
||||
-119
@@ -1,119 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
576: dispatch 0 0 true 0 bytes 4096 2c5702ee8350e14db290cb62cec49cf0 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: dispatch 0 1 true 0 bytes 4096 561f27e25c0e4dd59b6a681fd8f23927 89228a3e00000000000000000000803f2bab2c3f00000000000000000000803f
|
||||
576: dispatch 0 2 true 0 bytes 4096 62479add5ceb34046c98f80a32d46579 b0befa3e00000000000000000000803f8b2db63d00000000000000000000803f
|
||||
576: dispatch 0 3 true 0 bytes 4096 636c79b26d4b762c3e5e11977769a0ed 89228a3e00000000000000000000803f2bab2c3f00000000000000000000803f
|
||||
576: dispatch 0 4 true 0 bytes 4096 e7a31d0c8ef34778e378c44e3bd84d96 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 0 5 true 0 bytes 4096 e7a31d0c8ef34778e378c44e3bd84d96 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 0 5 true 1 bytes 4096 e7a31d0c8ef34778e378c44e3bd84d96 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 0 5 true 2 bytes 4096 6eca766232f697641c6fffabb8f25cfe 0000803f00000000000000000000803f0000803f00000000000000000000803f
|
||||
576: dispatch 1 0 true 0 bytes 4096 2eace9c718d37c0d3d91557fff9558ba 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: draw 1 0 true 0 bytes 4096 2eace9c718d37c0d3d91557fff9558ba 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: dispatch 1 1 true 0 bytes 4096 64652b6e2f57405d81fea216fa6adee8 2eb9e43e00000000000000000000803facaf3e3f00000000000000000000803f
|
||||
576: draw 1 1 true 0 bytes 4096 64652b6e2f57405d81fea216fa6adee8 2eb9e43e00000000000000000000803facaf3e3f00000000000000000000803f
|
||||
576: dispatch 1 2 true 0 bytes 4096 41bb0e72dc2a61fd6103467736feccfd b0bffe3e00000000000000000000803fa289a63e00000000000000000000803f
|
||||
576: draw 1 2 true 0 bytes 4096 41bb0e72dc2a61fd6103467736feccfd b0bffe3e00000000000000000000803fa289a63e00000000000000000000803f
|
||||
576: dispatch 1 3 true 0 bytes 4096 83f011f8dc15d3c6b6f967071514627e 2eb9e43e00000000000000000000803facaf3e3f00000000000000000000803f
|
||||
576: draw 1 3 true 0 bytes 4096 83f011f8dc15d3c6b6f967071514627e 2eb9e43e00000000000000000000803facaf3e3f00000000000000000000803f
|
||||
576: dispatch 1 4 true 0 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: draw 1 4 true 0 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 1 5 true 0 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: draw 1 5 true 0 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 1 5 true 1 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: draw 1 5 true 1 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 1 5 true 2 bytes 4096 485383be99e5bbdeb313876e18cead81 0000803f00000000000000000000803f0000803f00000000000000000000803f
|
||||
576: draw 1 5 true 2 bytes 4096 485383be99e5bbdeb313876e18cead81 0000803f00000000000000000000803f0000803f00000000000000000000803f
|
||||
576: dispatch 0 0 false 0 bytes 4096 2c5702ee8350e14db290cb62cec49cf0 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: dispatch 0 1 false 0 bytes 4096 561f27e25c0e4dd59b6a681fd8f23927 89228a3e00000000000000000000803f2bab2c3f00000000000000000000803f
|
||||
576: dispatch 0 2 false 0 bytes 4096 2c5702ee8350e14db290cb62cec49cf0 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: dispatch 0 3 false 0 bytes 4096 2c5702ee8350e14db290cb62cec49cf0 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: dispatch 0 4 false 0 bytes 4096 e7a31d0c8ef34778e378c44e3bd84d96 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 0 5 false 0 bytes 4096 e7a31d0c8ef34778e378c44e3bd84d96 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 0 5 false 1 bytes 4096 e7a31d0c8ef34778e378c44e3bd84d96 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 0 5 false 2 bytes 4096 6eca766232f697641c6fffabb8f25cfe 0000803f00000000000000000000803f0000803f00000000000000000000803f
|
||||
576: dispatch 1 0 false 0 bytes 4096 2eace9c718d37c0d3d91557fff9558ba 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: draw 1 0 false 0 bytes 4096 2eace9c718d37c0d3d91557fff9558ba 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: dispatch 1 1 false 0 bytes 4096 64652b6e2f57405d81fea216fa6adee8 2eb9e43e00000000000000000000803facaf3e3f00000000000000000000803f
|
||||
576: draw 1 1 false 0 bytes 4096 64652b6e2f57405d81fea216fa6adee8 2eb9e43e00000000000000000000803facaf3e3f00000000000000000000803f
|
||||
576: dispatch 1 2 false 0 bytes 4096 2eace9c718d37c0d3d91557fff9558ba 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: draw 1 2 false 0 bytes 4096 2eace9c718d37c0d3d91557fff9558ba 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: dispatch 1 3 false 0 bytes 4096 2eace9c718d37c0d3d91557fff9558ba 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: draw 1 3 false 0 bytes 4096 2eace9c718d37c0d3d91557fff9558ba 0925143e00000000000000000000803f0925143e00000000000000000000803f
|
||||
576: dispatch 1 4 false 0 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: draw 1 4 false 0 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 1 5 false 0 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: draw 1 5 false 0 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 1 5 false 1 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: draw 1 5 false 1 bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: dispatch 1 5 false 2 bytes 4096 485383be99e5bbdeb313876e18cead81 0000803f00000000000000000000803f0000803f00000000000000000000803f
|
||||
576: draw 1 5 false 2 bytes 4096 485383be99e5bbdeb313876e18cead81 0000803f00000000000000000000803f0000803f00000000000000000000803f
|
||||
576: sample_constexpr_repeat bytes 4096 62479add5ceb34046c98f80a32d46579 b0befa3e00000000000000000000803f8b2db63d00000000000000000000803f
|
||||
576: sample_constexpr_mirrored_repeat bytes 4096 636c79b26d4b762c3e5e11977769a0ed 89228a3e00000000000000000000803f2bab2c3f00000000000000000000803f
|
||||
576: sample_constexpr_zero bytes 4096 e7a31d0c8ef34778e378c44e3bd84d96 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: sample_constexpr_repeat_linear bytes 4096 41bb0e72dc2a61fd6103467736feccfd b0bffe3e00000000000000000000803fa289a63e00000000000000000000803f
|
||||
576: sample_constexpr_mirrored_repeat_linear bytes 4096 83f011f8dc15d3c6b6f967071514627e 2eb9e43e00000000000000000000803facaf3e3f00000000000000000000803f
|
||||
576: sample_constexpr_border_white bytes 4096 6eca766232f697641c6fffabb8f25cfe 0000803f00000000000000000000803f0000803f00000000000000000000803f
|
||||
576: sample_constexpr_border_black_linear bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: sample_constexpr_border_clear_linear bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
576: sample_constexpr_repeat_linear_fragment bytes 4096 41bb0e72dc2a61fd6103467736feccfd b0bffe3e00000000000000000000803fa289a63e00000000000000000000803f
|
||||
576: sample_constexpr_mirrored_repeat_fragment bytes 4096 636c79b26d4b762c3e5e11977769a0ed 89228a3e00000000000000000000803f2bab2c3f00000000000000000000803f
|
||||
576: sample_constexpr_border_clear_linear_fragment bytes 4096 089b5acb80664de6d995f7062dcb2275 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 0 0 true 0 bytes 4096 a234f02e395ed4067647c0591f182450 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: dispatch 0 1 true 0 bytes 4096 9d530eb386a90ba0d416f30e209a7421 2eb9e43e2caf3c3f000000000000803f89228a3ed9630f3f000000000000803f
|
||||
578: dispatch 0 2 true 0 bytes 4096 ba05cc5b5c47e5656158d76d15cc6b0e acae3a3f0a271c3d000000000000803ffef9673f0e36583e000000000000803f
|
||||
578: dispatch 0 3 true 0 bytes 4096 1cca5b73ae25d1ebc73917361c1f2f4e 2eb9e43e2caf3c3f000000000000803f89228a3ed9630f3f000000000000803f
|
||||
578: dispatch 0 4 true 0 bytes 4096 7bd03f11b72d110f8b80383096d47db4 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 0 5 true 0 bytes 4096 7bd03f11b72d110f8b80383096d47db4 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 0 5 true 1 bytes 4096 7bd03f11b72d110f8b80383096d47db4 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 0 5 true 2 bytes 4096 b34c8abb70a28aea17c2d527551af5f4 0000803f0000803f000000000000803f0000803f0000803f000000000000803f
|
||||
578: dispatch 1 0 true 0 bytes 4096 1283a719d7cd3f325947e7a41ef1e37b 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: draw 1 0 true 0 bytes 4096 1283a719d7cd3f325947e7a41ef1e37b 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: dispatch 1 1 true 0 bytes 4096 32f0d65331565f727afc75d40f4bf1c3 45130d3f7ffcf13e000000000000803f34d0c03ec514133f000000000000803f
|
||||
578: draw 1 1 true 0 bytes 4096 32f0d65331565f727afc75d40f4bf1c3 45130d3f7ffcf13e000000000000803f34d0c03ec514133f000000000000803f
|
||||
578: dispatch 1 2 true 0 bytes 4096 236de45588c97198e72ce3576438f2fa 1144103f9a669a3e000000000000803f34d1443fcd34d33e000000000000803f
|
||||
578: draw 1 2 true 0 bytes 4096 236de45588c97198e72ce3576438f2fa 1144103f9a669a3e000000000000803f34d1443fcd34d33e000000000000803f
|
||||
578: dispatch 1 3 true 0 bytes 4096 df630fa0be81c455fd40200180b22cfe 45130d3f7ffcf13e000000000000803f34d0c03ec514133f000000000000803f
|
||||
578: draw 1 3 true 0 bytes 4096 df630fa0be81c455fd40200180b22cfe 45130d3f7ffcf13e000000000000803f34d0c03ec514133f000000000000803f
|
||||
578: dispatch 1 4 true 0 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: draw 1 4 true 0 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 1 5 true 0 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: draw 1 5 true 0 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 1 5 true 1 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: draw 1 5 true 1 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 1 5 true 2 bytes 4096 7eac91d6286d07a6d6568e46c8440fc0 0000803f0000803f000000000000803f0000803f0000803f000000000000803f
|
||||
578: draw 1 5 true 2 bytes 4096 7eac91d6286d07a6d6568e46c8440fc0 0000803f0000803f000000000000803f0000803f0000803f000000000000803f
|
||||
578: dispatch 0 0 false 0 bytes 4096 a234f02e395ed4067647c0591f182450 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: dispatch 0 1 false 0 bytes 4096 9d530eb386a90ba0d416f30e209a7421 2eb9e43e2caf3c3f000000000000803f89228a3ed9630f3f000000000000803f
|
||||
578: dispatch 0 2 false 0 bytes 4096 a234f02e395ed4067647c0591f182450 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: dispatch 0 3 false 0 bytes 4096 a234f02e395ed4067647c0591f182450 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: dispatch 0 4 false 0 bytes 4096 7bd03f11b72d110f8b80383096d47db4 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 0 5 false 0 bytes 4096 7bd03f11b72d110f8b80383096d47db4 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 0 5 false 1 bytes 4096 7bd03f11b72d110f8b80383096d47db4 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 0 5 false 2 bytes 4096 b34c8abb70a28aea17c2d527551af5f4 0000803f0000803f000000000000803f0000803f0000803f000000000000803f
|
||||
578: dispatch 1 0 false 0 bytes 4096 1283a719d7cd3f325947e7a41ef1e37b 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: draw 1 0 false 0 bytes 4096 1283a719d7cd3f325947e7a41ef1e37b 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: dispatch 1 1 false 0 bytes 4096 32f0d65331565f727afc75d40f4bf1c3 45130d3f7ffcf13e000000000000803f34d0c03ec514133f000000000000803f
|
||||
578: draw 1 1 false 0 bytes 4096 32f0d65331565f727afc75d40f4bf1c3 45130d3f7ffcf13e000000000000803f34d0c03ec514133f000000000000803f
|
||||
578: dispatch 1 2 false 0 bytes 4096 1283a719d7cd3f325947e7a41ef1e37b 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: draw 1 2 false 0 bytes 4096 1283a719d7cd3f325947e7a41ef1e37b 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: dispatch 1 3 false 0 bytes 4096 1283a719d7cd3f325947e7a41ef1e37b 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: draw 1 3 false 0 bytes 4096 1283a719d7cd3f325947e7a41ef1e37b 0925143eaeb7de3e000000000000803f0925143eaeb7de3e000000000000803f
|
||||
578: dispatch 1 4 false 0 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: draw 1 4 false 0 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 1 5 false 0 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: draw 1 5 false 0 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 1 5 false 1 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: draw 1 5 false 1 bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: dispatch 1 5 false 2 bytes 4096 7eac91d6286d07a6d6568e46c8440fc0 0000803f0000803f000000000000803f0000803f0000803f000000000000803f
|
||||
578: draw 1 5 false 2 bytes 4096 7eac91d6286d07a6d6568e46c8440fc0 0000803f0000803f000000000000803f0000803f0000803f000000000000803f
|
||||
578: sample_constexpr_repeat bytes 4096 ba05cc5b5c47e5656158d76d15cc6b0e acae3a3f0a271c3d000000000000803ffef9673f0e36583e000000000000803f
|
||||
578: sample_constexpr_mirrored_repeat bytes 4096 1cca5b73ae25d1ebc73917361c1f2f4e 2eb9e43e2caf3c3f000000000000803f89228a3ed9630f3f000000000000803f
|
||||
578: sample_constexpr_zero bytes 4096 7bd03f11b72d110f8b80383096d47db4 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: sample_constexpr_repeat_linear bytes 4096 236de45588c97198e72ce3576438f2fa 1144103f9a669a3e000000000000803f34d1443fcd34d33e000000000000803f
|
||||
578: sample_constexpr_mirrored_repeat_linear bytes 4096 df630fa0be81c455fd40200180b22cfe 45130d3f7ffcf13e000000000000803f34d0c03ec514133f000000000000803f
|
||||
578: sample_constexpr_border_white bytes 4096 b34c8abb70a28aea17c2d527551af5f4 0000803f0000803f000000000000803f0000803f0000803f000000000000803f
|
||||
578: sample_constexpr_border_black_linear bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: sample_constexpr_border_clear_linear bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
578: sample_constexpr_repeat_linear_fragment bytes 4096 236de45588c97198e72ce3576438f2fa 1144103f9a669a3e000000000000803f34d1443fcd34d33e000000000000803f
|
||||
578: sample_constexpr_mirrored_repeat_fragment bytes 4096 1cca5b73ae25d1ebc73917361c1f2f4e 2eb9e43e2caf3c3f000000000000803f89228a3ed9630f3f000000000000803f
|
||||
578: sample_constexpr_border_clear_linear_fragment bytes 4096 5870c4e7c90c50f3d1b3d98e42750300 0000000000000000000000000000803f0000000000000000000000000000803f
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
TextureDesc { texture_type: 2, pixel_format: 80, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: Some(1), framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } ["made", "1152 bytes at 128", "made", "made", "made"]
|
||||
TextureDesc { texture_type: 2, pixel_format: 80, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: Some(2), framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } ["made", "1152 bytes at 128", "made", "made", "made"]
|
||||
TextureDesc { texture_type: 2, pixel_format: 80, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: Some(16), framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } ["made", "1152 bytes at 128", "made", "made", "made"]
|
||||
TextureDesc { texture_type: 2, pixel_format: 80, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: Some((1792, false)), protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } ["made at 0x700", "made at 0x700", "made at 0x700"]
|
||||
TextureDesc { texture_type: 2, pixel_format: 80, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: Some((1792, true)), protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } ["made at 0x700", "made at 0x700", "made at 0x700"]
|
||||
-41
@@ -1,41 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
read: 550 (384, 256) options 0x10 bytes 1572872 1402439509604d9a347d8af20f509269 0080010000000000eae9693fc1c0c0bec1c040bfabaaaa3e1111113fc9c8c8be
|
||||
(0, 0, false, 0): 550 (384, 256) options 0x10 bytes 14526728 d71facbfcf700627268f39d945126653 90da0d0000000000eae9693fc1c0c0bec1c040bfabaaaa3eeae9693fc1c0c0be
|
||||
(0, 2, true, 0): 550 (384, 256) options 0x10 bytes 14526728 0810c9b50806c577900ba5410e4774cf 90da0d0000000000dddc5c3f4444443fb2b1313fdedd5d3fdddc5c3f4444443f
|
||||
(1, 0, false, 0): 550 (384, 256) options 0x10 bytes 14526728 7852330e0412a3b5a4ad17cf7905fe04 90da0d0000000000eae9693fc1c0c0bec1c040bfabaaaa3eeae9693fc1c0c0be
|
||||
(1, 2, true, 0): 550 (384, 256) options 0x10 bytes 14526728 074a7c4fb6cb51dd8535a3237e7acf88 90da0d00000000007b7bbb3edfde5ebd9f9ede3e5656163f7a7a0a3fa5a4a43c
|
||||
read: 550 (384, 256) options 0x0 bytes 1572872 0b66785e9d8dde43f65c6bfe031f1c1a 00800100000000002d2d2dbfa1a0203f818080bec5c4443fbebd3d3f8d8c0cbf
|
||||
(0, 0, false, 0): 550 (384, 256) options 0x0 bytes 14526728 8233d7c2bb0597f7e511fd9c61f37ea0 90da0d00000000002d2d2dbfa1a0203f818080bec5c4443f2d2d2dbfa1a0203f
|
||||
(0, 2, true, 0): 550 (384, 256) options 0x0 bytes 14526728 ac97bf19c590a9983b480e0f0221a5ea 90da0d0000000000c5c4443fe2e1e1bea8a7a7bec2c1413fc5c4443fe2e1e1be
|
||||
(1, 0, false, 0): 550 (384, 256) options 0x0 bytes 14526728 45a0244d3384eed52227b1a9bd93ebcc 90da0d00000000002d2d2dbfa1a0203f818080bec5c4443f2d2d2dbfa1a0203f
|
||||
(1, 2, true, 0): 550 (384, 256) options 0x0 bytes 14526728 854595c2eb85f696c8846a5498d0262c 90da0d00000000004c4c8c3ea5a4a4bdabaaaa3d7575353fedec6c3e2222a23d
|
||||
read: 550 (33, 17) options 0x10 bytes 8984 a1799c9026b8ebccd1bec2093c383363 3102000000000000d1d050bd818000be818080bee9e8e83ea2a121bf8988083e
|
||||
(0, 0, false, 0): 550 (33, 17) options 0x10 bytes 111896 776ebbdf92b7945771c2156f0ef0b63c 511b000000000000d1d050bd818000be818080bee9e8e83ed1d050bd818000be
|
||||
(0, 2, true, 0): 550 (33, 17) options 0x10 bytes 111896 25a37fbf68a97bfb66230c348e81584a 511b0000000000007575753f9594943ff1f070befffefe3e7575753f9594943f
|
||||
(1, 0, false, 0): 550 (33, 17) options 0x10 bytes 111896 2722570af4aca8bc4b19f8569a0b8aad 511b000000000000d1d050bd818000be818080bee9e8e83ed1d050bd818000be
|
||||
(1, 2, true, 0): 550 (33, 17) options 0x10 bytes 111896 7164ac7414f2fdf64301092a6dc6e855 511b0000000000005b5b1b3fc4c3233fefeeae3ebebdbd3e2d2d653fabaa4a3f
|
||||
read: 550 (7, 5) options 0x0 bytes 568 2d95583f222aeff5b3dff6cd3b12bebb 2300000000000000b5b4b43e00000000818080bef7f6763f1010103f818000bc
|
||||
(0, 0, false, 0): 550 (7, 5) options 0x0 bytes 14264 b075213820a6fed2cd725d37d2534d36 7b03000000000000b5b4b43e00000000818080bef7f6763fb5b4b43e00000000
|
||||
(0, 2, true, 0): 550 (7, 5) options 0x0 bytes 14264 a7656f700f21c8661e1bf380aaf4998b 7b03000000000000919090bd7e7e7e3f4d4d8d3ff1f0703e919090bd7e7e7e3f
|
||||
(1, 0, false, 0): 550 (7, 5) options 0x0 bytes 14264 d3e3fcac0aa797017dc0cbfb86263d4a 7b03000000000000b5b4b43e00000000818080bef7f6763fb5b4b43e00000000
|
||||
(1, 2, true, 0): 550 (7, 5) options 0x0 bytes 14264 73b4436af6f79ce66f68345ad46e3783 7b03000000000000d9d8183ffffe3e3f8685c53ef1f0303fabaafa3eaaa9793f
|
||||
read: 551 (384, 256) options 0x10 bytes 1572872 0d03748c3ce655026e8be422a134d723 00800100000000000098503f0080efbd00f006bfabaaaa3e00e08f3e008002be
|
||||
(0, 0, false, 0): 551 (384, 256) options 0x10 bytes 14526728 262ad09c40a81063b843260baf59afa9 90da0d00000000000098503f0080efbd00f006bfabaaaa3e0098503f0080efbd
|
||||
(0, 2, true, 0): 551 (384, 256) options 0x10 bytes 14526728 15b928a65e3611298c8c4e3326bdac1c 90da0d00000000000038373f00800c3f0020e13ededd5d3f0038373f00800c3f
|
||||
(1, 0, false, 0): 551 (384, 256) options 0x10 bytes 14526728 43a5a20f5b25d089cfa68c9077e827f6 90da0d00000000000098503f0080efbd00f006bfabaaaa3e0098503f0080efbd
|
||||
(1, 2, true, 0): 551 (384, 256) options 0x10 bytes 14526728 8a92a65fdd4b7f58dda8b0f63b70a529 90da0d00000000000090843e0000783c0000cf3e5656163f0050bc3e0080783d
|
||||
read: 551 (384, 256) options 0x0 bytes 1572872 07f69049ae25d3edc09cb95788107966 00800100000000000090d4be0000b43e000052bdc5c4443f0048023f004086be
|
||||
(0, 0, false, 0): 551 (384, 256) options 0x0 bytes 14526728 e942573e7a39d1d83a1c6e288358efb4 90da0d00000000000090d4be0000b43e000052bdc5c4443f0090d4be0000b43e
|
||||
(0, 2, true, 0): 551 (384, 256) options 0x0 bytes 14526728 fca99088a7201aaa9d0531c7413fa471 90da0d000000000000500d3f008027be0040b3bdc2c1413f00500d3f008027be
|
||||
(1, 0, false, 0): 551 (384, 256) options 0x0 bytes 14526728 665072f68e5544411f94b4156dc97b0f 90da0d00000000000090d4be0000b43e000052bdc5c4443f0090d4be0000b43e
|
||||
(1, 2, true, 0): 551 (384, 256) options 0x0 bytes 14526728 10de3b2c7f2bd33a7e27a21ecef4ef37 90da0d00000000000080c83e0080543d00c0543e7575353f0040903e00a0113e
|
||||
read: 551 (33, 17) options 0x10 bytes 8984 10ae7459f955d1b0873d6012499ab8f0 3102000000000000000084bb00006cbc000052bde9e8e83e0080b6be0000833c
|
||||
(0, 0, false, 0): 551 (33, 17) options 0x10 bytes 111896 82904678b82eb8802ca9251dd6ba387b 511b000000000000000084bb00006cbc000052bde9e8e83e000084bb00006cbc
|
||||
(0, 2, true, 0): 551 (33, 17) options 0x10 bytes 111896 cb37486feb61b7c092b026775e7f83e0 511b00000000000000a8683f00e8b33f000039bdfffefe3e00a8683f00e8b33f
|
||||
(1, 0, false, 0): 551 (33, 17) options 0x10 bytes 111896 f15ed5926e232748eeff324ad3fdb729 511b000000000000000084bb00006cbc000052bde9e8e83e000084bb00006cbc
|
||||
(1, 2, true, 0): 551 (33, 17) options 0x10 bytes 111896 e61f8ec6bbe9a5d0304d5d1a375e25d3 511b0000000000000098223f0048473f0018113fbebdbd3e00c0723f0038533f
|
||||
read: 551 (7, 5) options 0x0 bytes 568 e5a625bb07b9c449999c5aeefa7054aa 23000000000000000080d13d00000000000052bdf7f6763f00b08d3e000020ba
|
||||
(0, 0, false, 0): 551 (7, 5) options 0x0 bytes 14264 a46847b7920a22f3c97637b508d7eebf 7b030000000000000080d13d00000000000052bdf7f6763f0080d13d00000000
|
||||
(0, 2, true, 0): 551 (7, 5) options 0x0 bytes 14264 469f7455ac38d736aa68a16c9190b2e8 7b030000000000000000c8bb00987c3f0060a03ff1f0703e0000c8bb00987c3f
|
||||
(1, 0, false, 0): 551 (7, 5) options 0x0 bytes 14264 5fe6c20d5ad8b65b8f8576df64d5e8cd 7b030000000000000080d13d00000000000052bdf7f6763f0080d13d00000000
|
||||
(1, 2, true, 0): 551 (7, 5) options 0x0 bytes 14264 47ae430d8bedcbe0e7964253148a573d 7b0300000000000000a0fe3e00403e3f0080b93ef1f0303f00a0e83e00e8883f
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
read alone: the size query (1152, 128)
|
||||
written: the size query (1024, 128)
|
||||
rendered: the size query (1152, 128)
|
||||
-221
@@ -1,221 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
420v (33, 17) None: read bytes 8984 c05e0a1298f5ab17dd0657f84a42e70b 310200000000000000003a3d0000000000801b3f0000803f0000000000000000
|
||||
420v (33, 17) None: nearest bytes 8984 c05e0a1298f5ab17dd0657f84a42e70b 310200000000000000003a3d0000000000801b3f0000803f0000000000000000
|
||||
420v (33, 17) None: sample_texels normalized false mipped false bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) None: sample_texels_float normalized false mipped false bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) None: sample_fragment normalized false mipped false bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) None: sample_fragment_float normalized false mipped false bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) None: sample_texels normalized true mipped false bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) None: sample_texels_float normalized true mipped false bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) None: sample_fragment normalized true mipped false bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) None: sample_fragment_float normalized true mipped false bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) None: sample_texels normalized false mipped true bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) None: sample_texels_float normalized false mipped true bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) None: sample_fragment normalized false mipped true bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) None: sample_fragment_float normalized false mipped true bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) None: sample_fragment minified normalized false mipped false bytes 1024 7c6b20b1d67796c385beb4688654e7fc d0290000c838003c003094319f3a003c9d39d038e73a003c50368433001e003c
|
||||
420v (33, 17) None: sample_fragment_float minified normalized false mipped false bytes 2048 a847996d95e5a51e1bff3d54de268cb6 00003a3d000000000000193f0000803f0000003e0080323e00e0533f0000803f
|
||||
420v (33, 17) None: sample_fragment minified normalized true mipped false bytes 1024 7c6b20b1d67796c385beb4688654e7fc d0290000c838003c003094319f3a003c9d39d038e73a003c50368433001e003c
|
||||
420v (33, 17) None: sample_fragment_float minified normalized true mipped false bytes 2048 a847996d95e5a51e1bff3d54de268cb6 00003a3d000000000000193f0000803f0000003e0080323e00e0533f0000803f
|
||||
420v (33, 17) None: sample_fragment minified normalized false mipped true bytes 1024 7c6b20b1d67796c385beb4688654e7fc d0290000c838003c003094319f3a003c9d39d038e73a003c50368433001e003c
|
||||
420v (33, 17) None: sample_fragment_float minified normalized false mipped true bytes 2048 a847996d95e5a51e1bff3d54de268cb6 00003a3d000000000000193f0000803f0000003e0080323e00e0533f0000803f
|
||||
420v (33, 17) None: sample_constexpr_linear bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) None: sample_constexpr_linear_float bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): read bytes 8984 c05e0a1298f5ab17dd0657f84a42e70b 310200000000000000003a3d0000000000801b3f0000803f0000000000000000
|
||||
420v (33, 17) Some("ITU_R_601_4"): nearest bytes 8984 c05e0a1298f5ab17dd0657f84a42e70b 310200000000000000003a3d0000000000801b3f0000803f0000000000000000
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_texels normalized false mipped false bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_texels_float normalized false mipped false bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment normalized false mipped false bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment_float normalized false mipped false bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_texels normalized true mipped false bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_texels_float normalized true mipped false bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment normalized true mipped false bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment_float normalized true mipped false bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_texels normalized false mipped true bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_texels_float normalized false mipped true bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment normalized false mipped true bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment_float normalized false mipped true bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment minified normalized false mipped false bytes 1024 7c6b20b1d67796c385beb4688654e7fc d0290000c838003c003094319f3a003c9d39d038e73a003c50368433001e003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment_float minified normalized false mipped false bytes 2048 a847996d95e5a51e1bff3d54de268cb6 00003a3d000000000000193f0000803f0000003e0080323e00e0533f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment minified normalized true mipped false bytes 1024 7c6b20b1d67796c385beb4688654e7fc d0290000c838003c003094319f3a003c9d39d038e73a003c50368433001e003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment_float minified normalized true mipped false bytes 2048 a847996d95e5a51e1bff3d54de268cb6 00003a3d000000000000193f0000803f0000003e0080323e00e0533f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment minified normalized false mipped true bytes 1024 7c6b20b1d67796c385beb4688654e7fc d0290000c838003c003094319f3a003c9d39d038e73a003c50368433001e003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_fragment_float minified normalized false mipped true bytes 2048 a847996d95e5a51e1bff3d54de268cb6 00003a3d000000000000193f0000803f0000003e0080323e00e0533f0000803f
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_constexpr_linear bytes 4488 198d45ed0c61a1f9cb900c0f3b4cb8dd e0290000ac38003cc0260000c938003c502d002eac39003cfa34fe35003c003c
|
||||
420v (33, 17) Some("ITU_R_601_4"): sample_constexpr_linear_float bytes 8976 359d9a95787e8c851ffb34026940f9f7 00003c3d000000000080153f0000803f0000d83c000000000020193f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): read bytes 8984 dc8ce62d5759f5010c508b3c056a9ef8 31020000000000000000783d0000000000a0233f0000803f0000000000000000
|
||||
420v (33, 17) Some("ITU_R_709_2"): nearest bytes 8984 dc8ce62d5759f5010c508b3c056a9ef8 31020000000000000000783d0000000000a0233f0000803f0000000000000000
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_texels normalized false mipped false bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_texels_float normalized false mipped false bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment normalized false mipped false bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment_float normalized false mipped false bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_texels normalized true mipped false bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_texels_float normalized true mipped false bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment normalized true mipped false bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment_float normalized true mipped false bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_texels normalized false mipped true bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_texels_float normalized false mipped true bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment normalized false mipped true bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment_float normalized false mipped true bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment minified normalized false mipped false bytes 1024 a38ce10483ccf40e779e40572ddf7303 a02b00000839003c602f3432bd3a003ca3391439ea3a003c9c365033801c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment_float minified normalized false mipped false bytes 2048 06e46d8fb51eaf823ec8da9aafb09ccf 0000743d000000000000213f0000803f0000ec3d0080463e00a0573f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment minified normalized true mipped false bytes 1024 a38ce10483ccf40e779e40572ddf7303 a02b00000839003c602f3432bd3a003ca3391439ea3a003c9c365033801c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment_float minified normalized true mipped false bytes 2048 06e46d8fb51eaf823ec8da9aafb09ccf 0000743d000000000000213f0000803f0000ec3d0080463e00a0573f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment minified normalized false mipped true bytes 1024 a38ce10483ccf40e779e40572ddf7303 a02b00000839003c602f3432bd3a003ca3391439ea3a003c9c365033801c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_fragment_float minified normalized false mipped true bytes 2048 06e46d8fb51eaf823ec8da9aafb09ccf 0000743d000000000000213f0000803f0000ec3d0080463e00a0573f0000803f
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_constexpr_linear bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("ITU_R_709_2"): sample_constexpr_linear_float bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): read bytes 8984 53bdbd39c8e6695b547ea0cd505689e9 31020000000000000000563d000000000040263f0000803f0000000000000000
|
||||
420v (33, 17) Some("ITU_R_2020"): nearest bytes 8984 53bdbd39c8e6695b547ea0cd505689e9 31020000000000000000563d000000000040263f0000803f0000000000000000
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_texels normalized false mipped false bytes 4488 e636e5fe279b7bc6d1f092ad39003873 a02a0000fc38003c802700001a39003c382de82eea39003ce034e836003c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_texels_float normalized false mipped false bytes 8976 d938b13c3f09a0dbb125b2bab4e941b1 0000543d0000000000801f3f0000803f0000f03c000000000040233f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment normalized false mipped false bytes 4488 e636e5fe279b7bc6d1f092ad39003873 a02a0000fc38003c802700001a39003c382de82eea39003ce034e836003c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment_float normalized false mipped false bytes 8976 d938b13c3f09a0dbb125b2bab4e941b1 0000543d0000000000801f3f0000803f0000f03c000000000040233f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_texels normalized true mipped false bytes 4488 e636e5fe279b7bc6d1f092ad39003873 a02a0000fc38003c802700001a39003c382de82eea39003ce034e836003c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_texels_float normalized true mipped false bytes 8976 d938b13c3f09a0dbb125b2bab4e941b1 0000543d0000000000801f3f0000803f0000f03c000000000040233f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment normalized true mipped false bytes 4488 e636e5fe279b7bc6d1f092ad39003873 a02a0000fc38003c802700001a39003c382de82eea39003ce034e836003c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment_float normalized true mipped false bytes 8976 d938b13c3f09a0dbb125b2bab4e941b1 0000543d0000000000801f3f0000803f0000f03c000000000040233f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_texels normalized false mipped true bytes 4488 e636e5fe279b7bc6d1f092ad39003873 a02a0000fc38003c802700001a39003c382de82eea39003ce034e836003c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_texels_float normalized false mipped true bytes 8976 d938b13c3f09a0dbb125b2bab4e941b1 0000543d0000000000801f3f0000803f0000f03c000000000040233f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment normalized false mipped true bytes 4488 e636e5fe279b7bc6d1f092ad39003873 a02a0000fc38003c802700001a39003c382de82eea39003ce034e836003c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment_float normalized false mipped true bytes 8976 d938b13c3f09a0dbb125b2bab4e941b1 0000543d0000000000801f3f0000803f0000f03c000000000040233f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment minified normalized false mipped false bytes 1024 260d4d8f2e4905479545002ce1c593d3 a02a00001c39003cc02f8c32c63a003ca0391939ec3a003c7036cc32001c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment_float minified normalized false mipped false bytes 2048 d6b7c118045d4297e0e73bf334106bcd 0000543d000000000080233f0000803f0000f83d0080513e00c0583f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment minified normalized true mipped false bytes 1024 260d4d8f2e4905479545002ce1c593d3 a02a00001c39003cc02f8c32c63a003ca0391939ec3a003c7036cc32001c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment_float minified normalized true mipped false bytes 2048 d6b7c118045d4297e0e73bf334106bcd 0000543d000000000080233f0000803f0000f83d0080513e00c0583f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment minified normalized false mipped true bytes 1024 260d4d8f2e4905479545002ce1c593d3 a02a00001c39003cc02f8c32c63a003ca0391939ec3a003c7036cc32001c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_fragment_float minified normalized false mipped true bytes 2048 d6b7c118045d4297e0e73bf334106bcd 0000543d000000000080233f0000803f0000f83d0080513e00c0583f0000803f
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_constexpr_linear bytes 4488 e636e5fe279b7bc6d1f092ad39003873 a02a0000fc38003c802700001a39003c382de82eea39003ce034e836003c003c
|
||||
420v (33, 17) Some("ITU_R_2020"): sample_constexpr_linear_float bytes 8976 d938b13c3f09a0dbb125b2bab4e941b1 0000543d0000000000801f3f0000803f0000f03c000000000040233f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): read bytes 8984 dc8ce62d5759f5010c508b3c056a9ef8 31020000000000000000783d0000000000a0233f0000803f0000000000000000
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): nearest bytes 8984 dc8ce62d5759f5010c508b3c056a9ef8 31020000000000000000783d0000000000a0233f0000803f0000000000000000
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_texels normalized false mipped false bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_texels_float normalized false mipped false bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment normalized false mipped false bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment_float normalized false mipped false bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_texels normalized true mipped false bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_texels_float normalized true mipped false bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment normalized true mipped false bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment_float normalized true mipped false bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_texels normalized false mipped true bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_texels_float normalized false mipped true bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment normalized false mipped true bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment_float normalized false mipped true bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment minified normalized false mipped false bytes 1024 a38ce10483ccf40e779e40572ddf7303 a02b00000839003c602f3432bd3a003ca3391439ea3a003c9c365033801c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment_float minified normalized false mipped false bytes 2048 06e46d8fb51eaf823ec8da9aafb09ccf 0000743d000000000000213f0000803f0000ec3d0080463e00a0573f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment minified normalized true mipped false bytes 1024 a38ce10483ccf40e779e40572ddf7303 a02b00000839003c602f3432bd3a003ca3391439ea3a003c9c365033801c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment_float minified normalized true mipped false bytes 2048 06e46d8fb51eaf823ec8da9aafb09ccf 0000743d000000000000213f0000803f0000ec3d0080463e00a0573f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment minified normalized false mipped true bytes 1024 a38ce10483ccf40e779e40572ddf7303 a02b00000839003c602f3432bd3a003ca3391439ea3a003c9c365033801c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_fragment_float minified normalized false mipped true bytes 2048 06e46d8fb51eaf823ec8da9aafb09ccf 0000743d000000000000213f0000803f0000ec3d0080463e00a0573f0000803f
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_constexpr_linear bytes 4488 82110e4cc0cb09001a46033a63127e2c 702b0000e938003c302800000739003c102da02edc39003cba349c36003c003c
|
||||
420v (33, 17) Some("SMPTE_240M_1995"): sample_constexpr_linear_float bytes 8976 9cdc47150e7b09628513fadb988de412 00006e3d0000000000201d3f0000803f0000063d0000000000e0203f0000803f
|
||||
420f (64, 32) None: read bytes 32776 b93b0f1f9dcfbb173753bf68e12dcfe4 0008000000000000000000000080a53e000000000000803f000000000080a13e
|
||||
420f (64, 32) None: nearest bytes 32776 b93b0f1f9dcfbb173753bf68e12dcfe4 0008000000000000000000000080a53e000000000000803f000000000080a13e
|
||||
420f (64, 32) None: sample_texels normalized false mipped false bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) None: sample_texels_float normalized false mipped false bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) None: sample_fragment normalized false mipped false bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) None: sample_fragment_float normalized false mipped false bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) None: sample_texels normalized true mipped false bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) None: sample_texels_float normalized true mipped false bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) None: sample_fragment normalized true mipped false bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) None: sample_fragment_float normalized true mipped false bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) None: sample_texels normalized false mipped true bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) None: sample_texels_float normalized false mipped true bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) None: sample_fragment normalized false mipped true bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) None: sample_fragment_float normalized false mipped true bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) None: sample_fragment minified normalized false mipped false bytes 4096 fb694247a5299379b367b0fa72ee8d67 002b46366027003c602c23380016003c303a6e395431003c013a3c30d234003c
|
||||
420f (64, 32) None: sample_fragment_float minified normalized false mipped false bytes 8192 49eb29767c0d460655c023d3069d5ed6 0000603d00c0c83e0000ec3c0000803f00008c3d0060043f0000c03a0000803f
|
||||
420f (64, 32) None: sample_fragment minified normalized true mipped false bytes 4096 fb694247a5299379b367b0fa72ee8d67 002b46366027003c602c23380016003c303a6e395431003c013a3c30d234003c
|
||||
420f (64, 32) None: sample_fragment_float minified normalized true mipped false bytes 8192 49eb29767c0d460655c023d3069d5ed6 0000603d00c0c83e0000ec3c0000803f00008c3d0060043f0000c03a0000803f
|
||||
420f (64, 32) None: sample_fragment minified normalized false mipped true bytes 4096 fb694247a5299379b367b0fa72ee8d67 002b46366027003c602c23380016003c303a6e395431003c013a3c30d234003c
|
||||
420f (64, 32) None: sample_fragment_float minified normalized false mipped true bytes 8192 49eb29767c0d460655c023d3069d5ed6 0000603d00c0c83e0000ec3c0000803f00008c3d0060043f0000c03a0000803f
|
||||
420f (64, 32) None: sample_constexpr_linear bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) None: sample_constexpr_linear_float bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): read bytes 32776 b93b0f1f9dcfbb173753bf68e12dcfe4 0008000000000000000000000080a53e000000000000803f000000000080a13e
|
||||
420f (64, 32) Some("ITU_R_601_4"): nearest bytes 32776 b93b0f1f9dcfbb173753bf68e12dcfe4 0008000000000000000000000080a53e000000000000803f000000000080a13e
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_texels normalized false mipped false bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_texels_float normalized false mipped false bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment normalized false mipped false bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment_float normalized false mipped false bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_texels normalized true mipped false bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_texels_float normalized true mipped false bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment normalized true mipped false bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment_float normalized true mipped false bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_texels normalized false mipped true bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_texels_float normalized false mipped true bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment normalized false mipped true bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment_float normalized false mipped true bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment minified normalized false mipped false bytes 4096 fb694247a5299379b367b0fa72ee8d67 002b46366027003c602c23380016003c303a6e395431003c013a3c30d234003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment_float minified normalized false mipped false bytes 8192 49eb29767c0d460655c023d3069d5ed6 0000603d00c0c83e0000ec3c0000803f00008c3d0060043f0000c03a0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment minified normalized true mipped false bytes 4096 fb694247a5299379b367b0fa72ee8d67 002b46366027003c602c23380016003c303a6e395431003c013a3c30d234003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment_float minified normalized true mipped false bytes 8192 49eb29767c0d460655c023d3069d5ed6 0000603d00c0c83e0000ec3c0000803f00008c3d0060043f0000c03a0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment minified normalized false mipped true bytes 4096 fb694247a5299379b367b0fa72ee8d67 002b46366027003c602c23380016003c303a6e395431003c013a3c30d234003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_fragment_float minified normalized false mipped true bytes 8192 49eb29767c0d460655c023d3069d5ed6 0000603d00c0c83e0000ec3c0000803f00008c3d0060043f0000c03a0000803f
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_constexpr_linear bytes 16384 abe6da33e5fb6c88a3c03ed62fd31377 5030e237882c003cd82d54378028003ca02cbc370018003ca8304d39801f003c
|
||||
420f (64, 32) Some("ITU_R_601_4"): sample_constexpr_linear_float bytes 32768 7d3ffa439b93a7a50bb97ffbcb4ebeed 00000a3e0040fc3e0000913d0000803f0000bb3d0080ea3e0000103d0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): read bytes 32776 e4b68f57cb7f9755b9702ac63e794283 00080000000000000000000000004c3e000000000000803f000000000000473e
|
||||
420f (64, 32) Some("ITU_R_709_2"): nearest bytes 32776 e4b68f57cb7f9755b9702ac63e794283 00080000000000000000000000004c3e000000000000803f000000000000473e
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_texels normalized false mipped false bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_texels_float normalized false mipped false bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment normalized false mipped false bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment_float normalized false mipped false bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_texels normalized true mipped false bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_texels_float normalized true mipped false bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment normalized true mipped false bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment_float normalized true mipped false bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_texels normalized false mipped true bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_texels_float normalized false mipped true bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment normalized false mipped true bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment_float normalized false mipped true bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment minified normalized false mipped false bytes 4096 d6b1d1191532fd1377402218bc74d24b 702a7e34a026003c402a6c360010003c333a4439a030003c663a8c32ca34003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment_float minified normalized false mipped false bytes 8192 82bbe0ca691fc75a2d6bcda0ee529b94 00004e3d00c08f3e0000d43c0000803f0000483d0080cd3e0000003a0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment minified normalized true mipped false bytes 4096 d6b1d1191532fd1377402218bc74d24b 702a7e34a026003c402a6c360010003c333a4439a030003c663a8c32ca34003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment_float minified normalized true mipped false bytes 8192 82bbe0ca691fc75a2d6bcda0ee529b94 00004e3d00c08f3e0000d43c0000803f0000483d0080cd3e0000003a0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment minified normalized false mipped true bytes 4096 d6b1d1191532fd1377402218bc74d24b 702a7e34a026003c402a6c360010003c333a4439a030003c663a8c32ca34003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_fragment_float minified normalized false mipped true bytes 8192 82bbe0ca691fc75a2d6bcda0ee529b94 00004e3d00c08f3e0000d43c0000803f0000483d0080cd3e0000003a0000803f
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_constexpr_linear bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("ITU_R_709_2"): sample_constexpr_linear_float bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): read bytes 32776 d82cbed20380a2656899d22e304fa7ed 0008000000000000000000000080633e000000000000803f000000000080593e
|
||||
420f (64, 32) Some("ITU_R_2020"): nearest bytes 32776 d82cbed20380a2656899d22e304fa7ed 0008000000000000000000000080633e000000000000803f000000000080593e
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_texels normalized false mipped false bytes 16384 24c7bbc5b98b7e4f651feb0462d31f6e 2c30aa36e02b003c902dee35e027003c382c26360000003c3c3082380000003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_texels_float normalized false mipped false bytes 32768 d08d32db86155f8d6fc1317e315d71bb 0080053e0040d53e00007c3d0000803f0000b23d00c0bd3e0000fc3c0000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment normalized false mipped false bytes 16384 24c7bbc5b98b7e4f651feb0462d31f6e 2c30aa36e02b003c902dee35e027003c382c26360000003c3c3082380000003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment_float normalized false mipped false bytes 32768 d08d32db86155f8d6fc1317e315d71bb 0080053e0040d53e00007c3d0000803f0000b23d00c0bd3e0000fc3c0000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_texels normalized true mipped false bytes 16384 24c7bbc5b98b7e4f651feb0462d31f6e 2c30aa36e02b003c902dee35e027003c382c26360000003c3c3082380000003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_texels_float normalized true mipped false bytes 32768 d08d32db86155f8d6fc1317e315d71bb 0080053e0040d53e00007c3d0000803f0000b23d00c0bd3e0000fc3c0000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment normalized true mipped false bytes 16384 24c7bbc5b98b7e4f651feb0462d31f6e 2c30aa36e02b003c902dee35e027003c382c26360000003c3c3082380000003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment_float normalized true mipped false bytes 32768 d08d32db86155f8d6fc1317e315d71bb 0080053e0040d53e00007c3d0000803f0000b23d00c0bd3e0000fc3c0000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_texels normalized false mipped true bytes 16384 24c7bbc5b98b7e4f651feb0462d31f6e 2c30aa36e02b003c902dee35e027003c382c26360000003c3c3082380000003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_texels_float normalized false mipped true bytes 32768 d08d32db86155f8d6fc1317e315d71bb 0080053e0040d53e00007c3d0000803f0000b23d00c0bd3e0000fc3c0000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment normalized false mipped true bytes 16384 24c7bbc5b98b7e4f651feb0462d31f6e 2c30aa36e02b003c902dee35e027003c382c26360000003c3c3082380000003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment_float normalized false mipped true bytes 32768 d08d32db86155f8d6fc1317e315d71bb 0080053e0040d53e00007c3d0000803f0000b23d00c0bd3e0000fc3c0000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment minified normalized false mipped false bytes 4096 fdf0b0a593970df9b9930de22c6cebbd c02ad2346026003cb02ba0360000003c313a24396830003c2c3a8431c634003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment_float minified normalized false mipped false bytes 8192 ecb152e64dd83de910b80e22327dad10 0000583d00409a3e0000cc3c0000803f0000763d0000d43e000000000000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment minified normalized true mipped false bytes 4096 fdf0b0a593970df9b9930de22c6cebbd c02ad2346026003cb02ba0360000003c313a24396830003c2c3a8431c634003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment_float minified normalized true mipped false bytes 8192 ecb152e64dd83de910b80e22327dad10 0000583d00409a3e0000cc3c0000803f0000763d0000d43e000000000000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment minified normalized false mipped true bytes 4096 fdf0b0a593970df9b9930de22c6cebbd c02ad2346026003cb02ba0360000003c313a24396830003c2c3a8431c634003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_fragment_float minified normalized false mipped true bytes 8192 ecb152e64dd83de910b80e22327dad10 0000583d00409a3e0000cc3c0000803f0000763d0000d43e000000000000803f
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_constexpr_linear bytes 16384 24c7bbc5b98b7e4f651feb0462d31f6e 2c30aa36e02b003c902dee35e027003c382c26360000003c3c3082380000003c
|
||||
420f (64, 32) Some("ITU_R_2020"): sample_constexpr_linear_float bytes 32768 d08d32db86155f8d6fc1317e315d71bb 0080053e0040d53e00007c3d0000803f0000b23d00c0bd3e0000fc3c0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): read bytes 32776 e4b68f57cb7f9755b9702ac63e794283 00080000000000000000000000004c3e000000000000803f000000000000473e
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): nearest bytes 32776 e4b68f57cb7f9755b9702ac63e794283 00080000000000000000000000004c3e000000000000803f000000000000473e
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_texels normalized false mipped false bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_texels_float normalized false mipped false bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment normalized false mipped false bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment_float normalized false mipped false bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_texels normalized true mipped false bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_texels_float normalized true mipped false bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment normalized true mipped false bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment_float normalized true mipped false bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_texels normalized false mipped true bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_texels_float normalized false mipped true bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment normalized false mipped true bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment_float normalized false mipped true bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment minified normalized false mipped false bytes 4096 d6b1d1191532fd1377402218bc74d24b 702a7e34a026003c402a6c360010003c333a4439a030003c663a8c32ca34003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment_float minified normalized false mipped false bytes 8192 82bbe0ca691fc75a2d6bcda0ee529b94 00004e3d00c08f3e0000d43c0000803f0000483d0080cd3e0000003a0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment minified normalized true mipped false bytes 4096 d6b1d1191532fd1377402218bc74d24b 702a7e34a026003c402a6c360010003c333a4439a030003c663a8c32ca34003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment_float minified normalized true mipped false bytes 8192 82bbe0ca691fc75a2d6bcda0ee529b94 00004e3d00c08f3e0000d43c0000803f0000483d0080cd3e0000003a0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment minified normalized false mipped true bytes 4096 d6b1d1191532fd1377402218bc74d24b 702a7e34a026003c402a6c360010003c333a4439a030003c663a8c32ca34003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_fragment_float minified normalized false mipped true bytes 8192 82bbe0ca691fc75a2d6bcda0ee529b94 00004e3d00c08f3e0000d43c0000803f0000483d0080cd3e0000003a0000803f
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_constexpr_linear bytes 16384 b2f3eb54c05a093c9cc0efde89524b02 f82f6436182c003c382da6351028003c602be6350010003c502f6f380016003c
|
||||
420f (64, 32) Some("SMPTE_240M_1995"): sample_constexpr_linear_float bytes 32768 5eb9ffb168a606bb982ab8e161177563 0000ff3d0080cc3e0000833d0000803f0000a73d00c0b43e0000023d0000803f
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,54 +0,0 @@
|
||||
//! The Vulkan platform's dynamic libraries (`MTLDynamicLibrary`): the runtime's (metal2vulkan's
|
||||
//! `dynamic_library.rs`), each made of a library the guest made (`newDynamicLibrary:error:`). A
|
||||
//! compute pipeline's kernel links them through its function descriptor's libraries
|
||||
//! ([`libraries`]): the preloaded in their order, and by install name the library each name loads,
|
||||
//! which the guest read from the file the name names. Creating the state loads from a file only an
|
||||
//! install name its search reaches that the descriptor does not hold, so a guest that names every
|
||||
//! install name its kernel's libraries and these depend on has the runtime read no file.
|
||||
|
||||
use crate::answer::{Policy, error_text, relay_gap, send};
|
||||
use crate::core::platform::types::NsErrorText;
|
||||
use crate::core::platform::values::DynamicLibrariesDesc;
|
||||
use crate::core::raise::RaiseResult;
|
||||
use crate::gpu::resource::VulkanLibrary;
|
||||
use crate::platform::{Obj, VulkanPlatform};
|
||||
use metal2vulkan::pipeline::DynamicLibraries;
|
||||
use metal2vulkan_runtime as rt;
|
||||
|
||||
/// `id<MTLDynamicLibrary>`.
|
||||
pub type VulkanDynamicLibrary = Obj<rt::DynamicLibrary>;
|
||||
|
||||
/// `newDynamicLibrary:error:` of `library` on `device`: the runtime's dynamic library, or the
|
||||
/// `NSError` of a library it refuses as one, as Metal refuses it (of another type, of no install
|
||||
/// name, or whose code reads a function constant). A library of another device, which no guest
|
||||
/// names, dies.
|
||||
pub(crate) fn new_dynamic_library(
|
||||
device: &rt::Device,
|
||||
library: &VulkanLibrary,
|
||||
) -> RaiseResult<Result<Option<VulkanDynamicLibrary>, NsErrorText>> {
|
||||
let sel = "newDynamicLibrary:error:";
|
||||
let made = send(sel, Policy::Dies, || {
|
||||
match device.new_dynamic_library(&library.raw) {
|
||||
Ok(raw) => Ok(Ok(raw)),
|
||||
Err(e @ rt::Error::Compile(metal2vulkan::error::Error::InvalidDescriptor(_))) => {
|
||||
Ok(Err(error_text(&e)))
|
||||
}
|
||||
Err(e) if relay_gap(sel, &e, None) => Ok(Err(error_text(&e))),
|
||||
Err(e) => Err(e),
|
||||
}
|
||||
})?;
|
||||
Ok(made.map(|raw| Some(Obj::new(raw))))
|
||||
}
|
||||
|
||||
/// The runtime's dynamic libraries of a whole value's: the preloaded in their order, and each
|
||||
/// install name with the library it loads.
|
||||
pub(crate) fn libraries(l: &DynamicLibrariesDesc<VulkanPlatform>) -> DynamicLibraries {
|
||||
let mut out = DynamicLibraries::new();
|
||||
for library in &l.preloaded {
|
||||
out = out.with_preloaded(library.preloaded_library());
|
||||
}
|
||||
for (name, library) in &l.loaded {
|
||||
out = out.with_loaded(name.clone(), library.preloaded_library());
|
||||
}
|
||||
out
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
551 [33, 5, 1]: [Color(0, 0, [3, 1, 0], [20, 3, 1], [1.0, 0.5, 0.25, 1.0], 70)] bytes 660 36169414e4b18182391dbd4211d28d85 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
550 [37, 3, 1]: [Bytes(0, 0, [2, 1, 0], [9, 5, 1], [9, 10, 11])] bytes 444 5901c0e1f712a73f8bdf57d847280b29 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, format 187 bytes 256 ec0239088ef98557662312b3e6bf30e2 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
case 1, format 198 bytes 256 ec0239088ef98557662312b3e6bf30e2 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
case 2, format 212 bytes 256 ec0239088ef98557662312b3e6bf30e2 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
case 3, format 218 bytes 256 ec0239088ef98557662312b3e6bf30e2 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, format 222 bytes 256 ec0239088ef98557662312b3e6bf30e2 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
case 1, format 236 bytes 256 ec0239088ef98557662312b3e6bf30e2 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, format 241 bytes 60 1aab09622c073d50baedb194a2045b4e eeee010201020102eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
the XR sRGB edges' bits [13826281284244078592, 13826281283707207680, 13826253723975811072, 13826253723438940160, 13826226258196824064, 13826226257659953152, 13826198885833375744, 13826198885296504832, 13826171606885466112, 13826171606348595200, 13826144421353095168, 13826144420816224256, 13826117329236262912, 13826117328699392000, 13826090331071840256, 13826090330534969344, 13826063425786085376, 13826063425249214464, 13826022371267444736, 13826022370730573824, 13825968933284347904, 13825968932747476992, 13825915681595457536, 13825915681058586624, 13825862615663902720, 13825862615127031808, 13825809734952812544, 13825809734415941632, 13825757039999057920, 13825757039462187008, 13825704530265767936, 13825704529728897024, 13825652205216071680, 13825652204679200768, 13825600065386840064, 13825600064849969152, 13825548110241202176, 13825548109704331264, 13825496339779158016, 13825496339242287104, 13825444753463836672, 13825444752926965760, 13825393351295238144, 13825393350758367232, 13825342132736491520, 13825342132199620608, 13825291098324467712, 13825291097787596800, 13825240247522295808, 13825240246985424896, 13825189579793104896, 13825189579256233984, 13825139095136894976, 13825139094600024064, 13825088793553666048, 13825088793016795136, 13825038675043418112, 13825038674506547200, 13824988739069280256, 13824988738532409344, 13824938985094381568, 13824938984557510656, 13824889413655592960, 13824889413118722048, 13824840024216043520, 13824840023679172608, 13824790816775733248, 13824790816238862336, 13824741790797791232, 13824741790260920320, 13824692946282217472, 13824692945745346560, 13824644283229011968, 13824644282692141056, 13824595801101303808, 13824595800564432896, 13824547499362222080, 13824547498825351168, 13824499379085508608, 13824499378548637696, 13824451439197421568, 13824451438660550656, 13824403679161090048, 13824403678624219136, 13824356099513384960, 13824356098976514048, 13824308699717435392, 13824308699180564480, 13824261479773241344, 13824261479236370432, 13824214439143931904, 13824214438607060992, 13824167577829507072, 13824167577292636160, 13824120895829966848, 13824120895293095936, 13824074392608440320, 13824074392071569408, 13824028068164927488, 13824028067628056576, 13823981922499428352, 13823981921962557440, 13823935955075072000, 13823935954538201088, 13823890165354987520, 13823890164818116608, 13823844553876045824, 13823844553339174912, 13823799120101376000, 13823799119564505088, 13823753864030978048, 13823753863494107136, 13823708785664851968, 13823708785127981056, 13823663883929255936, 13823663883392385024, 13823619158824189952, 13823619158287319040, 13823574610886524928, 13823574610349654016, 13823530239579389952, 13823530239042519040, 13823486044365914112, 13823486043829043200, 13823442025782968320, 13823442025246097408, 13823398182756810752, 13823398182219939840, 13823354515824312320, 13823354515287441408, 13823311023911731200, 13823311023374860288, 13823267707555938304, 13823267707019067392, 13823224566220062720, 13823224565683191808, 13823181599904104448, 13823181599367233536, 13823138808608063488, 13823138808071192576, 13823096191795068928, 13823096191258198016, 13823053748928249856, 13823053748391378944, 13823011480544477184, 13823011480007606272, 13822969386106880000, 13822969385570009088, 13822927465078587392, 13822927464541716480, 13822885717996470272, 13822885717459599360, 13822844143786786816, 13822844143249915904, 13822802742449537024, 13822802741912666112, 13822761514521591808, 13822761513984720896, 13822720459466080256, 13822720458929209344, 13822679576209260544, 13822679575672389632, 13822638865824874496, 13822638865288003584, 13822598327239180288, 13822598326702309376, 13822557960452177920, 13822557959915307008, 13822517765463867392, 13822517764926996480, 13822477741737377792, 13822477741200506880, 13822437889272709120, 13822437888735838208, 13822398207532990464, 13822398206996119552, 13822358697055092736, 13822358696518221824, 13822319356765274112, 13822319356228403200, 13822280187200405504, 13822280186663534592, 13822241187823616000, 13822241187286745088, 13822202358634905600, 13822202358098034688, 13822163698560532480, 13822163698023661568, 13822125208137367552, 13822125207600496640, 13822086887365410816, 13822086886828539904, 13822048735707791360, 13822048735170920448, 13822010752627638272, 13822010752090767360, 13821972938661822464, 13821972938124951552, 13821935292736602112, 13821935292199731200, 13821897815388848128, 13821897814851977216, 13821860505544818688, 13821860505007947776, 13821823363741384704, 13821823363204513792, 13821786389978546176, 13821786389441675264, 13821749583182561280, 13821749582645690368, 13821712943890300928, 13821712943353430016, 13821676471028023296, 13821676470491152384, 13821640165132599296, 13821640164595728384, 13821604025667158016, 13821604025130287104, 13821568052631699456, 13821568052094828544, 13821517235115524096, 13821517234578653184, 13821445953153925120, 13821445952617054208, 13821375001904807936, 13821375001367937024, 13Line truncated
|
||||
26 bytes 2652 9c4d6cdf4369cc2cfc47cd8a03e187b2 00000080803f80bf803e8947807f80ff807f010001800000807f80ff01000100
|
||||
66 bytes 5304 8f91e1b36a96f46a6a21f0c43a126665 000000800080803f803f80bf80bf803e803e89478947807f807f80ff80ff807f
|
||||
116 bytes 10608 e8346205cdfcbdcb6d592fa65f7ac9b5 00000080803f80bf0080803f80bf803e803f80bf803e894780bf803e8947807f
|
||||
553 bytes 81968 51238c2528a67ecb2c9570834d740b1e 400040000000006080004000400000608000800040000060c000800080000060
|
||||
555 bytes 20504 95b51c49750f8fa4844764e8766aed0d 01040000020410000208100003082000030c2000040c30000410300005104000
|
||||
300 bytes 136 41cd4471f0ecc6ed64841148fb9f1127 000040000040800040804d00804dff004dff0000ff00ff0000ff0000ff000100
|
||||
301 bytes 136 f6829fccfea4b4b17b27dae7e4fe97b8 000089000089bc0089bc9500bc95ff0095ff0000ff00ff0000ff0000ff000a00
|
||||
302 bytes 136 1b5177159bd35193de51244d6c93e21e 00002000002040002040260040267f00267f81007f817f00817f81007f810000
|
||||
303 bytes 136 292e3b703853af7930b28b1ab0fc1c0d 0000000000000000000000000000010000010000010001000001000001000000
|
||||
304 bytes 136 f64bc43bb16febcc920ca14891baafad 000000000000000000000000000001000001ff0001ff0100ff01ff0001ff0000
|
||||
313 bytes 272 de36f92dc802cbbb4f80a0e6c72fa56e 0000000000000000000000000000000000000000000000000000000001000000
|
||||
314 bytes 272 ee7d47845b6f6cb30d65cec882758276 0000000000000000000000000000000000000000000000000000000001000000
|
||||
315 bytes 272 6ad50baa8fb219f07df137ded23379c5 0000008000340038008000340038cd3400340038cd34003c0038cd34003c00bc
|
||||
323 bytes 544 cab675ca6a25c68dbd89468041624b35 0000000000000000000000000000000000000000000000000000000000000000
|
||||
324 bytes 544 ccf19820085aa8c277b5d901e6355bf0 0000000000000000000000000000000000000000000000000000000000000000
|
||||
325 bytes 544 9659d7b686dff11c01975644aa792661 00000000000000800000803e0000003f000000800000803e0000003f9a99993e
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, format 130 bytes 192 65a4eedf881641ac75a75b7b45b2d5ad 0102030405060708010203040506070801020304050607080102030405060708
|
||||
case 1, format 130 bytes 384 401e95d07ba4b76c78c9e64ee93d1fcd eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, format 260 bytes 85 315384c25aadc2d9f9c8aa05d568d5fe eeeeeeee0000803f0000803feeeeeeeeeeeeeeeeeeeeeeee0000803f0000803f
|
||||
case 1, format 260 bytes 80 408a4ab1203ea123c06febea95ae0aed eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
-45
@@ -1,45 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
format 552 64x64 of 7 levels level 0 bytes 32768 30dcbb8c0c6126e575db1d324f01a32b 0021c011c0490060800140eb002e408f00030087005e0068c082006040f40060
|
||||
format 552 64x64 of 7 levels level 1 xz 8192 0
|
||||
format 552 64x64 of 7 levels level 2 xz 2048 8192
|
||||
format 552 64x64 of 7 levels level 3 xz 512 10240
|
||||
format 552 64x64 of 7 levels level 4 hex 128 4078c081c081808f80810085c07b4094807f4086407c8092007e007c807f408d807e80860089c092007f008200824097407fc07cc0820094c086807f8081c092c07f00824081408c807ec0824084c092c080c0848083408b007bc07e40804093c07ac07a8088c08dc07ec07b007a4091407d00794082808bc086407f4084808d
|
||||
format 552 64x64 of 7 levels level 5 hex 32 c07dc08300828093c080c07f00808091007ec07e0082808f0080007f8082c08d
|
||||
format 552 64x64 of 7 levels level 6 hex 8 407f408080818090
|
||||
format 552 45x29 of 6 levels level 0 bytes 10440 aef59378a2782451fe6c6d0b61df915f 0038401a800800600010c09b002200604007806ac0ee807a00f3c02400920060
|
||||
format 552 45x29 of 6 levels level 1 xz 2464 10752
|
||||
format 552 45x29 of 6 levels level 2 xz 616 13216
|
||||
format 552 45x29 of 6 levels level 3 hex 120 8074c07b008f408c4092008fc098408ec085c06e0086407a4099806d007a40848085808d8079c088c07d80760071c095005cc0860061c09b0056409cc05e0078808d007d0093c093c0830077408100910089c076c081808dc074008c0085008700984052806cc0840064808140a400930080406fc0960087
|
||||
format 552 45x29 of 6 levels level 4 hex 16 8064c0820065409a008b807b808e0093
|
||||
format 552 45x29 of 6 levels level 5 hex 8 c077407fc0798096
|
||||
format 552 256x256 of 9 levels level 0 bytes 524288 0d9efbf67a6d87157d599e262a1d48c3 004f002400c80060c01e404a0015c07e800bc04d807e408c006440e8c0304087
|
||||
format 552 256x256 of 9 levels level 1 xz 131072 13832
|
||||
format 552 256x256 of 9 levels level 2 xz 32768 144904
|
||||
format 552 256x256 of 9 levels level 3 xz 8192 177672
|
||||
format 552 256x256 of 9 levels level 4 xz 2048 185864
|
||||
format 552 256x256 of 9 levels level 5 xz 512 187912
|
||||
format 552 256x256 of 9 levels level 6 hex 128 808000800080c08fc081c07e407f808f807e807fc08080900080c07f00810090c080407f8080c08f8081407e407f4090c0814080807fc08f007f807fc07f8090c07d0080c07fc08f0081807e407f0090c07ec07f80804090407d807ec07d8090008100804080008f40808080407f40904080807d80810090007e007f8080408d
|
||||
format 552 256x256 of 9 levels level 7 hex 32 0081007fc07fc08fc07fc07f408040900080c07fc07fc08f807ec07e0080808f
|
||||
format 552 256x256 of 9 levels level 8 hex 8 c07f407f0080c08f
|
||||
format 554 64x64 of 7 levels level 0 bytes 16384 1af092c301612b2506da86f30a3ae21b 2f66da2dde87a9f7432dc9f90f0925f5ad0f1f30430e099f52d507adb3cedeaf
|
||||
format 554 64x64 of 7 levels level 1 xz 4096 188424
|
||||
format 554 64x64 of 7 levels level 2 xz 1024 192520
|
||||
format 554 64x64 of 7 levels level 3 hex 256 d7b568e5e125a7de179679da1f6e08e026e277df4e4628e0d57dd7e1035ae8dfe8f137e2c2e1d7de14de07e30422c8e0503698def30178d81aa698e243a218ddf75516e1074ad7dfef8d57e0d51198dd336ed7dde909f8e1cdd957dcf58117e0efc1c7e2f601f8ded31de8e1e07947e15a0ad8dc2b1669dfe14937e3e43927e133eab7defd8117e1c81147e0c83927e2efa9e7df0f5ad8df31f2e8dd0ffe67de188677dd226a46df004ec9e13c5ee8dde8f128dc435e48dd0252b8df04f677e1d7f536def32178de5f9228e1e921b7e1f7b928e21c36b8e1ed3568df0d7e98dfe76d17e1da5987e543b2a8dc385e88de0aa627e1333628e3100e38e28f8688de
|
||||
format 554 64x64 of 7 levels level 4 hex 64 d9ed47e1138298df2e16a8dd0d4658e0f959a7e0decd47e0282608dfe27937e01a5627dff3fd87e00a5648de114e68dfe379d7e0313288df143208e22652f8df
|
||||
format 554 64x64 of 7 levels level 5 hex 16 f1e577e011fe57df08c207e0154ae8df
|
||||
format 554 64x64 of 7 levels level 6 hex 4 08fef7df
|
||||
format 554 45x29 of 6 levels level 0 bytes 5220 9906317683ef7e3830b3cb4300909a07 307d8937894618e1c63c3da809fd5f6cd4126c13f49eb4b17047a071826c74d6
|
||||
format 554 45x29 of 6 levels level 1 xz 1232 193544
|
||||
format 554 45x29 of 6 levels level 2 xz 308 194776
|
||||
format 554 45x29 of 6 levels level 3 hex 60 f0a5e7e4c4a9a8e183b126e8137ee7e051e257dff1f5c7e0cf41b8e4d246f9d536d26add19d227db4caa78de525607df918526dfdb51f8e0bbf907db
|
||||
format 554 45x29 of 6 levels level 4 hex 8 d82db8e32f12dadc
|
||||
format 554 45x29 of 6 levels level 5 hex 4 031e49e0
|
||||
format 554 256x256 of 9 levels level 0 bytes 262144 9b6e3b62d7ea39b20885a059e985fd6f 30953840340686cc484bb25803f099e4fb16b8f6a52e60c38eb83a35520a0bfe
|
||||
format 554 256x256 of 9 levels level 1 xz 65536 195084
|
||||
format 554 256x256 of 9 levels level 2 xz 16384 260620
|
||||
format 554 256x256 of 9 levels level 3 xz 4096 277004
|
||||
format 554 256x256 of 9 levels level 4 xz 1024 281100
|
||||
format 554 256x256 of 9 levels level 5 hex 256 011258e0f73188e0f4c907e0110698df07f267e1f93148e0fd0d48e106eeb7dffed947df02fa57e009f207df053608e0f9b1f7dffa3158e000d257e1021688df0c0a08e0f82d88de02fe97defcf927df052ae8df0316a8dffae547e0f91508e0fe05d8dff1d997dffd1db8df06cab7def5c907df01caf7df00a2e7dff8c1e7df0202d8dfe6f567e0020ab8e0fff997dffc4518e005faf7df081648e0071288df050218e0ee0188dff6d547dff70108e107fa37df0a2a88e00be2e7e009f2a7e0ff0578df14c647e108bab7e00002f8df0d02a8e005fe07e0f829e8de000ed8df131e88e0fed197e0fb0978dff7dde7deff2d98e0fa29d8dfecd927dff7f577e0
|
||||
format 554 256x256 of 9 levels level 6 hex 64 fe0518e005fea7dffd0178e001fa77e0fd0588df00fa07df00f6a7dffbd907e0f7fdf7dffcf527e0041af8df09fe57e009ee77e0ffe9c7df031648e0f70198df
|
||||
format 554 256x256 of 9 levels level 7 hex 16 000298dffef127e0fff117e0020a08e0
|
||||
format 554 256x256 of 9 levels level 8 hex 4 00fef7df
|
||||
BIN
Binary file not shown.
-9
@@ -1,9 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, format 130 bytes 40 82ecd9199001eda9d140f3cb98543f62 eeeeeeeeeeeeeeee0102030405060708ff8040ffff8040ffff8040ffff8040ff
|
||||
case 1, format 152 bytes 32 5873e0a99f587d00f23bf307c702f95d 003c00380034003c003c00380034003c4142434445464748494a4b4c4d4e4f50
|
||||
case 2, format 204 bytes 32 9160229fe2205c1dea2e66ad1214a039 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee01020304050102030405010203040501
|
||||
case 3, format 180 bytes 32 e10bb98a613b7058d5f349c3a2721e2d eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee01020304050607080102030405060708
|
||||
case 4, format 170 bytes 8 1f1206bf386598cfecc541ed53713e45 ffffffffffffffff
|
||||
case 5, format 240 bytes 32 8c8f7fef0fde587baa7f6d31a6034b3a eeee010201020102eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee71727172
|
||||
case 6, format 253 bytes 16 4e9df9cd1abc47b75ed1a00e1539bc89 eeeeeeeeee5a5aeeee5a5aeeffffffff
|
||||
case 7, format 260 bytes 32 8a5b08108b27183f2206fa6f0356d620 eeeeeeee0000803f0000803feeeeeeee0000003f0000803f0000803feeeeeeee
|
||||
-305
@@ -1,305 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
format 80 256x256 of 9 levels, usage 1 level 0 bytes 262144 310d42675256c0ff95fef99b14210901 12fe867f1da06a9c259c2658bfe61bac49409a7c8dfc6cf4fb89c4f7b4b6649f
|
||||
format 80 256x256 of 9 levels, usage 1 level 1 bytes 65536 d016104df7dd5973b2e7f5b725125b86 39b15b9b7a894174748b86a0b3967fa77786d1a9518d875b98a17d59b5749481
|
||||
format 80 256x256 of 9 levels, usage 1 level 2 bytes 16384 7bacc2fddd4fdc0a4169839bb82ccc83 61a14a83968e98848c86906e9f9a8e5d7080927e887c8a8487638474818d8f76
|
||||
format 80 256x256 of 9 levels, usage 1 level 3 bytes 4096 abec0fd4e3abb0337af3d230b56c60dd 7f8684808386926782798b8480868a787a818b70786f828c7182868d6e737270
|
||||
format 80 256x256 of 9 levels, usage 1 level 4 bytes 1024 33a1ad971a0a791d205581797c5e2fea 7f85827a8080847f7f7a87837a808282867c8081828180807d8583787d808580
|
||||
format 80 256x256 of 9 levels, usage 1 level 5 bytes 256 121ffabea8326920c868ac63787f6446 8182817e7f7d827f827e807e7e80807c817c817f7e817d7f838480847f828281
|
||||
format 80 256x256 of 9 levels, usage 1 level 6 bytes 64 65ef158f6c7219e1a37cf56f52203bef 8080807f7f80817d7f7f7f807f8281807f80808180807e807f8080808080807f
|
||||
format 80 256x256 of 9 levels, usage 1 level 7 bytes 16 f5be92b9b35bf772c55cb7b24d63f543 8080807f7f8080807f7f807f80818080
|
||||
format 80 256x256 of 9 levels, usage 1 level 8 bytes 4 62f119cc16757277b806e776d4d4003d 80808080
|
||||
format 80 2048x32 of 12 levels, usage 1 level 0 bytes 262144 35f6311355f1b10896c3d658a1f4d289 12153588c75fd887a8ab9a08b9d955237044e75f3e8c180619fa5ebb8354fbc6
|
||||
format 80 2048x32 of 12 levels, usage 1 level 1 bytes 65536 62bf03a3b8457ba3b6c7fe01807b15a9 8f6885867975617b787a6953647a93b8929266c8ac72c84749a9a660a0489f74
|
||||
format 80 2048x32 of 12 levels, usage 1 level 2 bytes 16384 2063dd2013b0332c447d08bc197bd5b3 7f7f6c94647e7e9d9b7d8994808c907e8d81739b779170657d8870777a7f6d83
|
||||
format 80 2048x32 of 12 levels, usage 1 level 3 bytes 4096 b071af9baa79a1f711bd9722795296ae 7383798c8c86787f77847378767f777374806a76807770857c6f807788808987
|
||||
format 80 2048x32 of 12 levels, usage 1 level 4 bytes 1024 a852d82dd35e7016adcd8a35c029cca1 808480867c827c7b7d817279817d837e7c85757f8178847b8286877e807a8084
|
||||
format 80 2048x32 of 12 levels, usage 1 level 5 bytes 256 a9cd517f7df3c3a1d72cf0e1c9aa4862 7f7f7e7f7e7d7f7e7f817e847f808282807e828179807e8281837f817e808080
|
||||
format 80 2048x32 of 12 levels, usage 1 level 6 bytes 128 6b86206698d3fdc7fe56c28d8f9d9571 7f7e7f7f7f8080837d7f8081808180807f81807e80808182807f7f817f7f8180
|
||||
format 80 2048x32 of 12 levels, usage 1 level 7 bytes 64 879a3c0a74d1f837d67c9da1095eda55 7f7f80817f80808080808080807f80807f7f7e7f807f807f7f807e80807f7f82
|
||||
format 80 2048x32 of 12 levels, usage 1 level 8 bytes 32 5e72205f7271193950a33108f9dc87e4 7f80808080808080807f7f7f80807f81808080807f8080807f808080807f8080
|
||||
format 80 2048x32 of 12 levels, usage 1 level 9 bytes 16 6cc64691d0cdfbcb5d34cbfbaec0513a 8080808080807f808080808080808080
|
||||
format 80 2048x32 of 12 levels, usage 1 level 10 bytes 8 c8e15163846596b922ed118bd94d08ed 8080808080808080
|
||||
format 80 2048x32 of 12 levels, usage 1 level 11 bytes 4 62f119cc16757277b806e776d4d4003d 80808080
|
||||
format 80 32x2048 of 12 levels, usage 1 level 0 bytes 262144 13377de466f68362cb3eaf584e1b6e0b 122ce492721f46712aba0eb7b3cd909a97483342ef1cc419376bf78052f291ee
|
||||
format 80 32x2048 of 12 levels, usage 1 level 1 bytes 65536 66af34bb5776179060c0b0e0002b40fd 5c7367928aac93748b50707e909a898485cc7ea2864e8a9f2b5b675d5ec1739c
|
||||
format 80 32x2048 of 12 levels, usage 1 level 2 bytes 16384 5c5a1bdeb2fe2c00661a51feb7660715 71928270856a6c8f6da06ca361936d827c5984928979a060857d8a807b648889
|
||||
format 80 32x2048 of 12 levels, usage 1 level 3 bytes 4096 bfeeaed9e4f04748b13f6d7a15c44b74 7e84847e7596738681788f817e7983807b797f877f7a838c8571877982837d86
|
||||
format 80 32x2048 of 12 levels, usage 1 level 4 bytes 1024 93c1c861dae27e6057ded71ba5695aa3 7b837e86817985807e8184877c8b7d8182837d837f7f7e7e8180847582857c80
|
||||
format 80 32x2048 of 12 levels, usage 1 level 5 bytes 256 bf61a45cceb7e951bc06bd647817b6ab 7e82818381827f7e7f807f817d7e80808083817f8183817d7f857e80807e847c
|
||||
format 80 32x2048 of 12 levels, usage 1 level 6 bytes 128 431347d5ac8f2dc60560981875e36e56 808280807e7f80808083817e8081817e7f807f7e817f817f827f8083807e7d80
|
||||
format 80 32x2048 of 12 levels, usage 1 level 7 bytes 64 6cf49116d82dda39636a7ac0f1b07b57 7f8080808082817e8080807f817f7f8180807d807f7f7f8080808080807f807d
|
||||
format 80 32x2048 of 12 levels, usage 1 level 8 bytes 32 d95e0997cda05a98c550a0d9abb61caf 8081807f8080808080807e808080807f808080807f8080808080808080808080
|
||||
format 80 32x2048 of 12 levels, usage 1 level 9 bytes 16 6cc64691d0cdfbcb5d34cbfbaec0513a 8080808080807f808080808080808080
|
||||
format 80 32x2048 of 12 levels, usage 1 level 10 bytes 8 c8e15163846596b922ed118bd94d08ed 8080808080808080
|
||||
format 80 32x2048 of 12 levels, usage 1 level 11 bytes 4 62f119cc16757277b806e776d4d4003d 80808080
|
||||
format 80 1024x12 of 11 levels, usage 1 level 0 bytes 49152 cbe1cd48d32d1f87d0fd7bae0cb98596 1243939b1ddeb55cacc88366adc1ca12bf4c8025a0ac6f2b55dc914422902816
|
||||
format 80 1024x12 of 11 levels, usage 1 level 1 bytes 12288 f0588b53dec0bfa04c818efe231f2dc0 6e587f7cb5b3c863a880776778c2475c7d8a7c415d7a769d7b4f7b60ba89a458
|
||||
format 80 1024x12 of 11 levels, usage 1 level 2 bytes 3072 21f9ba24eafa0010911518fb74f5f821 847f947b89957d64629181817f788f57885d7a797a6a8c768471aa6f9f718c71
|
||||
format 80 1024x12 of 11 levels, usage 1 level 3 bytes 512 12107ff299048d19ba15151b6d3652b9 95937f7b818899877682809971799379808c7391827f87916d6d7a8c77819273
|
||||
format 80 1024x12 of 11 levels, usage 1 level 4 bytes 256 4c1cb14d9483ed2bdf82cf89222bbe4e 8b8d8c81747e898981857d91727786807f8d7c7f827f7d797c857c8972827a8b
|
||||
format 80 1024x12 of 11 levels, usage 1 level 5 bytes 128 e87d2dab82e5de8bdd9cbb6e6b32eb3a 80858a857a7e818880867d7c77837b8a758286797e7e8e77808481817c888480
|
||||
format 80 1024x12 of 11 levels, usage 1 level 6 bytes 64 cbd39e8c2d2be9dba3def27ada381d5e 7d8185867c847c837a808a787e8682807e867a8083817b83807e7f7e83897a85
|
||||
format 80 1024x12 of 11 levels, usage 1 level 7 bytes 32 e1bc31c280254326a176db5549bec687 7d8280847c83867c80837b8181837d81847f7f84807e818080807d7e8382807e
|
||||
format 80 1024x12 of 11 levels, usage 1 level 8 bytes 16 bab6681722ca1d22de101857cec853d9 7d82838080837c81827f808281817f7e
|
||||
format 80 1024x12 of 11 levels, usage 1 level 9 bytes 8 622058bf0a659b6c7659ab74444df47d 7f82808081808080
|
||||
format 80 1024x12 of 11 levels, usage 1 level 10 bytes 4 62f115404b757277b806e776d2f5d7fa 80818080
|
||||
format 80 4096x1 of 13 levels, usage 1 level 0 bytes 16384 6b7e1f18ae7ba78cdc6d2c2fef2ca8f1 125b43a5c79e23462ed7f715a7b40589e64fcc08513c1b3e734d2a08f12ebe3d
|
||||
format 80 4096x1 of 13 levels, usage 1 level 1 bytes 8192 83ed7ab5fd6704815e1126037c7bcf67 6d7d33766bc57e4f9b467423b23e742380388e707e2bbf5f6a6a439175e975d9
|
||||
format 80 4096x1 of 13 levels, usage 1 level 2 bytes 4096 f92a02b3c4981d2698f20927e3fc9d4a 6ca15963a64274237f32a66870a95cb56fd8b078bab14753308095b190b17793
|
||||
format 80 4096x1 of 13 levels, usage 1 level 3 bytes 2048 4d942f922e7dd9897ebe72d0b690ec80 89726743786e818e94c47c66609886a27d7c789371986a7ca5889a908d9dac7c
|
||||
format 80 4096x1 of 13 levels, usage 1 level 4 bytes 1024 f832a029c7b64cbc9f385b51954f8ed2 807074697aae8184778a71879992a3867ca97a926371a4717578927485929480
|
||||
format 80 4096x1 of 13 levels, usage 1 level 5 bytes 512 94835457c972a17431c4802d92a9f3df 7d8f7b77888e8a86708d8f817d85937a7b7989987462737387a09067747c7786
|
||||
format 80 4096x1 of 13 levels, usage 1 level 6 bytes 256 f5e3959fbcd5b9befc97a9a52714d695 828e827f7789917e786e7e857e8e8377728c8a7c7f818b797b82817e88808b6d
|
||||
format 80 4096x1 of 13 levels, usage 1 level 7 bytes 128 1bca6403c76396401cfabf3c03f9a908 7d8b897f7b7e807e79868a7b81818676777d817d7c807c7e788180768a7b7e87
|
||||
format 80 4096x1 of 13 levels, usage 1 level 8 bytes 64 c39e15eeffcc96f06bcb8838fa6fa956 7c84847f7d8388797a7f7f7e817e7f7f82807e81847f7b897e837a7b7f82827e
|
||||
format 80 4096x1 of 13 levels, usage 1 level 9 bytes 32 22bfc331b10ebdcf3051dd99eefd1418 7d83867c7e7f7f7f83807d857f827e7d828481847f7f807f8284817e83808382
|
||||
format 80 4096x1 of 13 levels, usage 1 level 10 bytes 16 0cf2f7895237435b62e6f8a496de9a01 7e81827e81817e818081808182828280
|
||||
format 80 4096x1 of 13 levels, usage 1 level 11 bytes 8 b50680c67c6596b91ea4f3c50084b621 8081808081818180
|
||||
format 80 4096x1 of 13 levels, usage 1 level 12 bytes 4 62f115404b757277b806e776d2f5d7fa 80818080
|
||||
format 80 1000x3 of 10 levels, usage 1 level 0 bytes 12000 fa5fbe6b5eac26edc72b736bf7effbcd 1272f2ae725d9131b1e66bc5a1a83f000d5318eb02ccc65091bec4cdc0cc5465
|
||||
format 80 1000x3 of 10 levels, usage 1 level 1 bytes 2000 ed04d51458559902d30fd83b14dff05d 903f70369bd8807a56a18f4a92d22f1084529f9b7879c9da58678f238469de88
|
||||
format 80 1000x3 of 10 levels, usage 1 level 2 bytes 1000 f477314474305409d7fa0a2077ff47d8 958b785874b95f2d7e66b4ba6e68b6565d7588c053a4b78058835b6941a993ee
|
||||
format 80 1000x3 of 10 levels, usage 1 level 3 bytes 500 c29f7b934d7be0a0dd335cf6f98786fd 84a26c437667b588588c9fa04d9677ab686d5e8f767868575366818d6e8a66c5
|
||||
format 80 1000x3 of 10 levels, usage 1 level 4 bytes 248 96a87eb7e862611e82d6d3847cc669a3 7d84916652918aa670736371627a72ac8f846c777f7d97729b656c777d989f81
|
||||
format 80 1000x3 of 10 levels, usage 1 level 5 bytes 124 6acfaec0e8ce71064faf762bd510ae7d 688a8d8669776b8e878081758c7f857c78828d7b957375867c838c6380737988
|
||||
format 80 1000x3 of 10 levels, usage 1 level 6 bytes 60 b53b829de1184ac485cfa52233c360e2 69807b8a8a7f83798b787d827f777e7e6e836f8e7c7370779583858f7567887a
|
||||
format 80 1000x3 of 10 levels, usage 1 level 7 bytes 28 3b44adb8a7f2846579a7c0f1febb0f87 7c7f808082777e7f7a75707a7567887a87737386757a7c717b7c7985
|
||||
format 80 1000x3 of 10 levels, usage 1 level 8 bytes 12 ac860589706fd4d111a3c2a154f2467a 807a7f7f7567887a777b7b78
|
||||
format 80 1000x3 of 10 levels, usage 1 level 9 bytes 4 69cb479c1d757277b806e992c0396677 7567887a
|
||||
format 80 256x256 of 9 levels, usage 3 level 0 bytes 262144 7868b3d3c0ff047b16619c70913f6ca8 1289a1b81d1c001b33f4df749b9c7a78345765ceb25c7262af2f5d91906aeb8d
|
||||
format 80 256x256 of 9 levels, usage 3 level 1 bytes 65536 8805cc95b912d2ad0154aef0ffd48166 443062598986a868517298947073a1635c6d419f5084b68a3c9e8792c05f955f
|
||||
format 80 256x256 of 9 levels, usage 3 level 2 bytes 16384 0090b802845907ccf054f636cf33f5f0 716688726b818c6c79767ba181668e7e8e68827b727d8d787e8b767d7b80807d
|
||||
format 80 256x256 of 9 levels, usage 3 level 3 bytes 4096 37130387983f4e645c7fbfe22ccb3d00 6c7d8e738f7785877d71738285887c818480847a838a7f7b7c89758280788678
|
||||
format 80 256x256 of 9 levels, usage 3 level 4 bytes 1024 775ba4d23589a95fb53c1c2e1e85b32e 80768c7f8080818484847f797f7b7c7f7e787e7f7f7e7e7c7b7d847d827a7e80
|
||||
format 80 256x256 of 9 levels, usage 3 level 5 bytes 256 2c84ac8fd8ca722306cba0e47d073056 807d84808181807f7f807c80807f827e84807a82807f7d8281808680817e7a7d
|
||||
format 80 256x256 of 9 levels, usage 3 level 6 bytes 64 205171fff3c03ebdce8ccff3b89ef96d 8080808081807f8080807c80807f807e7f8180807f817f80827e80827f807f7e
|
||||
format 80 256x256 of 9 levels, usage 3 level 7 bytes 16 64d40da910cc2e8ab53f05ebb51b5963 80808080807f7f80807f7f7f7f7f807f
|
||||
format 80 256x256 of 9 levels, usage 3 level 8 bytes 4 62f11be0e1757277b806e776d52d5480 807f8080
|
||||
format 70 256x256 of 9 levels, usage 1 level 0 bytes 262144 7d8cad0b88fe6a0a4d0c6ecd551a0236 12a051c1c7dc6e06b5035323958fb4ef5b5bb1b163ec1d75cea0f6555f0881b5
|
||||
format 70 256x256 of 9 levels, usage 1 level 1 bytes 65536 e0a03a637f1432a121b80a21eb57696e 658f6378cc51a45b76ad7072a46e866cacb3947d85835e3c629d899158a69f6f
|
||||
format 70 256x256 of 9 levels, usage 1 level 2 bytes 16384 878deaae942bf13eba457852fd2ccf73 89798a7a8371627092a58f64679f8974897ea4706e9d705b817c768999969b62
|
||||
format 70 256x256 of 9 levels, usage 1 level 3 bytes 4096 33bddd54c688553e48b4a2a4d27f65bf 7b776d7f759381747f808e6a81877a747d837e8a7e8072808d7d7b767c877e73
|
||||
format 70 256x256 of 9 levels, usage 1 level 4 bytes 1024 5309ec1f155b641c44507aa4502f77fc 7880787b7e83867680827d8083807f7a807a80877e80808b82827c7e777f807c
|
||||
format 70 256x256 of 9 levels, usage 1 level 5 bytes 256 942f3b1098891286bc50012bd1dba24a 7f7e7f7e807e8281807d8085807e7f7c8181808081807d80838080807f7e7f7e
|
||||
format 70 256x256 of 9 levels, usage 1 level 6 bytes 64 35315288f67e09a35b9a3b22285fbdb2 7f7f80807f7d808280807f7f817f7e7f7f7f8080807f80807f7f7e7f807f8081
|
||||
format 70 256x256 of 9 levels, usage 1 level 7 bytes 16 db6addc61a6e1bd0ac69d485f03edf78 7f7f8080807f7f8080808080807f8080
|
||||
format 70 256x256 of 9 levels, usage 1 level 8 bytes 4 62f11be0e1757277b806e776d52d5480 807f8080
|
||||
format 70 2048x32 of 12 levels, usage 1 level 0 bytes 262144 7ab792134bcae5009af939a6be7e5c4d 12b700cb729bddf13712c7d38f83ef66835ffe94147cc987ec12901a2ea618dc
|
||||
format 70 2048x32 of 12 levels, usage 1 level 1 bytes 65536 49811b55a86976f44c2c39813701ce2f 6b8f49a66b389a8c6aa597b77f4655997181548a9f9cac929178458d80585856
|
||||
format 70 2048x32 of 12 levels, usage 1 level 2 bytes 16384 edb2a4a962d69558d35371d878b069db 8b777b9175667b909a96727f8e515f767397787685a5797c746f8b8f7b727ba5
|
||||
format 70 2048x32 of 12 levels, usage 1 level 3 bytes 4096 6fd8f70b071f7de5e64452a0309068cc 7e6b858c887170707f907078867b828e878c93707776887e7c7481756e788081
|
||||
format 70 2048x32 of 12 levels, usage 1 level 4 bytes 1024 c2251110e061757c4dd8b612c374ea3c 80747b7d84867a817f82847d7d797e7c848484807d7f838179808477827e7f7d
|
||||
format 70 2048x32 of 12 levels, usage 1 level 5 bytes 256 38385643b1fc46d650278ad153480eda 80807c7f7c7e7e7f7e7f837f7e80807a81817f7c797d8281817f818283837e7d
|
||||
format 70 2048x32 of 12 levels, usage 1 level 6 bytes 128 454c6bafa3fc13a22d07c84dfc0f2baf 7e7f7d7f7e80817d7d7f807f82818080807e807f807f817f807e80807f7f7f7e
|
||||
format 70 2048x32 of 12 levels, usage 1 level 7 bytes 64 06adbe0f5df57db05aa447131352258d 7e807f7e80808080807f807f807f807f7f807f8080807f807f8080808080807f
|
||||
format 70 2048x32 of 12 levels, usage 1 level 8 bytes 32 c3bde1997e1c6e60996b4f72afd890d5 7f80807f807f807f80807f808080808080807f80807f80808080808080807f80
|
||||
format 70 2048x32 of 12 levels, usage 1 level 9 bytes 16 2e850d99e8c9b4c53e5759aefda3c408 8080807f808080808080808080808080
|
||||
format 70 2048x32 of 12 levels, usage 1 level 10 bytes 8 c8e15163846596b922ed118bd94d08ed 8080808080808080
|
||||
format 70 2048x32 of 12 levels, usage 1 level 11 bytes 4 62f119cc16757277b806e776d4d4003d 80808080
|
||||
format 70 32x2048 of 12 levels, usage 1 level 0 bytes 262144 61150e8ed135ec1af7bb8f16f2dee0eb 12cfafd41c5b4bdbb9213c82897729deaa634a77c50c75990a8329defe44ae04
|
||||
format 70 32x2048 of 12 levels, usage 1 level 1 bytes 65536 92fc7f5d18219b8a2d2cfae275310e33 75b0a8a788654ac07c468a7f888f91627551658c7a7d90896ec0545c4273aa5b
|
||||
format 70 32x2048 of 12 levels, usage 1 level 2 bytes 16384 06868e53a6ed77e232cb5f3ba8af7705 7a867a8c72628e817a5c7290577f6e557e73927d99948169779f8461a7898a80
|
||||
format 70 32x2048 of 12 levels, usage 1 level 3 bytes 4096 4136fd14fbc3b9316fe50a3bb7203c28 85768783787573828e8689728d8c816c85717d7d747b8583797d7a7d89898186
|
||||
format 70 32x2048 of 12 levels, usage 1 level 4 bytes 1024 d657d2bb6e0fdca17ab0e7d4048ab20b 7e767f81878681787b807e80847f8c83827c7d7f8f827e8481787d827b8b8680
|
||||
format 70 32x2048 of 12 levels, usage 1 level 5 bytes 256 721ccd2e79e2ad0b8793626caf99876b 817f827f83808081807e7f807b807e837f80827f82847f807d81807f80837e80
|
||||
format 70 32x2048 of 12 levels, usage 1 level 6 bytes 128 20c429a40dfa9d78d1ff5b1790964dd1 828081807e7f7f81808280807f827f807f81807e7e7e8080807e81808083807d
|
||||
format 70 32x2048 of 12 levels, usage 1 level 7 bytes 64 c3da45fdfad5c40d33c00d3b21db66e6 80808080808280807f80807f8080807f807f7f80818080807f8080807e808080
|
||||
format 70 32x2048 of 12 levels, usage 1 level 8 bytes 32 750cb314785717061e3a6b4da6a882f6 808180808080807f808080807f80808080808080808080808080807f80807f80
|
||||
format 70 32x2048 of 12 levels, usage 1 level 9 bytes 16 217c7bae321babc2cceda0f348951a4d 80808080808080808080808080808080
|
||||
format 70 32x2048 of 12 levels, usage 1 level 10 bytes 8 c8e15163846596b922ed118bd94d08ed 8080808080808080
|
||||
format 70 32x2048 of 12 levels, usage 1 level 11 bytes 4 62f119cc16757277b806e776d4d4003d 80808080
|
||||
format 70 1024x12 of 11 levels, usage 1 level 0 bytes 49152 9b0dd14e9b298e87c59e51d46b25e9e2 13e65edec71ab9c63c2fb031836a6455d167975a769c20ac28f4c3a2cde2452c
|
||||
format 70 1024x12 of 11 levels, usage 1 level 1 bytes 12288 429cc49abbf98af3e01391473785ca82 5aa7889c7c3daa738f5c958b99c66f4e7066cc458182888c6f77b794704c9db4
|
||||
format 70 1024x12 of 11 levels, usage 1 level 2 bytes 3072 2d3ece0140d42c6756ef01232a2aea94 696d8a85928b7b6f786a835562709c7f7c928f617f5f989d898f66918399796b
|
||||
format 70 1024x12 of 11 levels, usage 1 level 3 bytes 512 f2dec0bdcc7e4eef8048f4f61681674a 94768681708475708c7672746a96777a71816f7b8981728b8c9784a5828b9476
|
||||
format 70 1024x12 of 11 levels, usage 1 level 4 bytes 256 54230ff1a6d33e43049d2d5d28be531b 827d7e797b8675777d81718387918c8d7b817e7e838e807b807b8b867c808b82
|
||||
format 70 1024x12 of 11 levels, usage 1 level 5 bytes 128 6ffb79bf6d52e3083688b64cd8ec8c53 7f817a7882897f887f877f7d7e7e8b8480888284837d857d80818484807b8477
|
||||
format 70 1024x12 of 11 levels, usage 1 level 6 bytes 64 992b72dc23330d5357e8c2514e16dee0 80857d807f82858081828380807e847e8780857e7d827d8080857e8384787a74
|
||||
format 70 1024x12 of 11 levels, usage 1 level 7 bytes 32 aacd818e715e63d8bb2d24ec43eb50ad 808381808080837f8281817f827f7c7c838181807f837d7b7f83807c8480847f
|
||||
format 70 1024x12 of 11 levels, usage 1 level 8 bytes 16 968a08b14826a7bea665c16547205a7b 8081828082807f7e81827f7e8181827e
|
||||
format 70 1024x12 of 11 levels, usage 1 level 9 bytes 8 aaf297408c6596b3de326aa824d0cb45 8180807f8181807e
|
||||
format 70 1024x12 of 11 levels, usage 1 level 10 bytes 4 62e9a3a0c1757277b806e77488781bf9 8180807f
|
||||
format 70 4096x1 of 13 levels, usage 1 level 0 bytes 16384 e436be2d88da394c9c2c87b90e2cb7ac 13fd0ee772da28b0be3e24e17d5e9eccf86be33d272dccbe46655c679c80db53
|
||||
format 70 4096x1 of 13 levels, usage 1 level 1 bytes 8192 b207768a4c50327f451a5e328eec6ab7 43eb1bcb9d4e61d68f4cd77e71739b5d5f38972e2b47986ba263b58499d785a6
|
||||
format 70 4096x1 of 13 levels, usage 1 level 2 bytes 4096 0868db77c3864032c3b3570c70f38e1c 709c3ed08060b96e4540974d9d9d9d9549949e76708e8d737bce4bb59fc63c5f
|
||||
format 70 4096x1 of 13 levels, usage 1 level 3 bytes 2048 f0549c94d61df8b2ebaf7ee4ae64b5e1 787e7c9f716f9a715d9195758dca448a8d9f6f577b9c798186719278758f6788
|
||||
format 70 4096x1 of 13 levels, usage 1 level 4 bytes 1024 52ba861abaec9c1c7a18a67e51ff5ade 75778b8875ad6d80849d746c7e807d80897c926090887188bd8072826a7a717c
|
||||
format 70 4096x1 of 13 levels, usage 1 level 5 bytes 512 017e67db1e194650d9af269637141b08 75927c84818e79768c828174937d727f7f8081736787a46886747d8069877b8d
|
||||
format 70 4096x1 of 13 levels, usage 1 level 6 bytes 256 5466630289901d8e80abc5ac3cc5f13a 7b907b7d8f807a7a7383926e787e7c868373798776718681817c7d8282797688
|
||||
format 70 4096x1 of 13 levels, usage 1 level 7 bytes 128 2c910e74737127a0c741db0679ab0a8c 85887b7c7680877a7d728084817b7a8586798f81808a7c7c7c807a7d7d8a817d
|
||||
format 70 4096x1 of 13 levels, usage 1 level 8 bytes 64 add88b4c980b21cfaa77defd871fc14d 7e84817b7f777d848381857f7d857e7d7c857a7a81837a857883797b79828285
|
||||
format 70 4096x1 of 13 levels, usage 1 level 9 bytes 32 b286d48196aa8575250bf031147c1401 7f7e7f808083817e7f847a8079827e807f807f7f82827f7b7d80847e83838082
|
||||
format 70 4096x1 of 13 levels, usage 1 level 10 bytes 16 de56db88382473561454dc0a582a2427 8080807f7c837c8080817f7d80818280
|
||||
format 70 4096x1 of 13 levels, usage 1 level 11 bytes 8 bd91d47895659b760498732605982f14 7e817e808081807f
|
||||
format 70 4096x1 of 13 levels, usage 1 level 12 bytes 4 699b9d7d6b757277b806e983c8bf8bd2 7f817f80
|
||||
format 70 1000x3 of 10 levels, usage 1 level 0 bytes 12000 98254e2ac7b5ac11cdd40194d3717537 1314bdf11c99969b404d98907852d8441f6f2f20d8bd77d064d6f62b6c1f717b
|
||||
format 70 1000x3 of 10 levels, usage 1 level 1 bytes 2000 9f1630da7933d53db230ce66313097f8 6fd5586fbd5c562f4c92898e30806534bf529eeead4987543980e322637c6376
|
||||
format 70 1000x3 of 10 levels, usage 1 level 2 bytes 1000 3aaeaaa5adb69f0938d17e11e1e7f1dc 9698574f3e897761b64e92a14e7ea34cd1909a6ca3a6bb6d86a1a0a8706d55b8
|
||||
format 70 1000x3 of 10 levels, usage 1 level 3 bytes 500 29ce0c22f0bbc82cdcce66ca6e192ab3 6a90675882669a77ba9baa6d7b877bb06f92706f667a77a5b38e9d6ab0765a62
|
||||
format 70 1000x3 of 10 levels, usage 1 level 4 bytes 248 7b99c10633782d57f4fcb6ea207ce5e2 767b8168999191906a85748cb1817866639c906c6067848a656b7d86858a65a2
|
||||
format 70 1000x3 of 10 levels, usage 1 level 5 bytes 124 2dbe90f460274cdd9e2e00dbf9a54d14 8786897c8d83767962818a7b757b71946e868f7c8c7d9372837f6a9372778c80
|
||||
format 70 1000x3 of 10 levels, usage 1 level 6 bytes 60 02723ebed00ec1dfddca3bb8cff788c6 8a847f7a6d7d7b8a828092757779838587629882878a7f9c82636f9882817295
|
||||
format 70 1000x3 of 10 levels, usage 1 level 7 bytes 28 8c55d42ca4d6fe17109e9634bc0f5220 79807d837a7b87808784839882817295838878887f837d87867f867c
|
||||
format 70 1000x3 of 10 levels, usage 1 level 8 bytes 12 0ce7a635d9810ed05c35e174ea17b599 7a7d84818281729581828083
|
||||
format 70 1000x3 of 10 levels, usage 1 level 9 bytes 4 63048666a4757277b806e77d44ec6495 82817295
|
||||
format 70 256x256 of 9 levels, usage 3 level 0 bytes 262144 cec6b326446d57d8a2cc251acfc7bc2a 132c6cfac7580485c25b0c3f724513bb47727c03894d23e382478ff03bbd08a3
|
||||
format 70 256x256 of 9 levels, usage 3 level 1 bytes 65536 f264f03dd7523628faa0e55eff628ecc 714e6ab65b4e4b8d54548266618b6968515a8373857b8dab849a548a6391a08d
|
||||
format 70 256x256 of 9 levels, usage 3 level 2 bytes 16384 f90e7317611b45caabd8a76903cfdabc 6a6d7898698477786f858a7769897a958786a47d877e737e78a4877273796d7a
|
||||
format 70 256x256 of 9 levels, usage 3 level 3 bytes 4096 9cec3fd66954714fceda001f323fc687 757d7b8976748c857d787f787689747e6f6a937c79828e8684757e8a76857b83
|
||||
format 70 256x256 of 9 levels, usage 3 level 4 bytes 1024 6d6214d5ac23f7c20b14a2908f24ba10 7d78808180837f7f777a8a7f8380777f807a807c828980827a807d838389807d
|
||||
format 70 256x256 of 9 levels, usage 3 level 5 bytes 256 73e32e4bac300c5613fffdaf3f97e21b 7f807f807d7c807e807f817d7f837e81807e7f7f7e7f857d81827e7e807f8083
|
||||
format 70 256x256 of 9 levels, usage 3 level 6 bytes 64 5407e9e93a159ffbc3ab48f30906975a 7f7f7f80807f807f807f807e7f807f817f7f80817f807f7d7f7e8180807e7e7f
|
||||
format 70 256x256 of 9 levels, usage 3 level 7 bytes 16 f5d29af685075c5e5a785949d19c1dab 7f7f807f807f808080808080807f807f
|
||||
format 70 256x256 of 9 levels, usage 3 level 8 bytes 4 62f11be0e1757277b806e776d52d5480 807f8080
|
||||
format 90 256x256 of 9 levels, usage 1 level 0 bytes 262144 372f7aa0ec4bfd84b7c2e1aea148a381 13431c0371187370456a80ef6c394d326e76c8e63addcff5a0b828b40a5b9ecb
|
||||
format 90 256x256 of 9 levels, usage 1 level 1 bytes 65536 9dec447fac1d6db66b2cf99b5c30aa1f 926de7659e5986a179d156a41686ca61626196a17b79f65dea59daa87a19e35c
|
||||
format 90 256x256 of 9 levels, usage 1 level 2 bytes 16384 f2152616334b8a7dbc4e25f7882b3a35 f26137a1d2d527a4a95517a20ec688a3e149695e523ee961fbf5875e026205a6
|
||||
format 90 256x256 of 9 levels, usage 1 level 3 bytes 4096 fbedab3fbebc4580668949e214c98ff5 f7f1579ee3f997a2165ef8a20e2637a0ee41e9a02d9ab79ff9f928a1f6a137a3
|
||||
format 90 256x256 of 9 levels, usage 1 level 4 bytes 1024 0bd729ded73650086feaf93d297cd930 010a98a00c9287a1120ad89ff3a158a2fdc9179fdf5d88a1fb1118a0016a58a0
|
||||
format 90 256x256 of 9 levels, usage 1 level 5 bytes 256 f27849cd2250e4ee0febda5245b312b9 fffd97a0001ec8a0f9fd479ffb1138a0ffb507a00b12f8a0f2b1a7a00716b8a0
|
||||
format 90 256x256 of 9 levels, usage 1 level 6 bytes 64 2a1b0fa8fda60046b843ec57d84c4918 fde1d79ffef9a79fffcd47a000ee27a001ee879f020ea89f051ad8a009fee79f
|
||||
format 90 256x256 of 9 levels, usage 1 level 7 bytes 16 46e70acf7c8a0167b7462effe502c6a7 00f6a79f03f647a000fae79f00fad79f
|
||||
format 90 256x256 of 9 levels, usage 1 level 8 bytes 4 66a7ed69cb757277b806e89bc604d340 01fae79f
|
||||
format 90 2048x32 of 12 levels, usage 1 level 0 bytes 262144 be9602f4e27529cfeb7fbe30d40b6d1e 135acb0d1cd7e15ac779f49e662d88aa957a15c9eb6d7a08be29c278daf935f2
|
||||
format 90 2048x32 of 12 levels, usage 1 level 1 bytes 65536 f3466d0ffb8aee86aa3fafbf6e6d4bbe c6b508679f7d975d9b920a4b5b52976acfae869c9385095e5805689be0664998
|
||||
format 90 2048x32 of 12 levels, usage 1 level 2 bytes 16384 586fb31f607b9119f98061c86727e034 e9513866267e275a1a2ed89d7d26a99d68de86a123baa99aab25789d7de61897
|
||||
format 90 2048x32 of 12 levels, usage 1 level 3 bytes 4096 deed46a4db4d052cc193c8d8afee841d 044a68611162289c472e979bf781d79ceb7d779dbf5917a0ebd907a1176298a0
|
||||
format 90 2048x32 of 12 levels, usage 1 level 4 bytes 1024 7cef1c20fe9adf224d0eaab89b986600 0032a89f2ca6579ed9b9a79e00e227a0fbc5e7a0fb0958a11696479e06e637a1
|
||||
format 90 2048x32 of 12 levels, usage 1 level 5 bytes 256 a527b3cf8ae86b356c9add0917989540 0b0e189ffaada79f04fa97a007e257a0f5e9e79ef3f5f79ffc11f89ff4f9279f
|
||||
format 90 2048x32 of 12 levels, usage 1 level 6 bytes 128 0c75c4f16de3bf502354dfc2d52582c2 02de679f05ee77a0f4f1779ff805989f043258a00602489ff901689ffbf5279f
|
||||
format 90 2048x32 of 12 levels, usage 1 level 7 bytes 64 af09f66c6efb89dea81b82c0ff1ba375 03e6f79ff6fd879f051ad89ffafd479f05fe07a00402f89ffd05c89f0012e89f
|
||||
format 90 2048x32 of 12 levels, usage 1 level 8 bytes 32 4be98268a61cfc9828efcce2869e647d fdf1c79f000a989f040208a0ff09d89f0302f89f020218a0fdfd07a00202f89f
|
||||
format 90 2048x32 of 12 levels, usage 1 level 9 bytes 16 693ffdc261991297507744ee933d5b83 fffdb79f0106f89f020208a0000208a0
|
||||
format 90 2048x32 of 12 levels, usage 1 level 10 bytes 8 5eeb3a3ad165995bd976206daecac9e5 0002d89f010208a0
|
||||
format 90 2048x32 of 12 levels, usage 1 level 11 bytes 4 66ad2deff5757277b806e89d29e05b86 0002f89f
|
||||
format 90 32x2048 of 12 levels, usage 1 level 0 bytes 262144 5a0db9d4fc10458b8a41b81ada98490a 13717a16c7974f454987694d6020c221bc7e61ac9cfd261adc9a5b3da997cb1a
|
||||
format 90 32x2048 of 12 levels, usage 1 level 1 bytes 65536 101425597d808a06726b12e35fb38cb3 0e6ea95bc7ddc45b2eba25600086d95f255608a62eee5a24b125866aa6a5989a
|
||||
format 90 32x2048 of 12 levels, usage 1 level 2 bytes 16384 059d89fa1912e69951d4d4b7a2cec2d6 047aa95d2f1ac89f18baa661dd6d86a4b0dad69fa98169a21822a59ec3ad279a
|
||||
format 90 32x2048 of 12 levels, usage 1 level 3 bytes 4096 21b975d599915c62a207e2552306352a 0d1a399df75547a2ecfd38a1f725a79e04c2379f1d02c8a13f7e679d30ae979e
|
||||
format 90 32x2048 of 12 levels, usage 1 level 4 bytes 1024 f01a7fd1e87227811d1840926b183d12 090e18a014d6f79eed51f89de5e577a1edfd07a03e9ab7a0114a58a003f2b79f
|
||||
format 90 32x2048 of 12 levels, usage 1 level 5 bytes 256 9438f9d036dc43b357627808aaeadad2 fc05a89f10f637a00bf257a01126089f04e2a7a0f939f89e021ac89f0bea27a1
|
||||
format 90 32x2048 of 12 levels, usage 1 level 6 bytes 128 6363f39206755d54bb605e0e0086d53e 06fef79f0e0ab89fff0dd89f060278a0f20db89f011e78a0fd01989f0422b89f
|
||||
format 90 32x2048 of 12 levels, usage 1 level 7 bytes 64 e7fbca3ed5ced98cdb2d04f1ae671c78 0a02d89f020628a0fa1518a00012a89f06f2e79f060e38a000e607a0fef9d79f
|
||||
format 90 32x2048 of 12 levels, usage 1 level 8 bytes 32 16b435c5fa7b7f7d8bf66beb53ac6b1b 060208a0fd11e89f060208a0fff1f79f040218a0fffdf79ffe05f89f011238a0
|
||||
format 90 32x2048 of 12 levels, usage 1 level 9 bytes 16 46cf87acd8f4550dbdcbadb3c7bff635 010af89f02fa07a0010208a0000a18a0
|
||||
format 90 32x2048 of 12 levels, usage 1 level 10 bytes 8 c0bd819088659956abe11a78f4773220 010208a0000608a0
|
||||
format 90 32x2048 of 12 levels, usage 1 level 11 bytes 4 66ad2f5270757277b806e89d2aba82cf 000208a0
|
||||
format 90 1024x12 of 11 levels, usage 1 level 0 bytes 49152 4949c2e2810daaccbb42b1f619ebf1de 138829207156be2fcb96ddfd5a14fd98e382ae8f4d8dd12cfa0cf50178356242
|
||||
format 90 1024x12 of 11 levels, usage 1 level 1 bytes 12288 7d1824226e954e2ce794131e906b17a2 86b51a5b4389c8a3b679b65e3a09d44fe2015ca9e64997aca31e7899a6d11690
|
||||
format 90 1024x12 of 11 levels, usage 1 level 2 bytes 3072 8965186be15e1bf566da36df75b8e157 adcdd79efb41765def81f99c040a499b10ca389a25d278a43ffea960f751999d
|
||||
format 90 1024x12 of 11 levels, usage 1 level 3 bytes 512 24824831959998eca3b34ac866db4541 0a2638a126fa86a3fc59e79c2b9ec7a2923d18a0e041a89d1532e7a445ae78a4
|
||||
format 90 1024x12 of 11 levels, usage 1 level 4 bytes 256 2d541741065aff6d96559d6afc893751 188e67a2137ed79fb93dd89e2df2a7a4e64d789f00da67a41292f6a2220618a1
|
||||
format 90 1024x12 of 11 levels, usage 1 level 5 bytes 128 82cdc425d90d9b9fd37bb4656145fa83 158617a1f315b8a1f311e8a11a4e07a234d697a0ef4d27a20b56f89b0f7e57a0
|
||||
format 90 1024x12 of 11 levels, usage 1 level 6 bytes 64 806929b361d2c3e6e73ff62dd7c7b5e5 04ce67a106aef7a1119257a10dea279e0f3a589efb81779ff8eda79df9e187a0
|
||||
format 90 1024x12 of 11 levels, usage 1 level 7 bytes 32 a04322d0a889a4f38282a14609443e98 05bea7a10fbec79f05dee79ef9e9179fe33938a0f2dd47a1eeb5e79efd3528a0
|
||||
format 90 1024x12 of 11 levels, usage 1 level 8 bytes 16 f4fc25008794ae106e0039d46ba71c55 0abeb7a0ffe5f79eea09b8a0f6f5879f
|
||||
format 90 1024x12 of 11 levels, usage 1 level 9 bytes 8 f2081078406599457e7a429f02a8200e 04d2d79ff00118a0
|
||||
format 90 1024x12 of 11 levels, usage 1 level 10 bytes 4 6609afd862757277b806e86aeb11f5c2 fae9f79f
|
||||
format 90 4096x1 of 13 levels, usage 1 level 0 bytes 16384 35c511b3727b4d1029f8de68b0e98408 13a0d9291c152c1a4ea551ac540837100b86fa72fd1d7d3f187d8ec548d3f869
|
||||
format 90 4096x1 of 13 levels, usage 1 level 1 bytes 8192 293fff2179247023d70e2a9552ddd6eb 97dc0a22d158445e04d23b7930aacb97be39216cd9e5e9965bdd28f7bf4518f4
|
||||
format 90 4096x1 of 13 levels, usage 1 level 2 bytes 4096 80ce4cbaaebcb4b78dd64ce3dce3fcf4 b49827601abe7ba8cb8d85a18d9198f5e39188a4e4aa57a246de059a6edd3b9a
|
||||
format 90 4096x1 of 13 levels, usage 1 level 3 bytes 2048 851c00770c368462a62a2f48e3bd3b79 67ad49a4ac0d97ab641e78a3dadd189a5f0267a9c6e2099867dab59fbc41989e
|
||||
format 90 4096x1 of 13 levels, usage 1 level 4 bytes 1024 1d88659ed84fec661b51985a06dca398 895df8a71f7ec89e9272b8a0110e279f57de159be021fa994806f8a0bcf177a1
|
||||
format 90 4096x1 of 13 levels, usage 1 level 5 bytes 512 5da0f58d296d9dd8b9fe6a8ceee37d63 d46d68a351bef79f1b02889a02fe37a129a238a0c0fd179bdc8df79b5c2af8a4
|
||||
format 90 4096x1 of 13 levels, usage 1 level 6 bytes 256 0b3a236c477c94d20b256b6dedeba182 1216a8a10e02e89df54da89d1cde77a013eac79cf3c158a0088a489cb16189a0
|
||||
format 90 4096x1 of 13 levels, usage 1 level 7 bytes 128 c29f9e3d9e18f29d8c11be14dbeca57f 100ac89f0816189f0356889eddf5689e0ee216a0de2d28a1fe9577a2161618a2
|
||||
format 90 4096x1 of 13 levels, usage 1 level 8 bytes 64 29e9ee583bc62ea38b710f7306f8cd2a 0c0e789ff0a5789ef68597a00ad647a20c2218a0071ec79ff59d17a00e5637a1
|
||||
format 90 4096x1 of 13 levels, usage 1 level 9 bytes 32 0328f981d65954518511915dd748bf56 fe59f89e00ae67a1099ef79f017aa7a023d2979f01d2e79f0bf2b7a0ee15d89e
|
||||
format 90 4096x1 of 13 levels, usage 1 level 10 bytes 16 779126f3fc9dcf44ecba7d9e0e0ad8d0 ff0128a0058a47a012d2c79ffd01c89f
|
||||
format 90 4096x1 of 13 levels, usage 1 level 11 bytes 8 1a92def5836599632b3510095948a2b9 02c637a007eac79f
|
||||
format 90 4096x1 of 13 levels, usage 1 level 12 bytes 4 668e198b4e757277b806e8937945a294 04da07a0
|
||||
format 90 1000x3 of 10 levels, usage 1 level 0 bytes 12000 1943dc3a0c3aa6513ef32e31bd881f98 13b78833c7d59a04d0b4c55b4efb7287328a4755aead285136ee288a17718e91
|
||||
format 90 1000x3 of 10 levels, usage 1 level 1 bytes 2000 63e63cf0682127d51bbbd95bbc48c7e3 4cee39485edeb4e24102fdd24d2d9b57fb51a7a2e499c44d9999b820420ee763
|
||||
format 90 1000x3 of 10 levels, usage 1 level 2 bytes 1000 fbdc956bbda54c4b79f987881874473f 55667795c7154c95eff53598edd55762476d66a8f529c39af63ca7a91d7254a3
|
||||
format 90 1000x3 of 10 levels, usage 1 level 3 bytes 500 66676bfd5dfd2fd8fc5a129427a14e90 0ebe6995eee5469d9ecd94a189d985a6b5d9189e95de77a53659158ed481379d
|
||||
format 90 1000x3 of 10 levels, usage 1 level 4 bytes 248 34c738cd21b0590793b4dd2bae5d9978 fe496899935925a42e5218a28e89769611d6189ca395479b93e126a11196a8a1
|
||||
format 90 1000x3 of 10 levels, usage 1 level 5 bytes 124 b2e9293f116a62b2c2070210e2d746cd c8d1c69ede6d479cda35b89bd2b967a1fec5f8a7299ea9a139a6e69f2a0e68a4
|
||||
format 90 1000x3 of 10 levels, usage 1 level 6 bytes 60 1ec06ac41fe7f24ea4c1187aa99bc3aa d425779dd5e9279f1b56c9a32eae37a3d3ed079ffc21b7a13baa999fd059969f
|
||||
format 90 1000x3 of 10 levels, usage 1 level 7 bytes 28 01a7932554c663dc3c66c3449cf6562b d595679e292668a3f63d57a1d059969fcdddc7a0d395c89d1c2ae89e
|
||||
format 90 1000x3 of 10 levels, usage 1 level 8 bytes 12 12f4739d349d99dd30f64bd6af4c2634 0df6b7a1d059969feb71289e
|
||||
format 90 1000x3 of 10 levels, usage 1 level 9 bytes 4 654684bab6757277b806e82ebc7edc61 d059969f
|
||||
format 90 256x256 of 9 levels, usage 3 level 0 bytes 262144 2d816e9e61f8553ed29004ac6dd55490 14ce373c719409ef52c2390a48efacfe598e93385f3dd463545fc14ee60f25b9
|
||||
format 90 256x256 of 9 levels, usage 3 level 1 bytes 65536 a873dcebb28fb3b287addbd81c9c055d 9e297ab3ed552964d775242852a3a89c06470a98fa2ea95c4dd629a28681279b
|
||||
format 90 256x256 of 9 levels, usage 3 level 2 bytes 16384 8059684f57913d3c5a22cea0d701853e e221e9a387a617a47506c99c001e19a1c0d565a32ce2679d517ea99b8c41189e
|
||||
format 90 256x256 of 9 levels, usage 3 level 3 bytes 4096 53b170a31eb8222060d19c7903d7343e 253e889f43cef89ed661f7a1e3a5d89fad69079f1c62f79f44ce079ed4ad879e
|
||||
format 90 256x256 of 9 levels, usage 3 level 4 bytes 1024 4b2e545e738d68801601a71811734825 117e789ef02d68a1ef01689ffc9937a0f36148a0e66107a0ed2958a00b0ac89f
|
||||
format 90 256x256 of 9 levels, usage 3 level 5 bytes 256 e985f6a082fce7871da6a238ba63500e 012a48a0f905b89ff701489fff39d89fffc9979fe3dde79f0bf2e7a0ff2168a0
|
||||
format 90 256x256 of 9 levels, usage 3 level 6 bytes 64 bbef6e227e276f798b38a67e4853980f f805f89ffcfda79ffcf107a001fa57a0fd1128a0010608a0fdf937a0f8f5e79f
|
||||
format 90 256x256 of 9 levels, usage 3 level 7 bytes 16 d102df49b8a8155ecc92683fe7f89570 fd05f89ffdf517a0fff527a000faf79f
|
||||
format 90 256x256 of 9 levels, usage 3 level 8 bytes 4 65eb4f4995757277b806e86183d97177 fef907a0
|
||||
format 60 256x256 of 9 levels, usage 1 level 0 bytes 262144 b2db7f26c64f89bda5ed089dd9ba2ca0 14e5e7461c5477d9d4d1adba42e3e6758092df1b10cd807672d05a13b6adbbe1
|
||||
format 60 256x256 of 9 levels, usage 1 level 1 bytes 65536 95f45cd94289b60e6306df8ef3ecddbc 808b33732fa0a9a77c720456879d16b7588f9966302fcd7e7395e3809d4a758a
|
||||
format 60 256x256 of 9 levels, usage 1 level 2 bytes 16384 58d07672b434b4d4e874df256c32e9f5 8b88ca9780771778f075de7f2678af824b6b39844870ac78056089730b89157a
|
||||
format 60 256x256 of 9 levels, usage 1 level 3 bytes 4096 7e6baaf4975420782d290fcef3f5c749 8c8b0f7dd272627cec7ba17d237f1380a978737bef7c0d6f3a8c8a7aad826b85
|
||||
format 60 256x256 of 9 levels, usage 1 level 4 bytes 1024 a34f69998c52ab980c40a99b525aec67 4a82057b257d347c097fa57c368c6b79ea89c286587d067de980607fb37e357e
|
||||
format 60 256x256 of 9 levels, usage 1 level 5 bytes 256 284ce9f1c823611169977a41ef911753 3a7efc7ce382e57eaf844782c87e6c81fc7ed3804483f87f7180e479737e8b7b
|
||||
format 60 256x256 of 9 levels, usage 1 level 6 bytes 64 e2fb863fef8f306a6018a5eeb66ce2d3 b8800680a481bc7f5a8029800b80d97c057dd580697f9a80267ff67f7681e77f
|
||||
format 60 256x256 of 9 levels, usage 1 level 7 bytes 16 2b0322d5155e3483450a344fe0ebf552 b37f4c804080387fc67f47814c7f8a80
|
||||
format 60 256x256 of 9 levels, usage 1 level 8 bytes 4 64caf34b69757277b806e8090aeaf52c c17f5580
|
||||
format 60 2048x32 of 12 levels, usage 1 level 0 bytes 262144 3b785778e202a6f277ec4b1125f1f8ba 14fd964fc613e5c456e022693cd621eda8962cfec15d2b889041f4d7854b5208
|
||||
format 60 2048x32 of 12 levels, usage 1 level 1 bytes 65536 7a8b4507b624fb3c3898ad487b18f513 a15e5067d1bf8c6e4d7c757eb75d195cee5e714ec7717569e05302a9c0b84b9a
|
||||
format 60 2048x32 of 12 levels, usage 1 level 2 bytes 16384 11c25250297902c3055e6e6375c336a0 7689bb7a177685744a7a15748c7b0ea5fd75c16c01ae3d79237e80a2ee987678
|
||||
format 60 2048x32 of 12 levels, usage 1 level 3 bytes 4096 5a460654ef7a953c80e473f9b81f629e 6f7baf7a427e3c78fc8c597b107e6c7ebb8f8188a77cc47f0c7b587f4985937d
|
||||
format 60 2048x32 of 12 levels, usage 1 level 4 bytes 1024 55ce43bae313ba3c19643d9d925d2a91 d2853679fd8621803182db84a380aa7daf7fb27a728040842d7f95855380fe7f
|
||||
format 60 2048x32 of 12 levels, usage 1 level 5 bytes 256 2d1c8aa88386646041068f06d5eacaee 5782647ed87ff47f78816b7e71807f7dcf7ebc7fc080a07d0c85a4807f7e9680
|
||||
format 60 2048x32 of 12 levels, usage 1 level 6 bytes 128 fffa9a84b1a44cb1fac82448f1195f16 18812c7ff580f57dc87fae7ec6819d805f7f7f7d6a7fd47da78247817f7fc27d
|
||||
format 60 2048x32 of 12 levels, usage 1 level 7 bytes 64 09a56cd2cfed9161d78ec6e183303ce3 0781917ec780a67f657faa7d1381857f7281d8804e800b80a081f1801e7fa880
|
||||
format 60 2048x32 of 12 levels, usage 1 level 8 bytes 32 346745674bf3a55d8f2a0103c40f6969 e7801c7f3c80987ee08072805f80cd808d7fa97f66802b7f4b802081a87f7681
|
||||
format 60 2048x32 of 12 levels, usage 1 level 9 bytes 16 f68c561712ba71a978646cab517e9e40 9280da7ea080a080fa7f6a7ffa7f4b81
|
||||
format 60 2048x32 of 12 levels, usage 1 level 10 bytes 8 6ce0faa2c26596ddeb1f45815bf9a86c 9980bd7ffa7f5b80
|
||||
format 60 2048x32 of 12 levels, usage 1 level 11 bytes 4 685b29fd46757277b806e92134e439ab 4a800c80
|
||||
format 60 32x2048 of 12 levels, usage 1 level 0 bytes 262144 2879ce5a4cf65022290b099b27c5a11b 1414455971d254afd9ee961836ca5b64cf9978e172eed79aaeb28d9b54e9e830
|
||||
format 60 32x2048 of 12 levels, usage 1 level 1 bytes 65536 0a410513c61774a316c054f5804334b5 a76a2a9046953757dfb000c1f8b9a15d549c73a0629b1d5eb4ca6f584b98175a
|
||||
format 60 32x2048 of 12 levels, usage 1 level 2 bytes 16384 2ad33779637601042598f516cab5de78 be7f6976aba1938556840f7af497427be2746f829a8b338b1b8508940072609c
|
||||
format 60 32x2048 of 12 levels, usage 1 level 3 bytes 4096 00094c6a7bad66d7fd6585b1464e03ae 01801a7da786a97bfb7dde87ce76988b8281687a32989f80ef885c81f37b746a
|
||||
format 60 32x2048 of 12 levels, usage 1 level 4 bytes 1024 842d6688afea8d4c022d18a1a53cdfbc 1788f37c6b7ed27f967a9780fd79c986157d3a83867cb880af76eb7f1a7fb081
|
||||
format 60 32x2048 of 12 levels, usage 1 level 5 bytes 256 52a2edcecf4c308e9f7766a52bd77a6a c57e0981d97b6381b880ff8191805c7c737efc80857f5a80257ef980847d117f
|
||||
format 60 32x2048 of 12 levels, usage 1 level 6 bytes 128 e821061c3acd63b4eb0594cf4ce32921 4f7d3681a5802e7ffc7eab80d57d05804981c083c37fbc7d157f18814b80717f
|
||||
format 60 32x2048 of 12 levels, usage 1 level 7 bytes 64 cb4cdeb4d3d7ddd9ee035bcc605b8052 fa7e3280697e58808680be80b07f45807b801c7e477f127fc381988142801d7f
|
||||
format 60 32x2048 of 12 levels, usage 1 level 8 bytes 32 98aa6858bac462b7ac4de0b3f381e1ea b27e45801b808280e17f977e03815b80cb7f967f1c803d80f77f787f66807c80
|
||||
format 60 32x2048 of 12 levels, usage 1 level 9 bytes 16 9eac32a6e3dd160b9ffb3f56f4b6543f 677f64807280797ff47fea7f2f80fa7f
|
||||
format 60 32x2048 of 12 levels, usage 1 level 10 bytes 8 0fcc54c0676598707616d38a3941443a ed7fef7f1280f27f
|
||||
format 60 32x2048 of 12 levels, usage 1 level 11 bytes 4 66af7c7c47757277b806e89e1c1b7331 0080f17f
|
||||
format 60 1024x12 of 11 levels, usage 1 level 0 bytes 49152 250e88b672dea94a9156a9a001175e4d 142bf4621c92c2995bfd0ac830be96dbf69dc5c4237e82adcc23276024877f58
|
||||
format 60 1024x12 of 11 levels, usage 1 level 1 bytes 12288 41a881494fd08232af52335015bca941 f3851c5a4a916e935d96cf915c4fc071159d6b4d8b902e6c96c7307ddd52cfab
|
||||
format 60 1024x12 of 11 levels, usage 1 level 2 bytes 3072 bd6cc0f4d3f0f0bc07d7c0d5218821bc 328a2878f5880594a689866c7681057f147eea824a97b19b058d7f97cc79f37f
|
||||
format 60 1024x12 of 11 levels, usage 1 level 3 bytes 512 75bc5c321e8a264c4b3164442d8f22bc e26af76c7c93628a23758f999c829e7b549248851887e77f7687ea7721864276
|
||||
format 60 1024x12 of 11 levels, usage 1 level 4 bytes 256 7fb94640a7040866debf0a39bb63a9fb 2f7fad7be07b978ab68c9882cc8616776787fc7ed673ea713379aa76f8801379
|
||||
format 60 1024x12 of 11 levels, usage 1 level 5 bytes 128 67428fd91ef5a60c7a5e778a12fbbaf3 887d2283c189d77c9f7d7378167ddf773b7e648b097db87e6c7b167a9981577b
|
||||
format 60 1024x12 of 11 levels, usage 1 level 6 bytes 64 1a6d718a188622000ccc7e1e769ef7b1 a583fd7f5b7d2978a27d0e85837eb77afa7ef780f57efe837484c180937f2780
|
||||
format 60 1024x12 of 11 levels, usage 1 level 7 bytes 32 413ca2ea6edc5ec9b8d4b483acc3064a 8080137c137ee37ff87e7b82048274800280bd86cf834c7ce985a086d082617e
|
||||
format 60 1024x12 of 11 levels, usage 1 level 8 bytes 16 32bd9caa8465df9626e583bc19a70d99 4a7ffb7d7e807881e98185815d848182
|
||||
format 60 1024x12 of 11 levels, usage 1 level 9 bytes 8 2b51db8b9765989f211f180a4285d8c0 e47fba7f23830382
|
||||
format 60 1024x12 of 11 levels, usage 1 level 10 bytes 4 62d7cf8d5d757277b806e76f837d66d1 8481df80
|
||||
format 60 4096x1 of 13 levels, usage 1 level 0 bytes 16384 ac8535facf66a26f0801c796ba97d4f1 1442a46cc6513084dd0c7e772bb1d0531da111a7d40e2ebfeb94c024f325157f
|
||||
format 60 4096x1 of 13 levels, usage 1 level 1 bytes 8192 36d25cb7011b2edb4689a23e12c6000c ed496a78045fa765f95720b36f5deb519cb8aa2a0680cb8113579beae3b42941
|
||||
format 60 4096x1 of 13 levels, usage 1 level 2 bytes 4096 37afc6585c9d5f05a54c32d5ec97b7dc 7954096fb45a8682519c3b56fb85e2957dcebb7219871a72516b387e7eb04475
|
||||
format 60 4096x1 of 13 levels, usage 1 level 3 bytes 2048 ef661b8288d1e60e6a8587dbf626c7fb 9757c87826910f76cbaa6b72e88dbe795187be7c9287576ea7834447e473fa63
|
||||
format 60 4096x1 of 13 levels, usage 1 level 4 bytes 1024 876f78558620116a3d542644dcd57022 5f746c775a9c157672878b75c67b9f55a56f44977079587a137f5f7f51771986
|
||||
format 60 4096x1 of 13 levels, usage 1 level 5 bytes 512 6d4a40025a343ff4f7aeb9db03c4a513 5d88c1769c8195658b74ce88327bbc82757f52856d6b42821c79ed836c7aee8b
|
||||
format 60 4096x1 of 13 levels, usage 1 level 6 bytes 256 859b2b0ac5114e4dcc5b98cb8e32316c fd842b6edf77c5857175ca83c479ee87a3806b822d721e7f6182187a3879617b
|
||||
format 60 4096x1 of 13 levels, usage 1 level 7 bytes 128 f20f7190a1212f7be13f84b88be70be3 6e7ef8799b77dc856879c580cd7dbd7aad74df793484f97d4778197de2824f85
|
||||
format 60 4096x1 of 13 levels, usage 1 level 8 bytes 64 a68254a9887d8767782a472ed472684b 057bea7f9b7bc17d717cec7b957d3481e182e2887b84c0805b83de7b78853577
|
||||
format 60 4096x1 of 13 levels, usage 1 level 9 bytes 32 188e7e5efad0825a45ee81005a6a6b0a 507bd67e037d907eae83d1846a848a79177ebf81528306837580c57aad80fc7d
|
||||
format 60 4096x1 of 13 levels, usage 1 level 10 bytes 16 c24d2694530dffd79b44a496faf404b9 2a7cb37e0c842e7fb58063829180617c
|
||||
format 60 4096x1 of 13 levels, usage 1 level 11 bytes 8 02ef11c8db6599890f8c898733bd4b95 1b80f17ea380627f
|
||||
format 60 4096x1 of 13 levels, usage 1 level 12 bytes 4 68b1ae0b65757277b806e93c4965405d 5f802a7f
|
||||
format 60 1000x3 of 10 levels, usage 1 level 0 bytes 12000 6058511e3eb9250267a323225a19d5d2 1459537571119f6e5f1bf22625a50bca44a55e8b859ed9d1090559e8c2c3aba7
|
||||
format 60 1000x3 of 10 levels, usage 1 level 1 bytes 2000 3d969967a04ef5acc7167d2834197444 2b822b6180610397b7717f976bda517b365220961a6a02c87bb20c20a1226a52
|
||||
format 60 1000x3 of 10 levels, usage 1 level 2 bytes 1000 dbc27d618aba66b8386114442ed5f293 d671177c11a66889285e11af8e6a3b39bd87028446adc287e55c2eaacdb4d5cd
|
||||
format 60 1000x3 of 10 levels, usage 1 level 3 bytes 500 ab96bff28ba9ab8e5eb98fe388db07fa f48bc0825b642674829ae285d98802bc7c5e558d267e5585f97e1882f8ab7f78
|
||||
format 60 1000x3 of 10 levels, usage 1 level 4 bytes 248 26e102908ca390c8d2a96584720ef9f8 d877567b449137a28e6f0589ee97c57c066b6e9c079cdc78445d768c0871668a
|
||||
format 60 1000x3 of 10 levels, usage 1 level 5 bytes 124 1611ffe5a131458f49497c43ebdef139 8e84c78ebe83e5828783a58a26676e8b2f82c37c7a8bf1661773029bb59dda7a
|
||||
format 60 1000x3 of 10 levels, usage 1 level 6 bytes 60 4d66a326aaa5095efb0ff5bc3ff973a7 1f846b8875721e8b6488306e639265839878bf6b83764c8d188d3a9c8e759490
|
||||
format 60 1000x3 of 10 levels, usage 1 level 7 bytes 28 450ffa113973af620eaa156f101bb4de 0c7af589898f597dd07673888e759490068d2478077b617e9080a578
|
||||
format 60 1000x3 of 10 levels, usage 1 level 8 bytes 12 314d228047a510af179318c5ff3c54df 668889818e759490dd7c7a7c
|
||||
format 60 1000x3 of 10 levels, usage 1 level 9 bytes 4 62a93089c7757277b806e760fa530e28 8e759490
|
||||
format 60 256x256 of 9 levels, usage 3 level 0 bytes 262144 6b93c6fb890c5b75f0dc90a37efb14cb 1471027f1bd00d59e22966d61f9845416ca9aa6e362e85e42777f3ad926142cf
|
||||
format 60 256x256 of 9 levels, usage 3 level 1 bytes 65536 e5c5c773b5d8600c5564f976ec2961bc ca897a70ff5c909a1a59d689c47ab8b17c75899cefa67c6d16922ebae8b53668
|
||||
format 60 256x256 of 9 levels, usage 3 level 2 bytes 16384 e62017622ec510905d71553f21b8c24e cb7c7886356acb9f9c957982c8825084d9827971a181df7b4c88bb8c546c1672
|
||||
format 60 256x256 of 9 levels, usage 3 level 3 bytes 4096 35a506a63ff744c9d39943bfe31e86ea 117e458b7673e27c3280a57f1481c4813b7b9079a67f46817d8b406fb787ab8d
|
||||
format 60 256x256 of 9 levels, usage 3 level 4 bytes 1024 a6ea833e0c1b21285e8165ef511bd408 7b7ab27f6185df7d4a7c257c7585c17e3a7df483c083fe7e597e2e883b7e9b85
|
||||
format 60 256x256 of 9 levels, usage 3 level 5 bytes 256 0598c04a8aa8d6c826ee4e41cd5f98b3 647e1480d67d407b7780c87fc87f30824d82ab7d8780fd82ae7e6881067eed7c
|
||||
format 60 256x256 of 9 levels, usage 3 level 6 bytes 64 1d594c65df9ba92afeee01606e916bbf 8d7fc87fc27fe680cb7f5d7e698016803e7fc181217fa1805b81ea7d297f6180
|
||||
format 60 256x256 of 9 levels, usage 3 level 7 bytes 16 712e04303bd3a43a2fd547f9ef407fb5 6c7fc4802e80307fd57fdf7f91804d80
|
||||
format 60 256x256 of 9 levels, usage 3 level 8 bytes 4 66af7df5c6757277b806e89e1d044c05 00800880
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0 bytes 60 7e5b3df9f34a7ddb1a5cfd736a83ee75 a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4
|
||||
case 1 bytes 60 86c0911255c68f375df7acb0b50f43a0 ea020f72b31da8e8c21dd1281e90942ebae9e882ed7d4ebdc1c2c3c1c1c2c3c1
|
||||
case 2 bytes 60 6189cebaa30998cec53a728bb0bfd391 ea19be7b5ddd16d2442c45d71984cea5e1ed34659e0efacf0000803e0000803e
|
||||
case 3 bytes 120 e225fabe2e42061f5521fdf9bfb793b5 a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8
|
||||
case 4 bytes 120 72dfdc70c22aafe173ba365bd26d3cb7 ea481c8eb35bf3a749492d360d6b43942ff5cd2b002e51f4cfc29a4b204869f3
|
||||
case 5 bytes 120 5a1f5c3a340e89204df59dd8069dd384 ea5fcc985d1b6192cb58a1e5075f7d0b57f9190eb1befd06ed33330fefe6001b
|
||||
case 6 bytes 240 7521750fec4827dc477771a21590585d a1a2a3a4a5a6a7a8a9aaabacadaeafb0a1a2a3a4a5a6a7a8a9aaabacadaeafb0
|
||||
case 7 bytes 240 7c9851060b327d2fd761ed5ee019a566 ea8d2aabb29a3e67cf768944fb46f2faa500b2d412de542b291566988e222c6a
|
||||
case 8 bytes 240 f1838dca6ca43f91001e8a6e44f0e292 eaa5dab45d59ad525184fef3f53a2d71cc04ffb7c36eff3d4787005d5dc0c392
|
||||
case 9 bytes 120 e225fabe2e42061f5521fdf9bfb793b5 a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8
|
||||
case 10 bytes 120 efa804249c8ab9758443d33cca6ae71a ead338c7b2d8892756a2e652e921a2601b0c977d258e5662836933e5fcfcf0e1
|
||||
case 11 bytes 120 08108126d381b6e2180f8a481b3d494c ebeae7d15d97f811d8b05a01e315dcd74210e460d61e0274a1daccaacb9a8609
|
||||
case 12 bytes 240 7521750fec4827dc477771a21590585d a1a2a3a4a5a6a7a8a9aaabacadaeafb0a1a2a3a4a5a6a7a8a9aaabacadaeafb0
|
||||
case 13 bytes 240 7610f40fced95d86fc2d2b91b27b5d6e eb1946e4b216d4e6ddce4260d7fc51c690187d26383f5999debcff326ad6b359
|
||||
case 14 bytes 240 2b81d917aec168776dd996f3204121cf eb30f5ed5dd643d15fddb70fd1f08b3db71cc90ae9cf05abfc2d98f739744980
|
||||
case 15 bytes 480 cf2db9ca0b8109fa61103e0939eba7cd a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8
|
||||
case 16 bytes 480 bb4039c32de10b6ee3c29bbcd1cfec48 eb5e5400b2541fa663fa9f6ec6d7002c062362d04bef5cd0380fcb7fd7b076d0
|
||||
case 17 bytes 480 c5b61a1baa4aa441d4875e4d4304f3bb eb7603095d148e90e609131dc0cb3ba32d27afb3fc7f07e256806544a74e0df7
|
||||
case 18 bytes 480 47507cf4db2c36f86ed9c789efed348d a1a2a3a4a5a6a7a8a9aaabacadaeafb0a1a2a3a4a5a6a7a8a9aaabacadaeafb0
|
||||
case 19 bytes 480 3b12b21de99dc60f003513dd265eeed2 eba4621cb2936a66ea26fb7cb4b2b0927c2f47795d9f5f07926397cd458a3947
|
||||
case 20 bytes 480 55a9e89b7db8013f0c7e015171ef78a2 ebbb11265c52d9506c356f2baea6ea09a333945c0e2f0a19b0d431911528d06e
|
||||
case 21 bytes 960 d71e9182fa6db8b74731e461332c238d a1a2a3a4a5a6a7a8a9aaabacadaeafb0a1a2a3a4a5a6a7a8a9aaabacadaeafb0
|
||||
case 22 bytes 960 df5666950c791216d6ad1ef75dc3ba65 ecea7039b2d1b5257152588aa28d5ff8f13b2d22704f613eecb6641ab364fdbe
|
||||
case 23 bytes 960 597c21dbf3bb4233ddc8fcaf1fd966d9 ec011f425c902410f361cc399c819a6f183f790521df0d500a27fdde830293e6
|
||||
case 24 bytes 60 7e5b3df9f34a7ddb1a5cfd736a83ee75 a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4
|
||||
case 25 bytes 60 9d87ee598314ba74a496b053baaf037a ec2f7d55b10f00e5f77eb49890680e5e674612cb83006475c1c2c3c1c1c2c3c1
|
||||
case 26 bytes 240 21015caf2a88ffd2a8f52113281fc402 0000803e0000003f0000403f0000803f0000803e0000003f0000403f0000803f
|
||||
case 27 bytes 240 517cd4fe5a05d37d683c76961564a419 000000000000803c0000003d0000403d0000803d0000a03d0000c03d0000e03d
|
||||
case 28 bytes 240 9d86bbde0a4a7c6e8563530216f49799 000000000000803c0000003d0000403d0000803d0000a03d0000c03d0000e03d
|
||||
case 29 bytes 480 d97a5d753c302001e6cd9b3418b5c8d5 ec8c3b7b5c0dba8f00b985557937f83b04564457474012bfbece96785fb61ad4
|
||||
case 30 bytes 480 62cf2ab23ab2181aae5148875c7ff72b eca3ea8507cc287983c8f904732b33b22b5a903af7d0bed1dc3f2f3d2e54b0fc
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
the first 64 bytes bytes 64 ba847bea29433127a9132d55c22e4716 ee010203040102eeee0102030401020301eeeeeeeeeeeeee0102030401020304
|
||||
the fills bytes 9437184 d3fb6ec0ebca06bfc1cfc0e32638d0c9 ee010203040102eeee0102030401020301eeeeeeeeeeeeee0102030401020304
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
TextureDesc { texture_type: 2, pixel_format: 166, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: None, swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } (128, 128)
|
||||
TextureDesc { texture_type: 2, pixel_format: 166, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: Some(false), rotation: None } (128, 128)
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
TextureDesc { texture_type: 2, pixel_format: 160, width: 32, height: 32, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } (256, 128)
|
||||
TextureDesc { texture_type: 2, pixel_format: 162, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } (128, 128)
|
||||
TextureDesc { texture_type: 2, pixel_format: 164, width: 32, height: 32, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } (256, 128)
|
||||
TextureDesc { texture_type: 2, pixel_format: 166, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: None, rotation: None } (128, 128)
|
||||
TextureDesc { texture_type: 2, pixel_format: 160, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: Some(false), rotation: None } (128, 128)
|
||||
TextureDesc { texture_type: 2, pixel_format: 162, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: Some(false), rotation: None } (128, 128)
|
||||
TextureDesc { texture_type: 2, pixel_format: 164, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: Some(false), rotation: None } (128, 128)
|
||||
TextureDesc { texture_type: 2, pixel_format: 166, width: 16, height: 16, depth: 1, mipmap_level_count: 1, sample_count: 1, array_length: 1, usage: 1, resource_options: Some(32), swizzle: None, resource_index: None, protection_options: None, framebuffer_only: None, is_drawable: None, write_swizzle_enabled: None, allow_gpu_optimized_contents: Some(false), rotation: None } (128, 128)
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, format 160 bytes 64 9be1083529485fd4749f06c1a8cff655 eeeeeeeeeeeeeeee0102030405060708eeeeeeeeeeeeeeee6162636162636162
|
||||
case 1, format 162 bytes 128 67910b775f5c56b82abc8f33febfba2d eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee01020304050607080102030405060708
|
||||
case 2, format 164 bytes 64 9be1083529485fd4749f06c1a8cff655 eeeeeeeeeeeeeeee0102030405060708eeeeeeeeeeeeeeee6162636162636162
|
||||
case 3, format 166 bytes 128 67910b775f5c56b82abc8f33febfba2d eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee01020304050607080102030405060708
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
copies bytes 336 d652258ecf81514ae081923a6d5e1b0d 8000000000000000000102030405060708090a0b0c0d0e0f1011121314151617
|
||||
-77
@@ -1,77 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
format 92 256x256 of 9 levels, usage 1 level 0 bytes 262144 9954e96b3919dbaa2941036b570a48ad 12fe867f1da06a9c259c2658bfe61bac49409a7c8dfc6cf4fb89c4f7b4b6649f
|
||||
format 92 256x256 of 9 levels, usage 1 level 1 bytes 65536 cb94e1f04310d4e74ee10a2c21ab9b1b d61d6ccf0247269c0de476e9d6b6e0e73b073ffc1b9fe39b7c862f8a16bea4c5
|
||||
format 92 256x256 of 9 levels, usage 1 level 2 bytes 16384 5024b90b12b4a968ca8d36b47d48aaa8 a40e30c0746674e2ef063ffc2d66f0b7b83e31fce09736d3ba06ffab481ef4da
|
||||
format 92 256x256 of 9 levels, usage 1 level 3 bytes 4096 ab2ec195ad2a6333d491bdfe9b3aaa05 e05732fce0073ffce0d735fce007bfd2e0073ffce0073ffce0073ffcca067fd2
|
||||
format 92 256x256 of 9 levels, usage 1 level 4 bytes 1024 8bafbcd955804395a74ce823d6cb9b8d e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 256x256 of 9 levels, usage 1 level 5 bytes 256 535486f0b193bad033d7098fc01ed60d e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 256x256 of 9 levels, usage 1 level 6 bytes 64 6b8c2e6eace2323c5033dca9d65fb3ed e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 256x256 of 9 levels, usage 1 level 7 bytes 16 78409c0fde4c02d803352ec2ea4c74a5 e0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 256x256 of 9 levels, usage 1 level 8 bytes 4 65bea28357757277b806e853c6c0382b e0073ffc
|
||||
format 92 2048x32 of 12 levels, usage 1 level 0 bytes 262144 1e09c58e35e1dbc7c5cb14e9881c15b8 12153588e05fd887a8ab9a08b9d955237044e75f3e8c180619fa5ebb8354fbc6
|
||||
format 92 2048x32 of 12 levels, usage 1 level 1 bytes 65536 f875e3020cf1783b03c3320c7b7e3bbc e0cf3291f8232bfc844ca3c4b756f7d79cde1ce1b53ef6be8bbdf8a3840334e7
|
||||
format 92 2048x32 of 12 levels, usage 1 level 2 bytes 16384 71bf38982b6c737cccd5dc111c3331e8 e0af34fcbe8674d57bf674d583057fdde0073ffce07773d41005bfcbca16f3d1
|
||||
format 92 2048x32 of 12 levels, usage 1 level 3 bytes 4096 feed1e038aca9cca4cd487fbbfef49f4 e0073ffce0073ffce0073ffc9b063ffce0a773d0e0073ffcaa063ffce0073ffc
|
||||
format 92 2048x32 of 12 levels, usage 1 level 4 bytes 1024 2e0c328fb834b9e3ce19c322a9ae7497 e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 2048x32 of 12 levels, usage 1 level 5 bytes 256 535486f0b193bad033d7098fc01ed60d e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 2048x32 of 12 levels, usage 1 level 6 bytes 128 06af6bb074a239ddb2bc7c3558042ccd e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 2048x32 of 12 levels, usage 1 level 7 bytes 64 6b8c2e6eace2323c5033dca9d65fb3ed e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 2048x32 of 12 levels, usage 1 level 8 bytes 32 4c78968a0f6b02cc8ad3791c39eff1bd e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 2048x32 of 12 levels, usage 1 level 9 bytes 16 78409c0fde4c02d803352ec2ea4c74a5 e0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 2048x32 of 12 levels, usage 1 level 10 bytes 8 dcee1e5b9a6598b39f13588619cc9539 e0073ffce0073ffc
|
||||
format 92 2048x32 of 12 levels, usage 1 level 11 bytes 4 65bea28357757277b806e853c6c0382b e0073ffc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 0 bytes 262144 da11d4c1c68780762499da3cbbecca9a 122ce492721f46712aba0eb7b3cd909a97483342ef1cc419376bf78052f291ee
|
||||
format 92 32x2048 of 12 levels, usage 1 level 1 bytes 65536 110f20f7ddd4e02a83284a823c476f4d f23e26fc7c9615a8c956afc6c36ab3ded005ffd87406b4c991dee6a1b3152de1
|
||||
format 92 32x2048 of 12 levels, usage 1 level 2 bytes 16384 6d5624978f5f2e5b96331df1c6cdbc7c e02728fcdd1ef0dde0073ffc513e36fcd26630fc89e436b5e05735fce0073ffc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 3 bytes 4096 17db1321ac37fe1da550828dc1dd6400 e0073ffce0073ffc74063ffce0073ffcaf063ffc82063ffce0073ffce0c733fc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 4 bytes 1024 8bafbcd955804395a74ce823d6cb9b8d e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 5 bytes 256 535486f0b193bad033d7098fc01ed60d e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 6 bytes 128 06af6bb074a239ddb2bc7c3558042ccd e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 7 bytes 64 6b8c2e6eace2323c5033dca9d65fb3ed e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 8 bytes 32 4c78968a0f6b02cc8ad3791c39eff1bd e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 9 bytes 16 78409c0fde4c02d803352ec2ea4c74a5 e0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 10 bytes 8 dcee1e5b9a6598b39f13588619cc9539 e0073ffce0073ffc
|
||||
format 92 32x2048 of 12 levels, usage 1 level 11 bytes 4 65bea28357757277b806e853c6c0382b e0073ffc
|
||||
format 92 1024x12 of 11 levels, usage 1 level 0 bytes 49152 cbe1cd48d32d1f87d0fd7bae0cb98596 1243939b1ddeb55cacc88366adc1ca12bf4c8025a0ac6f2b55dc914422902816
|
||||
format 92 1024x12 of 11 levels, usage 1 level 1 bytes 12288 fd5c93c487523df3021d85fa3ce3dc06 bae5b18d4502ffdb64852cad22be64a7092e2fb43b3f25dbc0d574c42a57f093
|
||||
format 92 1024x12 of 11 levels, usage 1 level 2 bytes 3072 c48416ca3a4485bb8eb53b03b2f6f3a0 a1067fd38706ffa5f7162cdcd53e34cee007bfd9e007bfcfe0077fc8df05bfad
|
||||
format 92 1024x12 of 11 levels, usage 1 level 3 bytes 512 9c35c05ab476ca42031ba6f994dc4ba1 e0073ff8e007bfd2e06f35fc9b06ffcc2b063ffcb706bfd8c70e30fce0073ffc
|
||||
format 92 1024x12 of 11 levels, usage 1 level 4 bytes 256 50debead9473ae8c74a4b9a089a2b646 e0073ff8e0073ffc88063ffce0073ffce04732fce0073ffce0073ffce0073ffc
|
||||
format 92 1024x12 of 11 levels, usage 1 level 5 bytes 128 ae23d7da1f8190b038bd3007b3a4b9b9 e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 1024x12 of 11 levels, usage 1 level 6 bytes 64 6b8c2e6eace2323c5033dca9d65fb3ed e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 1024x12 of 11 levels, usage 1 level 7 bytes 32 4c78968a0f6b02cc8ad3791c39eff1bd e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 1024x12 of 11 levels, usage 1 level 8 bytes 16 78409c0fde4c02d803352ec2ea4c74a5 e0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 1024x12 of 11 levels, usage 1 level 9 bytes 8 dcee1e5b9a6598b39f13588619cc9539 e0073ffce0073ffc
|
||||
format 92 1024x12 of 11 levels, usage 1 level 10 bytes 4 65bea28357757277b806e853c6c0382b e0073ffc
|
||||
format 92 4096x1 of 13 levels, usage 1 level 0 bytes 16384 6b7e1f18ae7ba78cdc6d2c2fef2ca8f1 125b43a5c79e23462ed7f715a7b40589e64fcc08513c1b3e734d2a08f12ebe3d
|
||||
format 92 4096x1 of 13 levels, usage 1 level 1 bytes 8192 53c81ef12cf0f53f2bfcd2ad49a4b335 879e619deed63581e03f1936b206bf3585ac8fa8e03fa972f0d667dd10ee25e0
|
||||
format 92 4096x1 of 13 levels, usage 1 level 2 bytes 4096 182c43e1949ad03c1e7c6e73da6799d8 c8d67396e007ff35e03fa7a0bae6a6de54e537a448ed5bd0883e32fc83ecb2d8
|
||||
format 92 4096x1 of 13 levels, usage 1 level 3 bytes 2048 10610fcb50e543c5f24724d037731718 e0077f8ee00fa7d64ee575c8489632fc9a067fc9e03fb8cde0b734e287ce37d8
|
||||
format 92 4096x1 of 13 levels, usage 1 level 4 bytes 1024 5c5194c010c8dff39367e9b82c0c8f15 e007bfce0c9634fce0077fcbe09736deeb053ffcc13636fc707e37d89966b6c4
|
||||
format 92 4096x1 of 13 levels, usage 1 level 5 bytes 512 8afc0ffb55e7584b37ac8a434a31ec1b e0073ffce0077fd887063ffc88eeb6d1e0b7b4dae007bfd1bd063ffcd6d634fc
|
||||
format 92 4096x1 of 13 levels, usage 1 level 6 bytes 256 3f4bc1df5f3946624cf3754acff58f76 e0073ffc87063ffce0077fd7ca063ffce0073ffce05f36fce007ffd093063ffc
|
||||
format 92 4096x1 of 13 levels, usage 1 level 7 bytes 128 2b975b43c5ca2302392c32bbcbaa6482 e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffcc02f34fce0073ffc
|
||||
format 92 4096x1 of 13 levels, usage 1 level 8 bytes 64 6b8c2e6eace2323c5033dca9d65fb3ed e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 4096x1 of 13 levels, usage 1 level 9 bytes 32 4c78968a0f6b02cc8ad3791c39eff1bd e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 4096x1 of 13 levels, usage 1 level 10 bytes 16 78409c0fde4c02d803352ec2ea4c74a5 e0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 4096x1 of 13 levels, usage 1 level 11 bytes 8 dcee1e5b9a6598b39f13588619cc9539 e0073ffce0073ffc
|
||||
format 92 4096x1 of 13 levels, usage 1 level 12 bytes 4 65bea28357757277b806e853c6c0382b e0073ffc
|
||||
format 92 1000x3 of 10 levels, usage 1 level 0 bytes 12000 fa5fbe6b5eac26edc72b736bf7effbcd 1272f2ae725d9131b1e66bc5a1a83f000d5318eb02ccc65091bec4cdc0cc5465
|
||||
format 92 1000x3 of 10 levels, usage 1 level 1 bytes 2000 f459f89c9589bc915d7532e4827e90ee 4537944568f62ad13eb6d58888bc0f150c4e5fecabd5f4ec1b4f7634d9162e92
|
||||
format 92 1000x3 of 10 levels, usage 1 level 2 bytes 1000 a7d1083bfaba4cab5800f3f4154a6455 0bf728c9ff15d480e6d5b2ec036f348a0bce6ad1493fd0dafa4430da72fe2afc
|
||||
format 92 1000x3 of 10 levels, usage 1 level 3 bytes 500 1fa5ce0495fd0b06464392eec594af6d cff626c1c6d6b3e40bcf68d7339e2efcc73634fcc47d6ba1ea4ca9c7e007b2e0
|
||||
format 92 1000x3 of 10 levels, usage 1 level 4 bytes 248 e0611adf3dd6b5f8a81dbec9cabf27b8 caee71ddcf0e2dfc862632fce04f70da294623fce0ef2efce0a735bfe0073ffc
|
||||
format 92 1000x3 of 10 levels, usage 1 level 5 bytes 124 ba27b7ea4b2212055f0e684f23310bf1 cc5630fce04731fce0f72cfce0073ffcbc063ffce05f34fc08067fd1e0073ffc
|
||||
format 92 1000x3 of 10 levels, usage 1 level 6 bytes 60 1790b441aae6c4b72d0b8fd1b23296ad e0d730fce0073ffce0073ffce0073ffce007bfd7e0073ffc130633fc851eb6db
|
||||
format 92 1000x3 of 10 levels, usage 1 level 7 bytes 28 304550e3e0d0941cad8a87542a02973d e0073ffce0073ffce0073ffc851eb6dbe0073ffce0073ffce0073ffc
|
||||
format 92 1000x3 of 10 levels, usage 1 level 8 bytes 12 1cb817e9a5966153e49793dc3e27b7bd e0073ffc851eb6dbe0073ffc
|
||||
format 92 1000x3 of 10 levels, usage 1 level 9 bytes 4 62cdc84ccb757277b806e76c29f06a5d 851eb6db
|
||||
format 92 256x256 of 9 levels, usage 3 level 0 bytes 262144 7868b3d3c0ff047b16619c70913f6ca8 1289a1b81d1c001b33f4df749b9c7a78345765ceb25c7262af2f5d91906aeb8d
|
||||
format 92 256x256 of 9 levels, usage 3 level 1 bytes 65536 e261ee159a74e051810ff443f9937aba f3969da8392ffa71e48e32fc4f973688042e30fcedf6f8b002976fe50e2da3e7
|
||||
format 92 256x256 of 9 levels, usage 3 level 2 bytes 16384 79d03f4d3e02606d5bb56934789049a3 e02f76d1e82e35fc8a1e35fca1c631fcaede2afcd1067fd9e01f36fce00ff1d8
|
||||
format 92 256x256 of 9 levels, usage 3 level 3 bytes 4096 4d85f325aabec023b6e258059c8a0934 e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 256x256 of 9 levels, usage 3 level 4 bytes 1024 8bafbcd955804395a74ce823d6cb9b8d e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 256x256 of 9 levels, usage 3 level 5 bytes 256 535486f0b193bad033d7098fc01ed60d e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 256x256 of 9 levels, usage 3 level 6 bytes 64 6b8c2e6eace2323c5033dca9d65fb3ed e0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 256x256 of 9 levels, usage 3 level 7 bytes 16 78409c0fde4c02d803352ec2ea4c74a5 e0073ffce0073ffce0073ffce0073ffc
|
||||
format 92 256x256 of 9 levels, usage 3 level 8 bytes 4 65bea28357757277b806e853c6c0382b e0073ffc
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
width 12, case 0 bytes 512 200258ddf29aedcbedbfd8dcf651a5f5 00b1b1b3b3b1de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 1 bytes 512 def55f7e93d586ea5f9afb812c93a185 00254a6fb1b1b3b3b1b1779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 2 bytes 512 876bd15155bbea61cf8a2caa68fa4abc 00254a6f94d1d2d3d4d1d2d3d4d910355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 3 bytes 512 a63a050a1fb0eecebceeeefe85e94645 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 4 bytes 512 c27fa1dd501de37b71c9c9ce74a92e45 c0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedf
|
||||
width 12, case 5 bytes 512 42d555f747f93b95e5fa9284e89b536e 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 6 bytes 512 82bb0515d2e4d2cd694731ad5a98ca60 a1a2a3a4a5a6a7a8a1a2a3a4c1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 7 bytes 512 56e42b899895dd48a276dff12a31b986 00254a6f94b9dea1a2a3a4a5c1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 8 bytes 512 ad780a2543eb3ff0939c7f94c642a016 a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8
|
||||
width 12, case 9 bytes 512 e78fd3d7eb97da5118b8c9171ee097fc 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 10 bytes 512 5c9bd95bdc4b3af7bf319fcbda8ad971 00254a6f94b9de082d52779cc1e61035003400b8003d003a003400b8003d003a
|
||||
width 12, case 11 bytes 512 554be3030f10517607b6f797d7fc65b5 00254a6f94b9de082d52779ca1a1a1355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 12 bytes 512 af51ce4f2fffca4f956016adc72cf9c5 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 13 bytes 512 96724b2ca620f6e364b85bef59cdc34e 00a1a16f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 14 bytes 512 211c0d63261a6cbf6fc6057fa6740d20 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 4096, case 0 bytes 16448 3c441c89aa3c88e184659dd1aa9c6de0 00070e151c232a31383f464d545b626970777e858c939aa1a8afb6bdc4cbd2d9
|
||||
width 4096, case 1 bytes 65664 88319c486d4d8d097a58b9e8df9aae3d 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 4096, case 2 bytes 65664 a303829df72f51ab0a3be3bd8f399e78 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 4096, case 3 bytes 4176 14d4477146dbf8dc8170b999c515a7a1 00254a6f94b9de082d52779cc1e6103500070e151c232a31383f464d545b6269
|
||||
-227
@@ -1,227 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
width 12, case 0 bytes 512 418767ed15d9bc7efbaa305533e33e3c a1a1a1a1a1a1a1a1a1a1a1a1c1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 1 bytes 512 d8d7a79ee7461a6c8b4e10d4ec60ea22 00254aa1a1a1a1a12d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 2 bytes 512 35a5adb4d60d329109478f072ac83762 00254a6f94b9dea1a1a1a1a1c1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 3 bytes 512 fcae84233866276bf54770d0024af685 0025a1a1a1a1de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 4 bytes 512 3433cc37a8517e6e58566a686680e028 00404040404040082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 5 bytes 512 d421190ab4f115182e5bf962e25d6a1e a1a1a1a1a1a1a1a1a14040a1c1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 6 bytes 512 b796f932fb71cd79b4d6e1178c24c840 00254a6fa1a1a1a1a1a1a1a1a1a1a1a15a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 7 bytes 512 35a5adb4d60d329109478f072ac83762 00254a6f94b9dea1a1a1a1a1c1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 8 bytes 512 f219191e624476cf44db425962ed8cbe 00254a6f94b9de082d5277a1a1a1a1a15a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 9 bytes 512 ff9ea90cce2aca1bf0258ef589922060 00254a6f94b9a1a1a1a1779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 10 bytes 512 8781ce3b9bbc29e928db3f0b3f525554 00254a6f944040404040409cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 11 bytes 512 1981409905a469d40b068a907ee0d1de 00254a6fa1a1a1a1a1a1a1a1a14040a15a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 12 bytes 512 83a9c6e4d675de2fa7449daf97a798fc 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 13 bytes 512 960d555b812396a29c3f7253e17bdfb2 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 14 bytes 512 3876cd7929c9b109410e754c47590fe8 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 15 bytes 512 a63533c6764df8406074610407c085a1 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 16 bytes 512 44fa39e4b92e19605be0ba8c2c3f76eb 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 17 bytes 512 e7fd53391c14df79a641027b9a02f5ca 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 18 bytes 512 c105ac3690d316a8bc3e24a60b770b10 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 19 bytes 512 3876cd7929c9b109410e754c47590fe8 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 20 bytes 512 8b07494ba103d8ee0c1254fc6fb866f8 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 21 bytes 512 12cbb3728de9eea958363a80cc505c11 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 22 bytes 512 92a849a0781437e165e169bc39f257b8 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 23 bytes 512 947892e9da6f6554c6c296f3ecff3206 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 24 bytes 512 99027b89f2b4feede968d11e3fca623d a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a187acd1f620456a8f
|
||||
width 12, case 25 bytes 512 093a40e309c603dadf122dbe4ec7be55 00254a6f94b9a1a1a1a1a1a1a1a1a1a15a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 26 bytes 512 dbef94024d733b2e6f29b7d3a140b539 00254a6f94b9de082d52779cc1e6a1a1a1a1a1a1a1a1a1a187acd1f620456a8f
|
||||
width 12, case 27 bytes 512 c0c647fd52d93611076f227943e60aac 00254a6fa1a1a1a1a1a1a1a1c1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 28 bytes 512 53f9816ec154d192f7c03053e81c959d a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a287acd1f620456a8f
|
||||
width 12, case 29 bytes 512 8be32542d2648ffbf2f018fbe88737d4 00254a6f94b9a1a2a1a2a1a2a1a2a1a25a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 30 bytes 512 711c63abd80dc1db55bd37aaa71735c0 00254a6f94b9de082d52779cc1e6a1a2a1a2a1a2a1a2a1a287acd1f620456a8f
|
||||
width 12, case 31 bytes 512 93ad42f4304273afe5c13a105960178c 00254a6fa1a2a1a2a1a2a1a2c1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 32 bytes 512 cad961c9acb10e169ad07688812a5918 002540404040404040404040404010355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 33 bytes 512 3faf3ff229d9461ab9d9468692c75418 002540004000400040004000400010355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 34 bytes 512 fe49b815d27d670a21caf80c8f4d04f9 a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a140404040a1a187acd1f620456a8f
|
||||
width 12, case 35 bytes 512 7337a70c95e07890782f705ba5967ba5 00254a6fa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a120456a8f
|
||||
width 12, case 36 bytes 512 a7762e48a5248908180b84c2143ed1c0 00254a6f94b9de082d52a1a1a1a1a1a1a1a1a1a1ee183d6287acd1f620456a8f
|
||||
width 12, case 37 bytes 512 caf4066fa335009f4d12e3e20a7e6751 00254a6f94b9de082d52779cc1e610355a7fa1a1a1a1a1a1a1a1a1a120456a8f
|
||||
width 12, case 38 bytes 512 02005bbd9c77f62ceb48dca3885f9719 00254a6f94b9de08a1a1a1a1a1a1a1a15a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 39 bytes 512 058f7e9193fbb196b9a3e26583885b85 00254a6fa1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a220456a8f
|
||||
width 12, case 40 bytes 512 e44cfc94054d0f37d3231099ab4797f5 00254a6f94b9de082d52a1a2a1a2a1a2a1a2a1a2ee183d6287acd1f620456a8f
|
||||
width 12, case 41 bytes 512 b222a233e9b1b2b57ea3718c7c03dabc 00254a6f94b9de082d52779cc1e610355a7fa1a2a1a2a1a2a1a2a1a220456a8f
|
||||
width 12, case 42 bytes 512 75d56f622cd7780d9707b12ec11c92b9 00254a6f94b9de08a1a2a1a2a1a2a1a25a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 43 bytes 512 59809080921f2086666f1b84fbaf41fc 00254a6f94b9404040404040404040404040a4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 44 bytes 512 c64eae0f405a7d041e61f00e3a7f05fc 00254a6f94b9400040004000400040004000a4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 45 bytes 512 95cc2b995d57eb6e592bc42e419b5869 00254a6fa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a140404040a1a120456a8f
|
||||
width 12, case 46 bytes 512 491ba45c74d83972c1e7845296ee4474 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 47 bytes 512 46ba5497c6f976c959a8249676717339 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 48 bytes 512 aa5cb3792f782534e9679344139173ec 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 49 bytes 512 867b35596f0d4fc2ba45e5d993f8d798 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 50 bytes 512 c5d62ce064fce4cc6bc1b2627736e114 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 51 bytes 512 f73c7665d5eca3f5e547ab39fd1cbe7c 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 52 bytes 512 7aa562aa289a65b999762a01fd9ef955 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 53 bytes 512 97ff5b47254d7cd59ceba95fb7907338 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 54 bytes 512 a948b40d6aaf4b2af819b6186a7ead10 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 55 bytes 512 8005356cbaabed6820958ae4435e6110 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 56 bytes 512 387a0631e5950100dda5e849f695aa90 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 57 bytes 512 5f4579e1eec8d19660f4b07553958d79 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 58 bytes 512 e60428f7e7c08e1e13cfbc04a139f7f5 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 59 bytes 512 55f2be02d023f4b8be81e0e4b9b99781 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 60 bytes 512 656b0efee131b4e3f94d8f24a7d2fb34 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 61 bytes 512 b75a0e29df5d13f35fc13fd9bcb92399 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 62 bytes 512 10347ec0f38a4020b7eba4411333ef90 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 63 bytes 512 a8031100e413dc6eae6b2cde8f0d46a4 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 64 bytes 512 efa9e5bcf6a5c2d35a0d8ffe28891354 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 65 bytes 512 4b5441dfd78b4985ff8c7e3f6cb5215c 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 66 bytes 512 c8f3a25cafa94e749a3d5766e7baf65c 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 67 bytes 512 29b5d031f189378092cda02759227145 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 68 bytes 512 2cdbd5bd1b2cc738ab94fac412a4c946 a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 69 bytes 512 dec0ce998ce2a09d4288aaae69494cdc 00254a6f94b9de082d52779ca1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 70 bytes 512 21735e01bb00fa562aef0997d92056a6 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f6a1a1a1a1
|
||||
width 12, case 71 bytes 512 06d70c98ba160ec7955a8684afc7bacc 00254a6f94b9de08a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a187acd1f620456a8f
|
||||
width 12, case 72 bytes 512 947188db350cf3068579d3d4dd100a46 a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2
|
||||
width 12, case 73 bytes 512 24ad158e59fcf4d9d94829a7657d6a2c 00254a6f94b9de082d52779ca1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2
|
||||
width 12, case 74 bytes 512 f1ec28bacecc61ac93ea76449799e676 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f6a1a2a1a2
|
||||
width 12, case 75 bytes 512 b8cc03f9c9e60c640419863f36e93a4c 00254a6f94b9de08a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a287acd1f620456a8f
|
||||
width 12, case 76 bytes 512 b0b6718491ebf29d86f98e040b21e9d6 a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4
|
||||
width 12, case 77 bytes 512 b3eca17f47192d7f1e1c027ace745d6c 00254a6f94b9de082d52779ca1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4
|
||||
width 12, case 78 bytes 512 0dcb09a9086beb566c9b2d0fea8ef3f2 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f6a1a2a3a4
|
||||
width 12, case 79 bytes 512 d957aeb748757f3438141a6c0141605c 00254a6f94b9de08a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a487acd1f620456a8f
|
||||
width 12, case 80 bytes 512 361d69a2fc7f41292c16c07455f7d3cd 00254a6f40404040404040404040404040404040404040404040404020456a8f
|
||||
width 12, case 81 bytes 512 390d9c34e9d6f1c7c4fce1e384e1e84d 00254a6f40004000400040004000400040004000400040004000400020456a8f
|
||||
width 12, case 82 bytes 512 b7321bc15fe0f7dbc431011d75f99159 00254a6f4000ffbf4000ffbf4000ffbf4000ffbf4000ffbf4000ffbf20456a8f
|
||||
width 12, case 83 bytes 512 101c71d3214a454ec9e8282614a11d3e a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 84 bytes 512 957a120ffbef78eee15b3d7594f066ae 00254a6fa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 85 bytes 512 1d6e482718cf80259d1fc6d9a1dbddf8 00254a6f94b9de082d52779cc1e61035a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 86 bytes 512 9a40ab2c95e002ba31250bc8d444c68e 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 87 bytes 512 5c2a1500acd0f5000e5f98ba4b3320b8 00254a6f94b9de082d52779ca1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a120456a8f
|
||||
width 12, case 88 bytes 512 2937df2aa20c4d079385022cdad5a42e 00254a6fa1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2
|
||||
width 12, case 89 bytes 512 5059e5fb31df7c9de71e7a843e9af688 00254a6f94b9de082d52779cc1e61035a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2
|
||||
width 12, case 90 bytes 512 9f81392d9cf4aedb8692b0b93889f4fe 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 91 bytes 512 2a0bbb4ef7b7ef9b81c4f8bf54e27538 00254a6f94b9de082d52779ca1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a220456a8f
|
||||
width 12, case 92 bytes 512 0ec7115dcb83437ea35ceeb13c06d5fe 00254a6fa1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4
|
||||
width 12, case 93 bytes 512 b9738d215a12fe0878ddeb4166e7a7c8 00254a6f94b9de082d52779cc1e61035a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4
|
||||
width 12, case 94 bytes 512 9a8d035e2b45f9f7075fe87b074f4e8a 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 95 bytes 512 2ade495b329492fe386200b2bf3b2948 00254a6f94b9de082d52779ca1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a420456a8f
|
||||
width 12, case 96 bytes 512 aa960a99c8ff4dba1cc786ae4c1a4dfc 00254a6f94b9de08404040404040404040404040404040404040404040404040
|
||||
width 12, case 97 bytes 512 880e69491eefcfbd972b172596d08dfc 00254a6f94b9de08400040004000400040004000400040004000400040004000
|
||||
width 12, case 98 bytes 512 a62291d59aab009ecbbdd4585ba2f648 00254a6f94b9de084000ffbf4000ffbf4000ffbf4000ffbf4000ffbf4000ffbf
|
||||
width 12, case 99 bytes 512 698036e2fe483aa18693862150d4d266 00254a6fa1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 100 bytes 512 bfc635a234216dfa2d2bc954eb9d5ca5 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 101 bytes 512 e9abeec2477fbf72fe3dda7afd8e7f73 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 102 bytes 512 363521212eb26bafee4e5184e9a60fcd 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 103 bytes 512 21bd43977df390859421e4148d4e79bc 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 104 bytes 512 836c68893cb3796ba9fe815f7fc77865 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 105 bytes 512 723d5d2941ac62c89a71e06638da8a03 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 106 bytes 512 2a12091ccd48703835c8aadffdf310fd 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 107 bytes 512 873acb4fca3d497385882c860c1f7afc 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 108 bytes 512 512a685235b244aef49db9c6b4effed5 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 109 bytes 512 95576cb8bca693077d83e2b1fe77b943 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 110 bytes 512 12f6e7d8edbe3f2750e2acbfbbf319c1 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 111 bytes 512 6e62b5d1144e480509aa3a22c6c06c4c 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 112 bytes 512 b869a2bbf32a6d3e29753599949d9de1 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 113 bytes 512 633bcb7d46598d6d7fb3524eaa1bdee1 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 114 bytes 512 8705d7725a48390300b9f90fe34f4135 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 115 bytes 512 a48a82f9110c09d476bdfe508ca5a96d 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 116 bytes 512 d3046010773047408cbd3851e7f247d9 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 117 bytes 512 b336c9279c5fee4bb70301da6214333f 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 118 bytes 512 0b996c215db3ef52f3d7920c901e6e86 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 119 bytes 512 b15d9d4c594ff6b9e8bcfcfa4e203610 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 120 bytes 512 7d2f8e79cd7be10966a3735cc648c999 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 121 bytes 512 8cb4875a761b645c63f9758c8a62198f 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 122 bytes 512 26661b09cf10c8d8c793b191980687be 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 123 bytes 512 d5c5346812dd4f9f2f49c2029aa85250 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 124 bytes 512 d7a8ca4de6ebc8eae776ec7ce4140bc9 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 125 bytes 512 7bca7ece43e4f82a780da622b07c430f 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 126 bytes 512 cbcad12ec9f441870c3bfce24a9047fe 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 127 bytes 512 6fa19ddfe2144b09f2bbe3322b29bfa0 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 128 bytes 512 98196834f410d9f46daaeef874742b16 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 129 bytes 512 6f265064b6d7d93fc192c8be13661b96 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 130 bytes 512 0d9323c885b35f9babf8a1faa22a910a 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 131 bytes 512 8b88c5b291f34b6f129bde4292d9a021 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 132 bytes 512 b4b776d3aac0d979e17cba627264923e a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 133 bytes 512 a0d6d7c1c8420ce1739b0294c2c83a25 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d62a1a1a1a1a1a1a1a1
|
||||
width 12, case 134 bytes 512 78caef1dbc47d4a324c3da72d1f43fca 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 135 bytes 512 e2e9add906534350cafe58bee6f343db 00254a6f94b9de082d52779cc1e61035a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 136 bytes 512 d1ea3ae4b6c90b4f22af3d8e07b4977e a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2
|
||||
width 12, case 137 bytes 512 d1909541d6812cb29bc768a49f5de5c5 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d62a1a2a1a2a1a2a1a2
|
||||
width 12, case 138 bytes 512 c1c0becfe0f28afa5da955cd0921346a 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 139 bytes 512 a266b51802cb401fcc828a072191b29b 00254a6f94b9de082d52779cc1e61035a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2
|
||||
width 12, case 140 bytes 512 20c519d51caa876f7988f0b489d19a9e a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4
|
||||
width 12, case 141 bytes 512 09db3e9828020d5f2f67e971fac4e58d 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d62a1a2a3a4a1a2a3a4
|
||||
width 12, case 142 bytes 512 8b4a7336569cd6ca244cba88e18d5a12 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 143 bytes 512 e10ff06ba666e34413e14c4fe532ef7b 00254a6f94b9de082d52779cc1e61035a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4
|
||||
width 12, case 144 bytes 512 7c1b7bebc99564ba55c26a455f5f389e a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8
|
||||
width 12, case 145 bytes 512 4092ce357b1543bdd500b0bd8d66e385 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d62a1a2a3a4a5a6a7a8
|
||||
width 12, case 146 bytes 512 fbe72210c81c0dbbd4420f73fe87d73a 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 147 bytes 512 4785df0830af1b4a7e5f6936bba030bb 00254a6f94b9de082d52779cc1e61035a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8
|
||||
width 12, case 148 bytes 512 38377a9b4693d3b7817b41d6108416dc 00254a6f94b9de08404040404040404040404040404040404040404040404040
|
||||
width 12, case 149 bytes 512 60106c73b8c7d3ea6c5ed654214896dc 00254a6f94b9de08400040004000400040004000400040004000400040004000
|
||||
width 12, case 150 bytes 512 af05189498570ffed5ccb1c5adcf8d24 00254a6f94b9de084000ffbf4000ffbf4000ffbf4000ffbf4000ffbf4000ffbf
|
||||
width 12, case 151 bytes 512 b8174f49e5a2d2eee22dd77d1a4736dc 00254a6f94b9de08003400b8003d003a003400b8003d003a003400b8003d003a
|
||||
width 12, case 152 bytes 512 16f587fa1dc0b235672ae71c009e072e a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 153 bytes 512 fc2a996ebfaee6961b4138353d6afea3 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 154 bytes 512 e3e40179b6b7b9122277fa68175567d7 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 155 bytes 512 aa19a64f3e5e64077be14c56391430df 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 156 bytes 512 d6043dbd47fa01146420b9a76bb4061c 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 157 bytes 512 25b61cb7168e8264f884d012ceb76563 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 158 bytes 512 c5a31af63fa2d3f56d3422e35423f637 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 159 bytes 512 aa289c9b6881f9e4f437ba85280721bf 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 160 bytes 512 3abba2943e9b1425c1aebbb1a348e5dc 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 161 bytes 512 bdc34e41c033101c88a82c7ec5b4cb83 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 162 bytes 512 f868658e97d2c2a8878d5c970855293f 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 163 bytes 512 fc25646a1800ef9f933b90556d225a87 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 164 bytes 512 e3f78061e530fbb5a7e46d9852f52b3c 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 165 bytes 512 6b73f2d22be0b9944df4dcf78d2f1183 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 166 bytes 512 8b980870e34846a7fc3693f204a8f7b7 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 167 bytes 512 c458c672ca089aac3a0af2d4e5cd969f 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 168 bytes 512 e78fd3d7eb97da5118b8c9171ee097fc 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 169 bytes 512 12a801e5a0cff5af30d1f529974c2231 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 170 bytes 512 2eeed81e862ede03c933887687c18d31 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 171 bytes 512 ae07598598a34e17b62a15f99a6e7b59 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 172 bytes 512 e0d85b955443ed2cdfba520b7d550c71 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 173 bytes 512 97fe8ad5d0e760625450eba98bf79d73 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 174 bytes 512 815b8f3548d98bd3ed62324192685ac7 a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 175 bytes 512 5cc9f5464d8629f9a07e5dbc12fb4fe1 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 176 bytes 512 99d5431c7cbc2ef1862594593c2044ef 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 177 bytes 512 81c7287c6ff6cab1c27c66cc7b867f4e 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 178 bytes 512 f35497d27a05f94ab3278a705ef452c7 a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2a1a2
|
||||
width 12, case 179 bytes 512 cc1d264e575bc7ce71671604cd71ec41 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 180 bytes 512 c205fd7bbbb6e635a8b1320ce14e1eef 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 181 bytes 512 145cdba30f9f31f0994e60cc04bbd64e 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 182 bytes 512 dfa9d8a2453bfa8c134cbcd451968f87 a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4a1a2a3a4
|
||||
width 12, case 183 bytes 512 03fb6ee805bb422e21b6f2b21d797831 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 184 bytes 512 cebacb601cdd8fbdb6a5e7433079e0df 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 185 bytes 512 ac4870f973461c5d7878b5fa8af73d0e 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 186 bytes 512 bd6c54e3257793d40543d2d27fd5d487 a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8a1a2a3a4a5a6a7a8
|
||||
width 12, case 187 bytes 512 ff2d333d6fff58426587848396fe2371 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 188 bytes 512 2fb3765f25270f78ea4e377245a0559f 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 189 bytes 512 2ff2f814a4489412ce7cf10dbc00cc0e 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 190 bytes 512 1a9ee76daf2a485fbe427e81d6ec3707 a1a2a3a4a5a6a7a8a9aaabacadaeafb0a1a2a3a4a5a6a7a8a9aaabacadaeafb0
|
||||
width 12, case 191 bytes 512 95052de2161bc4978a9a5a526add3ca1 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 192 bytes 512 4d1add51b54093ef792126bc8335542f 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 193 bytes 512 bb161462ef9595eec16febd590bbae8e 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 194 bytes 512 d4e94485f0a894874d2b29e929ff28b4 00254a6f94b9de082d52779cc1e6103540404040404040404040404040404040
|
||||
width 12, case 195 bytes 512 c3c7d9b1e12b4fce5b1aec8b583a48b4 00254a6f94b9de082d52779cc1e6103540004000400040004000400040004000
|
||||
width 12, case 196 bytes 512 e652543d0feac59fcd6f6010e9c40804 00254a6f94b9de082d52779cc1e610354000ffbf4000ffbf4000ffbf4000ffbf
|
||||
width 12, case 197 bytes 512 2c4a2e593df516388ca9ed51104716b4 00254a6f94b9de082d52779cc1e61035003400b8003d003a003400b8003d003a
|
||||
width 12, case 198 bytes 512 327fefdb2e2b8b4923b07abbbf8532b4 00254a6f94b9de082d52779cc1e610350000803e000000bf0000a03f0000403f
|
||||
width 12, case 199 bytes 512 5c16353f7373e71eaa091edb5a0e1d67 a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
|
||||
width 12, case 200 bytes 512 abe86bd856b0fa2c3cfd9dd5a2bc68ae 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 201 bytes 512 99d5431c7cbc2ef1862594593c2044ef 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 202 bytes 512 05a2778f464b02f2d8992d3166b87907 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 203 bytes 512 f8493b7efb42f4dfd9aa24521525ccb8 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 204 bytes 512 977cf80193536d9c15728f4826b67cae 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 205 bytes 512 c205fd7bbbb6e635a8b1320ce14e1eef 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 206 bytes 512 1bbc67887ecf0a7c848916770c2444c7 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 207 bytes 512 1d65c85a0f219bd1f699da4ae76d6538 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 208 bytes 512 1ccecd3612dd97f08afbd9d70815f7ee 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 209 bytes 512 cebacb601cdd8fbdb6a5e7433079e0df 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 210 bytes 512 833bffbbdf32ca4fb02e4e085a2a5657 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 211 bytes 512 f49ffadedca55fcc7bb271b20cc6cd78 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 212 bytes 512 42b97437836743197e3dc05573512cee 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 213 bytes 512 2fb3765f25270f78ea4e377245a0559f 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 214 bytes 512 85e7c03b92a8c92bd028982090058b77 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 215 bytes 512 e6ca6c14c06191699b5e10b75b1d3cf8 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 216 bytes 512 aafd728595e2462c277333958f1bc46e 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 217 bytes 512 4d1add51b54093ef792126bc8335542f 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 218 bytes 512 bcb767ed777f1675b17a9f05c14ec427 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 219 bytes 512 c2dfd582145ddaa57a949b236a12dd78 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 220 bytes 512 41a533f8385f5df9cdd6fc1bf46c7025 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 221 bytes 512 d90134ed216a130e172a7451aa673425 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 222 bytes 512 b10644c9fb43515defd72610857efd75 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 223 bytes 512 0a2214b49b86e6f047a174b4183a3025 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 224 bytes 512 e46f3f6ecdde17bb629ef916a3e2c665 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
width 12, case 225 bytes 512 c75d2712b071b1a473b1797696fe8b8e 00254a6f94b9de082d52779cc1e610355a7fa4c9ee183d6287acd1f620456a8f
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0 bytes 64 b5e5e982570c745251eaa6e868e1759e 01020304010203040102030401020304eeeeeeeeff8040ffff8040ffeeeeeeee
|
||||
case 1 bytes 8 0bf4cc51c9659956a77e59b02b9da18f 01010101ffffeeee
|
||||
case 2 bytes 32 ffa00f16bad8a05e49ea2e57bd789909 003c003800b4007c80808080808080800000c07f000000c00000c07f000000c0
|
||||
case 3 bytes 32 3d3afac6890b5a6bdd881a19f2270ff0 0000c03f000000c0000050400000c07f70110100000000000200000000286bee
|
||||
case 4 bytes 16 39bb8692d38a750c06e64de7628eb312 0000003feeeeeeeeeeeeeeee0000803e
|
||||
case 5 bytes 8 2d2e860e6c65987cc0db29cff54eb7cd eeee3412eeee3412
|
||||
case 6 bytes 16 7843613f1b892878804a2695e12aebd5 eeeeeeeeeeeeeeee01020304eeeeeeee
|
||||
case 7 bytes 16 b2ec119407e6602aa1f4b1d3cb31629d eeeeeeee01020304eeeeeeee090a0b0c
|
||||
case 8 bytes 16 7843613f1b892878804a2695e12aebd5 eeeeeeeeeeeeeeee01020304eeeeeeee
|
||||
case 9 bytes 24 6fefb3a1b654754fd73781d669ac556d 05060708090a0b0ceeeeeeee01020304eeeeeeeeeeeeeeee
|
||||
case 10 bytes 48 d91929e3424dea39c4ec8f4cb2b0b755 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee01020304
|
||||
case 11 bytes 32 52f0664d8cc403feb9f9797d03cb4dfd 05060708eeeeeeeeeeeeeeeeeeeeeeee05060708eeeeeeee0102030401020304
|
||||
case 12 bytes 84 c2779eb117c58a1bd041db39b75341c3 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
case 13 bytes 33554432 6dceaa4d5a4e4339b988847545dde4b0 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
case 14 bytes 8 309749e9476598d0261f33310d0994e3 ff8040ffeeeeeeee
|
||||
-35
@@ -1,35 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
chain 1: format 90 513x513 of 2 levels level 0 bytes 1052676 181b9c1a28c8815191b31c13e717ccbc 3c5e81b40c5ec68e04a3406c97d63cfbdc53ae88371a125121b5956143c0ee2d
|
||||
chain 1: format 90 513x513 of 2 levels level 1 bytes 262144 76cb113633456d161f734cfa68e2fabf edc523a26d7609abbda2895a5341396c232ef49e88ca47a53ffbd4124d76caa0
|
||||
chain 2: format 90 513x513 of 2 levels level 0 bytes 1052676 8b1b58d82736876576fcf0f1ef4727af 3c7530bdb71e347886b2b41b91c976720357fb6be8aabd633f262e25125e8455
|
||||
chain 2: format 90 513x513 of 2 levels level 1 bytes 262144 717302e4052bb11b9ea7e2ffffa7f17c cbfa73a761f1b7a289fa8a6f8851095676e9e7a9d91568a7397a99a36edef789
|
||||
chain 3: format 94 513x513 of 2 levels level 0 bytes 1052676 4824eb624211d964b47c52360c1af95b 3c8cdfc762dda36308c128ca8bbdb1e92a5b474e993a69765d97c8e9e1fc1b7c
|
||||
chain 3: format 94 513x513 of 2 levels level 1 bytes 262144 d31523e217852d05d7cd5b39f84a9919 e3b0889d182d17990d02c86402de19a13c6a9c55667965697106f6a37846f5a3
|
||||
chain 4: format 90 257x257 of 2 levels level 0 bytes 264196 26ef43561f8df55d404936fcc16f0ccd 3ca48ed00c9c114d8acf9c7a85b1eb61525f94314acb14887b0861aeb19ab1a4
|
||||
chain 4: format 90 257x257 of 2 levels level 1 bytes 65536 471f259311a785e6b833bb0554d255a4 7f05564f8b991965334a4897f9cdf3696cde73586679a863676ee79c9dce1757
|
||||
chain 5: format 90 64x64 of 7 levels level 0 bytes 16384 05ef0c43dfbc6da2370ea392d7ef2741 3cbb3edab75c7f380dde10297fa425d87963e014fa5bc09b9979fa72803847cc
|
||||
chain 5: format 90 64x64 of 7 levels level 1 bytes 4096 eb9818bcdf4ee346804616bb45aac056 5781bb6a96819558054bc39b613569982025d8a8224d5567f16167b3ca2985a1
|
||||
chain 5: format 90 64x64 of 7 levels level 2 bytes 1024 01bf245a584668ffda730aa3b9301879 106e595d1c8af79d827167a8120696a7b621f99e86cd879db2052a9bfa71879b
|
||||
chain 5: format 90 64x64 of 7 levels level 3 bytes 256 5a5c4106c2b7994adfeeee731797d290 1306399ee68d76a4e0f528a0f041389ce8f1b79fe92dc7a0a3bd479fed9d47a1
|
||||
chain 5: format 90 64x64 of 7 levels level 4 bytes 64 ec5dd37d69dfaa2246f5aa48e4494838 031e88a2067ec89e0ca6279fd9d9e7a005e6679f01ea87a0eaf167a2f1d987a1
|
||||
chain 5: format 90 64x64 of 7 levels level 5 bytes 16 269063a9925303604fea67b5fa2ad47c 041a48a0f0d1f7a0f00d889ffcf1a79f
|
||||
chain 5: format 90 64x64 of 7 levels level 6 bytes 4 65f63d10d5757277b806e864781b71c5 f8f917a0
|
||||
chain 6: format 90 45x29 of 6 levels level 0 bytes 5220 414afad8f2869a2d919e94a9d7a8d53c 3dd2ede3621bee238fed84d87998604fa0672cf7abeb6badb7ea94364fd6def3
|
||||
chain 6: format 90 45x29 of 6 levels level 1 bytes 1232 a5c0cd118fd738754d4d4339c137bf00 1f1adaa49fb9d1972e370aa2171adca198ee17ab0b49f56bb73116a0e639f56e
|
||||
chain 6: format 90 45x29 of 6 levels level 2 bytes 308 6fb7c63ac636d560499ba1fa6d0509fc be91f5a12252389c9ca556a6bd5177aa06eac59ca5b9ba9b0276a8613d265aa3
|
||||
chain 6: format 90 45x29 of 6 levels level 3 bytes 60 f10797c1a0513b62b5e0e50ef38396ad 16f2569d357ed763835e1aa4a232675ce0590861f2d9679cb6ed94aa6916f656
|
||||
chain 6: format 90 45x29 of 6 levels level 4 bytes 8 babd953d5b6597ef960a7e9ee721802d c5a905a7e03d095c
|
||||
chain 6: format 90 45x29 of 6 levels level 5 bytes 4 654fec2f28757277b806e831d456c32d d37587a1
|
||||
chain 7: format 94 64x64 of 7 levels level 0 bytes 16384 c593314ed5196ef220d506a6bcdeb103 3de99ced0cdb5c0d11fbf988738c9ac7c76b79da5c7b17bfd55b2dfb1f74741b
|
||||
chain 7: format 94 64x64 of 7 levels level 1 bytes 4096 7835fd390d23c9fdfb12d7fc1d7c2224 a2b53d68ef999a9b95d2a6a2cb490a64e491855f9d18f9a9e64acb6b4c23ab9c
|
||||
chain 7: format 94 64x64 of 7 levels level 2 bytes 1024 3d00aa0da10ec757f58667f05e2367b1 1c8a999b33fa68a2a469599da5c648a3cd81c6aaab29479f3382e85b3e3ee86c
|
||||
chain 7: format 94 64x64 of 7 levels level 3 bytes 256 8e4185977b802a603a2f2c316f752b60 17ee279f159ac89f00e627a323bac7600ff6a7a4e2b5379df09de7a0e10dc89d
|
||||
chain 7: format 94 64x64 of 7 levels level 4 bytes 64 7dc0600003ea476993912cd97de65dfb 080ed89f099e47a1fd0da8a1faf9b79fdf1de8a00dea47a017b2d7a1f279e89e
|
||||
chain 7: format 94 64x64 of 7 levels level 5 bytes 16 de7182e1c1036c240c22d15f1bb4eb72 ffed97a0000e88a0feeda79ff61d98a0
|
||||
chain 7: format 94 64x64 of 7 levels level 6 bytes 4 65d5223555757277b806e85ab654109b fd0158a0
|
||||
chain 8: format 94 45x29 of 6 levels level 0 bytes 5220 0fa7a9a5db995e6855cb0e3a420c4f86 3d014cf6b79acaf8930a6d376d7fd53eee6ec5bd0d0bc3d2f3ccc7bfee120b43
|
||||
chain 8: format 94 45x29 of 6 levels level 1 bytes 1232 e8bde6b08144a73d8373dd23cacff02f 3f2207b66ab758ad3a06f9a8fc3ef99d4f9b36ad1b86449c8e9d32e24b5624b4
|
||||
chain 8: format 94 45x29 of 6 levels level 2 bytes 308 56c6332fe82c253ce275323b28949919 087ae7a8851a469d446607a4011206a3b0e187966b6e55a343ae579f633ef8a5
|
||||
chain 8: format 94 45x29 of 6 levels level 3 bytes 60 c1737bce12065a189a777e77b24bf0d3 ffd5a7a09c9d075cd36da46175323662fbe5069d051676636286d7a50542fc65
|
||||
chain 8: format 94 45x29 of 6 levels level 4 bytes 8 216559d2ce659a86fd4eb5e72d1e9033 4b2a37a5affda79c
|
||||
chain 8: format 94 45x29 of 6 levels level 5 bytes 4 65d2914deb757277b806e859a850e1dc fd91e7a0
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
storage 0 None bytes 20616 3ce34c6ca0c9bc23551dde0613969b62 80500000000000000004f63fc50666187b05161880e5071980b51718b5f90500
|
||||
storage 0 Some(((0, 0), (16, 2), (0, 6))) bytes 20616 91a42d0cf971ecf8db21549a4fcbf536 8050000000000000000102030405060708090a0b0c0d0e0f1011121314151617
|
||||
storage 0 Some(((2, 1), (8, 3), (4, 5))) bytes 20616 aab2fe04d3fb92973f902262b09210af 8050000000000000000102030405060708090a0b0c0d0e0f1011121314151617
|
||||
storage 2 None bytes 20616 3ce34c6ca0c9bc23551dde0613969b62 80500000000000000004f63fc50666187b05161880e5071980b51718b5f90500
|
||||
storage 2 Some(((0, 0), (16, 2), (0, 6))) bytes 20616 91a42d0cf971ecf8db21549a4fcbf536 8050000000000000000102030405060708090a0b0c0d0e0f1011121314151617
|
||||
storage 2 Some(((2, 1), (8, 3), (4, 5))) bytes 20616 aab2fe04d3fb92973f902262b09210af 8050000000000000000102030405060708090a0b0c0d0e0f1011121314151617
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, 550 [7, 3, 1]: [Bytes(0, 0, [0, 0, 0], [7, 3, 1], [1, 2, 3, 4, 5, 6, 7, 8])] bytes 84 9a5fd478f41769cdeff447799241dd85 0102030401020304010203040102030401020304010203040102030401020304
|
||||
case 1, 550 [7, 3, 1]: [Bytes(0, 0, [2, 1, 0], [9, 5, 1], [9, 10, 11])] bytes 84 a2bb11b095a756ede0dfef7ddaa59806 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee090a0b09eeeeeeee
|
||||
case 2, 551 [7, 3, 1]: [Color(0, 0, [3, 1, 0], [20, 3, 1], [1.0, 0.5, 0.25, 1.0], 70)] bytes 84 6d3892e15d1543af3cfb1c35874c596f eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
case 3, 550 [6, 2, 1]: [Bytes(0, 0, [0, 0, 0], [6, 2, 1], [1, 2, 3, 4, 5, 6, 7, 8])] bytes 48 80b7071ba4356a6b2f193021bcc727ad 0102030401020304010203040102030401020304010203040102030401020304
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
(0, 550, (16, 8)) bytes 20608 160600213d4f8ff2e86343f3187fd14d 0102030101020301010203010102030101020301010203010102030101020301
|
||||
(0, 550, (6, 5)) bytes 20550 0561a813bea442678670be6184a18aaa 0102030101020301010203010102030101020301414243444142434441424344
|
||||
(0, 551, (16, 8)) bytes 20608 160600213d4f8ff2e86343f3187fd14d 0102030101020301010203010102030101020301010203010102030101020301
|
||||
(0, 551, (6, 5)) bytes 20550 0561a813bea442678670be6184a18aaa 0102030101020301010203010102030101020301414243444142434441424344
|
||||
(2, 550, (16, 8)) bytes 20608 160600213d4f8ff2e86343f3187fd14d 0102030101020301010203010102030101020301010203010102030101020301
|
||||
(2, 550, (6, 5)) bytes 20550 0561a813bea442678670be6184a18aaa 0102030101020301010203010102030101020301414243444142434441424344
|
||||
(2, 551, (16, 8)) bytes 20608 160600213d4f8ff2e86343f3187fd14d 0102030101020301010203010102030101020301010203010102030101020301
|
||||
(2, 551, (6, 5)) bytes 20550 0561a813bea442678670be6184a18aaa 0102030101020301010203010102030101020301414243444142434441424344
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
2 2 levels 1 slices: Bytes(1, 0, [0, 0, 0], [8, 4, 1], [1, 2, 3, 4, 5, 6, 7, 8]) bytes 20608 55985540ed8f5a3f3c6796f5be1f478d 0102030401020304010203040102030401020304010203040102030401020304
|
||||
2 3 levels 1 slices: Bytes(2, 0, [0, 0, 0], [4, 2, 1], [1, 2, 3, 4, 5, 6, 7, 8]) bytes 20608 7a8d19c44f4ff8fabf9ad1d1a293eb6d 01020304010203040102030401020304101112131415161718191a1b1c1d1e1f
|
||||
2 3 levels 1 slices: Bytes(1, 0, [1, 1, 0], [3, 2, 1], [33, 34, 35, 36]) bytes 20608 dae93a451591db663f3eb624d271cb8d 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
|
||||
3 2 levels 2 slices: Bytes(1, 1, [0, 0, 0], [8, 4, 1], [1, 2, 3, 4, 5, 6, 7, 8]) bytes 20736 86ae5780825dc6566cb15998899b7c0d 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
|
||||
3 1 levels 2 slices: Bytes(0, 1, [0, 0, 0], [16, 8, 1], [1, 2, 3, 4, 5, 6, 7, 8]) bytes 20736 3393a9e66e602bb5000e59b786ab768d 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
|
||||
3 1 levels 2 slices: Bytes(0, 0, [0, 0, 0], [16, 8, 1], [1, 2, 3, 4, 5, 6, 7, 8]) bytes 20736 1779830acb3539bcbbed07ae24fb768d 0102030401020304010203040102030401020304010203040102030401020304
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
(550, 550) None bytes 1032 7c3aff1e15382cc0f8470e0b024ca149 0004000000000000c6ad4f37183cdf3a75310a3ce938a6311fb78f3a47b30f3b
|
||||
(550, 550) Some(((4, 2), (8, 4), (8, 3))) bytes 1032 00585a91d6eea073d51e95a22eb112bb 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(550, 551) None bytes 1032 654a5de98f26a17ac0b213c61f33509d 000400000000000060a0a431383cdf3a5026173c5c35a63156b11a396ca90f3b
|
||||
(550, 551) Some(((4, 2), (8, 4), (8, 3))) bytes 1032 2bef1d340046cfaf369d2adaba46a689 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(551, 550) None bytes 1032 f2cbe1bc70e5ecb74ac71891b2b0262f 00040000000000004db5a6390a3cdf3a2f37043c723aa63196b9533b1cb80f3b
|
||||
(551, 550) Some(((4, 2), (8, 4), (8, 3))) bytes 1032 7e2353180859b38be6e25a373248bd3e 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(551, 551) None bytes 1032 2ef8e455542a614d4a8c31e85728f899 0004000000000000bead4e37173cdf3a6f31093ce938a63120b78d3a43b30f3b
|
||||
(551, 551) Some(((4, 2), (8, 4), (8, 3))) bytes 1032 b2d46decdf0bc5f4d92f6058a0ee4a7f 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
550 bytes 12504 8b8e0988cdaca944b8f21312978c35a3 000f0000000000003c5e81b40c5ec68e04a3406c97d63cfbdc53ae88371a1251
|
||||
551 bytes 12504 8b8e0988cdaca944b8f21312978c35a3 000f0000000000003c5e81b40c5ec68e04a3406c97d63cfbdc53ae88371a1251
|
||||
-105
@@ -1,105 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
(((16, 8), (16, 8)), Slices, Default) (550, 550) bytes 1032 7c3aff1e15382cc0f8470e0b024ca149 0004000000000000c6ad4f37183cdf3a75310a3ce938a6311fb78f3a47b30f3b
|
||||
(((16, 8), (16, 8)), Slices, Default) (550, 551) bytes 1032 654a5de98f26a17ac0b213c61f33509d 000400000000000060a0a431383cdf3a5026173c5c35a63156b11a396ca90f3b
|
||||
(((16, 8), (16, 8)), Slices, Default) (551, 550) bytes 1032 f2cbe1bc70e5ecb74ac71891b2b0262f 00040000000000004db5a6390a3cdf3a2f37043c723aa63196b9533b1cb80f3b
|
||||
(((16, 8), (16, 8)), Slices, Default) (551, 551) bytes 1032 2ef8e455542a614d4a8c31e85728f899 0004000000000000bead4e37173cdf3a6f31093ce938a63120b78d3a43b30f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (3, 8), (1, 0))), Default) (550, 550) bytes 1032 c2ce1af4053787065b3519461e8aa3fb 0004000000000000c6adf93888375f3b75310a3ce938a6311fb78f3a47b30f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (3, 8), (1, 0))), Default) (550, 551) bytes 1032 2f7b60f97dcb1311fd53a823ca39c787 0004000000000000beadf73888375f3b5026173c5c35a63156b11a396ca90f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (3, 8), (1, 0))), Default) (551, 550) bytes 1032 6594b0e8ed80b50190f96674254d81b2 0004000000000000c6adf93888375f3b2f37043c723aa63196b9533b1cb80f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (3, 8), (1, 0))), Default) (551, 551) bytes 1032 dfceb00f4c576ba122e10406ac8a275f 0004000000000000beadf73888375f3b6f31093ce938a63120b78d3a43b30f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 2), (3, 4), (5, 1))), Default) (550, 550) bytes 1032 de03eb679e1f1c5ed01144d650ed97e1 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((1, 2), (3, 4), (5, 1))), Default) (550, 551) bytes 1032 1b9aa69ea315e7c07f94b77a5db02a19 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((1, 2), (3, 4), (5, 1))), Default) (551, 550) bytes 1032 de6b456cfee464ea1ca3f3a3f37108bc 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((1, 2), (3, 4), (5, 1))), Default) (551, 551) bytes 1032 c7ff16c35bc095e5eabaa37caf766f37 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((2, 1), (5, 3), (9, 4))), Default) (550, 550) bytes 1032 ec43ad14d7ffbfbc4aa0330d2d4f0bfc 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((2, 1), (5, 3), (9, 4))), Default) (550, 551) bytes 1032 042060f05f4fae34b01b3174b575b13f 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((2, 1), (5, 3), (9, 4))), Default) (551, 550) bytes 1032 0c62b9cd9ac32891671b59d7817eba2b 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((2, 1), (5, 3), (9, 4))), Default) (551, 551) bytes 1032 5ad0897798c03579734463acef4fee97 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((3, 0), (1, 8), (0, 0))), Default) (550, 550) bytes 1032 41a75c13767b25b0712cedbf68fbb094 00040000000000003737563aae39003cafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((3, 0), (1, 8), (0, 0))), Default) (550, 551) bytes 1032 4db97f0078ca3b53fb57b6e1372b533b 00040000000000007c31ba386537003cb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((3, 0), (1, 8), (0, 0))), Default) (551, 550) bytes 1032 c5bb1c3e20521912f5ce8996f58edbdd 00040000000000009e39373bdf3a003cafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((3, 0), (1, 8), (0, 0))), Default) (551, 551) bytes 1032 7be9b5ccc2ea804b735c3e528b4a27e2 00040000000000003737553aab39003cb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((4, 0), (4, 8), (1, 0))), Default) (550, 550) bytes 1032 a243d9c094245bb3aedecc8830676217 0004000000000000c6adf93888375f3bd7b2c82f07a304285c38a7aef732e534
|
||||
(((16, 8), (16, 8)), Region(((4, 0), (4, 8), (1, 0))), Default) (550, 551) bytes 1032 0d296fa54a1ab7109a1b57b03a7ecf3f 0004000000000000beadf73888375f3bd0a8002380940428223470a1f828e534
|
||||
(((16, 8), (16, 8)), Region(((4, 0), (4, 8), (1, 0))), Default) (551, 550) bytes 1032 6a2374e02dee4ef504eb68d62a5e0d9a 0004000000000000c6adf93888375f3bf8b7263614b004281e3aaeb50838e534
|
||||
(((16, 8), (16, 8)), Region(((4, 0), (4, 8), (1, 0))), Default) (551, 551) bytes 1032 8a47a45bac28f3c002dbe44a224a598b 0004000000000000beadf73888375f3bcbb2d22f90a304285e389eaef732e534
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (4, 8), (4, 0))), Default) (550, 550) bytes 1032 ae7343e9e725b6e1cfc904a5c183b6f7 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (4, 8), (4, 0))), Default) (550, 551) bytes 1032 070930741f9449f8691624ce2b0fd790 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (4, 8), (4, 0))), Default) (551, 550) bytes 1032 93568bb1786469263925a0dc4ac2d369 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (4, 8), (4, 0))), Default) (551, 551) bytes 1032 cc54b14195ff287c40dc138e42822cb2 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((0, 1), (16, 3), (0, 4))), Default) (550, 550) bytes 1032 73634cebb47c48c803375b85f89e0365 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((0, 1), (16, 3), (0, 4))), Default) (550, 551) bytes 1032 5d46ff12e1181782c444b2f9b7bbd965 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((0, 1), (16, 3), (0, 4))), Default) (551, 550) bytes 1032 bc11c0299313fbb395ef818f5b14f34e 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((0, 1), (16, 3), (0, 4))), Default) (551, 551) bytes 1032 2a8a7fc58a69419172230246db81f17b 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((5, 3), (7, 5), (2, 1))), Default) (550, 550) bytes 1032 684865b69ba29c02892fc35301824b5d 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((5, 3), (7, 5), (2, 1))), Default) (550, 551) bytes 1032 be94aabdc1e2b8b4fd552f360300a893 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((5, 3), (7, 5), (2, 1))), Default) (551, 550) bytes 1032 e391db7d7ced9f224b83113d6886a9f0 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((5, 3), (7, 5), (2, 1))), Default) (551, 551) bytes 1032 d2fdc8865d93991c16d7412397d6dc4d 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((13, 0), (3, 8), (0, 0))), Default) (550, 550) bytes 1032 5f394b814922e2e8595b6fdb9cd57b8a 000400000000000097b61b3b3733e03b062a26b2ad3c673325b5a736e8b3003c
|
||||
(((16, 8), (16, 8)), Region(((13, 0), (3, 8), (0, 0))), Default) (550, 551) bytes 1032 add331ba398764bd527037e2b17941e2 000400000000000085b01d3a5429e03b801be0a7b63d673366ad9d305caa003c
|
||||
(((16, 8), (16, 8)), Region(((13, 0), (3, 8), (0, 0))), Default) (551, 550) bytes 1032 bce8f4e25bae8f5f1cb2179bc38d2d89 000400000000000061b9983b1838e03ba833a0b7483c6733d5b8693944b8003c
|
||||
(((16, 8), (16, 8)), Region(((13, 0), (3, 8), (0, 0))), Default) (551, 551) bytes 1032 862caa10f989f0de3efb13797b0cadaf 00040000000000008fb61b3b3433e03bf8292cb2ac3c67332cb5a536e1b3003c
|
||||
(((12, 8), (16, 8)), Region(((0, 0), (12, 8), (2, 0))), Default) (550, 550) bytes 1032 a765f4c898bd51f5d2bfbf1e08ba8dcf 0004000000000000c6adf93888375f3bafb6893826b60727c6ad4f37183cdf3a
|
||||
(((12, 8), (16, 8)), Region(((0, 0), (12, 8), (2, 0))), Default) (550, 551) bytes 1032 04f4d19c2aaf6cb6c7a8ac11ec9a66d0 0004000000000000beadf73888375f3bb0b68b3825b6072760a0a431383cdf3a
|
||||
(((12, 8), (16, 8)), Region(((0, 0), (12, 8), (2, 0))), Default) (551, 550) bytes 1032 5d5f29cb8cbb9680ec8aa37ac0c26017 0004000000000000c6adf93888375f3bafb6893826b607274db5a6390a3cdf3a
|
||||
(((12, 8), (16, 8)), Region(((0, 0), (12, 8), (2, 0))), Default) (551, 551) bytes 1032 91796b785e90fdc28e36bb4a995e47a8 0004000000000000beadf73888375f3bb0b68b3825b60727bead4e37173cdf3a
|
||||
(((12, 8), (16, 8)), Region(((1, 1), (11, 6), (3, 2))), Default) (550, 550) bytes 1032 61771b89fe1508a0f601c7f750f686d4 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((12, 8), (16, 8)), Region(((1, 1), (11, 6), (3, 2))), Default) (550, 551) bytes 1032 8aff301d4fcf94ab97c02f44ef188de9 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((12, 8), (16, 8)), Region(((1, 1), (11, 6), (3, 2))), Default) (551, 550) bytes 1032 8f0f56e6629ede1e67c3e4e71dc68bb9 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((12, 8), (16, 8)), Region(((1, 1), (11, 6), (3, 2))), Default) (551, 551) bytes 1032 15d577dad102729a8a64f47e11f583bf 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (12, 8)), Region(((3, 0), (9, 8), (0, 0))), Default) (550, 550) bytes 776 6a6417b3e17189c62c230d5de2a0164c 00030000000000003737563aae39003cd7b2c82f07a304285c38a7aef732e534
|
||||
(((16, 8), (12, 8)), Region(((3, 0), (9, 8), (0, 0))), Default) (550, 551) bytes 776 b32422eb5e4a8efaea6017825224c316 00030000000000007c31ba386537003cd0a8002380940428223470a1f828e534
|
||||
(((16, 8), (12, 8)), Region(((3, 0), (9, 8), (0, 0))), Default) (551, 550) bytes 776 81250f3daeae80864a1c34cdbba707e3 00030000000000009e39373bdf3a003cf8b7263614b004281e3aaeb50838e534
|
||||
(((16, 8), (12, 8)), Region(((3, 0), (9, 8), (0, 0))), Default) (551, 551) bytes 776 1b10f22559036bc24e4115a0222b77f8 00030000000000003737553aab39003ccbb2d22f90a304285e389eaef732e534
|
||||
(((12, 6), (12, 6)), Slices, Default) (550, 550) bytes 584 015e0b415defc665a94fe4f2d1d8d237 4002000000000000c6ad4f37183cdf3a75310a3ce938a6311fb78f3a47b30f3b
|
||||
(((12, 6), (12, 6)), Slices, Default) (550, 551) bytes 584 b1abf53cdbb1f15fa9700b920808c847 400200000000000060a0a431383cdf3a5026173c5c35a63156b11a396ca90f3b
|
||||
(((12, 6), (12, 6)), Slices, Default) (551, 550) bytes 584 b08829d2664738c7ac1c6a051c0bb516 40020000000000004db5a6390a3cdf3a2f37043c723aa63196b9533b1cb80f3b
|
||||
(((12, 6), (12, 6)), Slices, Default) (551, 551) bytes 584 caee4bc024c7a40c3a6c8955c99941ee 4002000000000000bead4e37173cdf3a6f31093ce938a63120b78d3a43b30f3b
|
||||
(((9, 7), (9, 7)), Region(((0, 0), (8, 7), (1, 0))), Default) (550, 550) bytes 512 9277cc83edccec982966ae09ec00b872 f801000000000000c6adf93888375f3bc6ad4f37183cdf3a75310a3ce938a631
|
||||
(((9, 7), (9, 7)), Region(((0, 0), (8, 7), (1, 0))), Default) (550, 551) bytes 512 509628d015bee4a36ac23fb889b7c374 f801000000000000beadf73888375f3b60a0a431383cdf3a5026173c5c35a631
|
||||
(((9, 7), (9, 7)), Region(((0, 0), (8, 7), (1, 0))), Default) (551, 550) bytes 512 4c739219cd6744d65143547dbc12433d f801000000000000c6adf93888375f3b4db5a6390a3cdf3a2f37043c723aa631
|
||||
(((9, 7), (9, 7)), Region(((0, 0), (8, 7), (1, 0))), Default) (551, 551) bytes 512 b351f0328eef2883ffbfd4af5cd080fc f801000000000000beadf73888375f3bbead4e37173cdf3a6f31093ce938a631
|
||||
(((9, 7), (9, 7)), Region(((1, 0), (7, 7), (0, 0))), Default) (550, 550) bytes 512 1649a26b6bde93ae5eb2a0b59dd86991 f80100000000000075310a3ce938a6311fb78f3a47b30f3b3737563aae39003c
|
||||
(((9, 7), (9, 7)), Region(((1, 0), (7, 7), (0, 0))), Default) (550, 551) bytes 512 d9c1c16517545dc536ed9cb0e762c516 f8010000000000005026173c5c35a63156b11a396ca90f3b7c31ba386537003c
|
||||
(((9, 7), (9, 7)), Region(((1, 0), (7, 7), (0, 0))), Default) (551, 550) bytes 512 39a5e8fe26b92972a86ed4252ece43f4 f8010000000000002f37043c723aa63196b9533b1cb80f3b9e39373bdf3a003c
|
||||
(((9, 7), (9, 7)), Region(((1, 0), (7, 7), (0, 0))), Default) (551, 551) bytes 512 334f5c9b6fbc214f26ec3d0db41f3914 f8010000000000006f31093ce938a63120b78d3a43b30f3b3737553aab39003c
|
||||
(((9, 7), (9, 7)), Slices, Default) (550, 550) bytes 512 5209902941bf934d3eecd2c8d25eddbe f801000000000000c6ad4f37183cdf3a75310a3ce938a6311fb78f3a47b30f3b
|
||||
(((9, 7), (9, 7)), Slices, Default) (550, 551) bytes 512 a2fad265a21ff69609580bb7288432c9 f80100000000000060a0a431383cdf3a5026173c5c35a63156b11a396ca90f3b
|
||||
(((9, 7), (9, 7)), Slices, Default) (551, 550) bytes 512 d5e50996696035c3fff924e6f19d1185 f8010000000000004db5a6390a3cdf3a2f37043c723aa63196b9533b1cb80f3b
|
||||
(((9, 7), (9, 7)), Slices, Default) (551, 551) bytes 512 ad43b93fb511354fe81175fbf59a99df f801000000000000bead4e37173cdf3a6f31093ce938a63120b78d3a43b30f3b
|
||||
(((20, 4), (20, 4)), Slices, Default) (550, 550) bytes 648 7bd8b649f1a485d11ddb8c6f6c0eb0ea 8002000000000000c6ad4f37183cdf3a75310a3ce938a6311fb78f3a47b30f3b
|
||||
(((20, 4), (20, 4)), Slices, Default) (550, 551) bytes 648 64f151622996a32caad212a87697cff8 800200000000000060a0a431383cdf3a5026173c5c35a63156b11a396ca90f3b
|
||||
(((20, 4), (20, 4)), Slices, Default) (551, 550) bytes 648 d36aca9334ece5887d6cfe33ca944a15 80020000000000004db5a6390a3cdf3a2f37043c723aa63196b9533b1cb80f3b
|
||||
(((20, 4), (20, 4)), Slices, Default) (551, 551) bytes 648 566c0122779aaab9ef26fc9592597762 8002000000000000bead4e37173cdf3a6f31093ce938a63120b78d3a43b30f3b
|
||||
(((20, 4), (20, 4)), Region(((1, 1), (17, 2), (2, 2))), Default) (550, 550) bytes 648 f9a4acc196487af7d3fe644ad5fe4bcb 8002000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((20, 4), (20, 4)), Region(((1, 1), (17, 2), (2, 2))), Default) (550, 551) bytes 648 1fe14efe434bbb059ab7d6048a3cb8aa 8002000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((20, 4), (20, 4)), Region(((1, 1), (17, 2), (2, 2))), Default) (551, 550) bytes 648 7b1b9fd68c5e2d46d2f6aed7d1cdbc98 8002000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((20, 4), (20, 4)), Region(((1, 1), (17, 2), (2, 2))), Default) (551, 551) bytes 648 ebe8c5d967b2d8d6f9254a9ef6ade1f1 8002000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((5, 5), (5, 5)), Region(((1, 0), (3, 5), (2, 0))), Default) (550, 550) bytes 208 4cdbf4d4955b244c297a8bee529e161a c800000000000000c6adf93888375f3bafb6893826b6072775310a3ce938a631
|
||||
(((5, 5), (5, 5)), Region(((1, 0), (3, 5), (2, 0))), Default) (550, 551) bytes 208 b6a1d13a93fdb0eb9a249ae2c438f33c c800000000000000beadf73888375f3bb0b68b3825b607275026173c5c35a631
|
||||
(((5, 5), (5, 5)), Region(((1, 0), (3, 5), (2, 0))), Default) (551, 550) bytes 208 9f33c29d994bd384d3f1cdf5736d910f c800000000000000c6adf93888375f3bafb6893826b607272f37043c723aa631
|
||||
(((5, 5), (5, 5)), Region(((1, 0), (3, 5), (2, 0))), Default) (551, 551) bytes 208 192a7ea8d3b5db1c1d6454abe2150513 c800000000000000beadf73888375f3bb0b68b3825b607276f31093ce938a631
|
||||
(((6, 4), (6, 4)), Region(((1, 0), (4, 4), (2, 0))), Default) (550, 550) bytes 200 5882329c5d8e670b8f4435d4f3fe8c0b c000000000000000c6adf93888375f3bafb6893826b6072775310a3ce938a631
|
||||
(((6, 4), (6, 4)), Region(((1, 0), (4, 4), (2, 0))), Default) (550, 551) bytes 200 06af8d8b5b0ada1bea6a0bb646eb0d34 c000000000000000beadf73888375f3bb0b68b3825b607275026173c5c35a631
|
||||
(((6, 4), (6, 4)), Region(((1, 0), (4, 4), (2, 0))), Default) (551, 550) bytes 200 dcfa116b6e10b8168909c17becac7e45 c000000000000000c6adf93888375f3bafb6893826b607272f37043c723aa631
|
||||
(((6, 4), (6, 4)), Region(((1, 0), (4, 4), (2, 0))), Default) (551, 551) bytes 200 79b59f4032d551025b965c9ab36b94ce c000000000000000beadf73888375f3bb0b68b3825b607276f31093ce938a631
|
||||
(((16, 8), (16, 8)), Slices, Private) (550, 550) bytes 1032 7c3aff1e15382cc0f8470e0b024ca149 0004000000000000c6ad4f37183cdf3a75310a3ce938a6311fb78f3a47b30f3b
|
||||
(((16, 8), (16, 8)), Slices, Private) (550, 551) bytes 1032 654a5de98f26a17ac0b213c61f33509d 000400000000000060a0a431383cdf3a5026173c5c35a63156b11a396ca90f3b
|
||||
(((16, 8), (16, 8)), Slices, Private) (551, 550) bytes 1032 f2cbe1bc70e5ecb74ac71891b2b0262f 00040000000000004db5a6390a3cdf3a2f37043c723aa63196b9533b1cb80f3b
|
||||
(((16, 8), (16, 8)), Slices, Private) (551, 551) bytes 1032 2ef8e455542a614d4a8c31e85728f899 0004000000000000bead4e37173cdf3a6f31093ce938a63120b78d3a43b30f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (3, 8), (1, 0))), Private) (550, 550) bytes 1032 c2ce1af4053787065b3519461e8aa3fb 0004000000000000c6adf93888375f3b75310a3ce938a6311fb78f3a47b30f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (3, 8), (1, 0))), Private) (550, 551) bytes 1032 2f7b60f97dcb1311fd53a823ca39c787 0004000000000000beadf73888375f3b5026173c5c35a63156b11a396ca90f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (3, 8), (1, 0))), Private) (551, 550) bytes 1032 6594b0e8ed80b50190f96674254d81b2 0004000000000000c6adf93888375f3b2f37043c723aa63196b9533b1cb80f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 0), (3, 8), (1, 0))), Private) (551, 551) bytes 1032 dfceb00f4c576ba122e10406ac8a275f 0004000000000000beadf73888375f3b6f31093ce938a63120b78d3a43b30f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 2), (3, 4), (5, 1))), Private) (550, 550) bytes 1032 de03eb679e1f1c5ed01144d650ed97e1 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((1, 2), (3, 4), (5, 1))), Private) (550, 551) bytes 1032 1b9aa69ea315e7c07f94b77a5db02a19 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((1, 2), (3, 4), (5, 1))), Private) (551, 550) bytes 1032 de6b456cfee464ea1ca3f3a3f37108bc 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((1, 2), (3, 4), (5, 1))), Private) (551, 551) bytes 1032 c7ff16c35bc095e5eabaa37caf766f37 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((0, 0), (16, 1), (0, 0))), Heap) (550, 550) bytes 1032 fa1c216540b16ba50267099a9b708af1 0004000000000000c6ad4f37183cdf3a75310a3ce938a6311fb78f3a47b30f3b
|
||||
(((16, 8), (16, 8)), Region(((0, 0), (16, 1), (0, 0))), Heap) (550, 551) bytes 1032 1ffe4e172a675976922c10c1b125b223 000400000000000060a0a431383cdf3a5026173c5c35a63156b11a396ca90f3b
|
||||
(((16, 8), (16, 8)), Region(((0, 0), (16, 1), (0, 0))), Heap) (551, 550) bytes 1032 8ce050af2ced70d5f530d8fa15419d32 00040000000000004db5a6390a3cdf3a2f37043c723aa63196b9533b1cb80f3b
|
||||
(((16, 8), (16, 8)), Region(((0, 0), (16, 1), (0, 0))), Heap) (551, 551) bytes 1032 eb9cd4d1eec88bd13f58a36b8ad7ffc3 0004000000000000bead4e37173cdf3a6f31093ce938a63120b78d3a43b30f3b
|
||||
(((16, 8), (16, 8)), Region(((1, 1), (3, 1), (5, 0))), Heap) (550, 550) bytes 1032 30be20cf601ee68755e709ff7b062aab 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((1, 1), (3, 1), (5, 0))), Heap) (550, 551) bytes 1032 131b280355c54b8db36dab78fec03c5a 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
(((16, 8), (16, 8)), Region(((1, 1), (3, 1), (5, 0))), Heap) (551, 550) bytes 1032 e2391b01c30a7fdd2c55d4d65406401d 0004000000000000c6adf93888375f3bafb6893826b607271737533b89385535
|
||||
(((16, 8), (16, 8)), Region(((1, 1), (3, 1), (5, 0))), Heap) (551, 551) bytes 1032 964f56b8b51701cf84ecde41e22f7599 0004000000000000beadf73888375f3bb0b68b3825b6072714374e3b8b385535
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, format 550 bytes 192 9c28738b505ba948481761bd5224420e 0102030401020304010203040102030401020304010203040102030401020304
|
||||
case 1, format 551 bytes 64 4c2943fa1bc9e2d1ecd7b6e9e6045fcd eeeeeeeeeeeeeeee21222324212223242122232421222324eeeeeeeeeeeeeeee
|
||||
case 2, format 550 bytes 128 f7cf7daddd7d65b2b096820814634ecd eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
case 0, format 261 bytes 17 67a10380b0a2e4d233dfe48bd3525b82 eeeeee3131ee5a5aeeeeffffffffff4141
|
||||
case 1, format 261 bytes 16 8507a76f7d8923aeb2277bccf0ff6e29 eeeeeeeeeeeeeeeeeeeeeeee77777777
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
-5
@@ -1,5 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
add_one (0, 0, 1024, 0, 0, false, 32)
|
||||
tg_reverse (0, 0, 1024, 0, 0, false, 32)
|
||||
tg_static (0, 0, 1024, 0, 256, false, 32)
|
||||
sample_k (0, 0, 1024, 0, 0, false, 32)
|
||||
@@ -1,410 +0,0 @@
|
||||
//! The tests of `encode_compute` that compare with Metal on this host: macOS only.
|
||||
|
||||
use crate::core::platform::resource::ComputePipeline;
|
||||
use crate::platform::VulkanPlatform;
|
||||
|
||||
use super::*;
|
||||
|
||||
const TGSTATIC: &[u8] = include_bytes!("../../../../../../tests/shaders/compute_tgstatic.metallib");
|
||||
|
||||
const CONSTANT: &[u8] = include_bytes!("../../../../../../tests/shaders/fc.metallib");
|
||||
|
||||
const TRUNCATED: &[u8] = include_bytes!("../../../../../../tests/shaders/kernel_trunc.metallib");
|
||||
|
||||
/// A pipeline's answers, in the trait's order but the ID: ID, imageblock length of 8×8,
|
||||
/// largest threadgroup, resource index, static threadgroup memory, ICB support, execution
|
||||
/// width.
|
||||
fn answers<P: ComputePipeline<VulkanPlatform>>(p: &P) -> (u64, u64, u64, u64, u64, bool, u64) {
|
||||
(
|
||||
p.gpu_resource_id(),
|
||||
p.imageblock_memory_length(MtlSize::new(8, 8, 1)).unwrap(),
|
||||
p.max_total_threads_per_threadgroup(),
|
||||
p.resource_index(),
|
||||
p.static_threadgroup_memory_length(),
|
||||
p.support_indirect_command_buffers(),
|
||||
p.thread_execution_width(),
|
||||
)
|
||||
}
|
||||
|
||||
/// newLibraryWithData: makes a metallib's library, whose functions are found by name and nil
|
||||
/// for a name it lacks; bytes that are no metallib (random, a bitcode wrapper, raw AIR's
|
||||
/// magic, a truncated metallib) are Metal's "Invalid library file", as on Metal
|
||||
#[test]
|
||||
fn libraries_and_functions() {
|
||||
let lib = library(ADD);
|
||||
assert_eq!(lib.function_names(), ["add_one"]);
|
||||
assert!(
|
||||
lib.new_function(OnFault::Return, "add_one")
|
||||
.unwrap()
|
||||
.is_some()
|
||||
);
|
||||
assert!(lib.new_function(OnFault::Die, "missing").unwrap().is_none());
|
||||
let wrapper: &[u8] = &[0xde, 0xc0, 0x17, 0x0b, 0, 0, 0, 0, 20, 0, 0, 0];
|
||||
let air: &[u8] = b"BC\xc0\xde\x35\x14\x00\x00";
|
||||
let refused = [&b"garbage"[..], wrapper, air, TRUNCATED];
|
||||
for bytes in refused {
|
||||
let e = dev().new_library(bytes).unwrap().unwrap_err();
|
||||
assert_eq!((e.domain.as_str(), e.code), ("MTLLibraryErrorDomain", 1));
|
||||
assert!(e.description.contains("\"Invalid library file\""), "{e:?}");
|
||||
}
|
||||
}
|
||||
|
||||
/// A pipeline of a function answers its getters as Metal's does on this host; a nil function
|
||||
/// and an unspecialized function constant die at the creator, as Metal aborts for the
|
||||
/// constant
|
||||
#[test]
|
||||
fn pipelines_of_functions() {
|
||||
let kernels = [
|
||||
(ADD, "add_one"),
|
||||
(TGMEM, "tg_reverse"),
|
||||
(TGSTATIC, "tg_static"),
|
||||
(SAMPLE, "sample_k"),
|
||||
];
|
||||
let ours: Vec<_> = kernels
|
||||
.iter()
|
||||
.map(|&(bytes, name)| answers(&pipeline(bytes, name)))
|
||||
.collect();
|
||||
assert_eq!(ours[2].4, 256, "tg_static's 64 words");
|
||||
for (&(_, name), ours) in kernels.iter().zip(&ours) {
|
||||
crate::metal_check!(name, ours);
|
||||
}
|
||||
let sel = "newComputePipelineStateWithFunction:error:";
|
||||
let site = catch_death(|| dev().new_compute_pipeline_state_for_function(None)).unwrap_err();
|
||||
assert_eq!((site.kind, site.file), (DeathKind::Abort, sel));
|
||||
let f = library(CONSTANT)
|
||||
.new_function(OnFault::Return, "fc_kernel")
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let site = catch_death(|| dev().new_compute_pipeline_state_for_function(Some(&f))).unwrap_err();
|
||||
assert_eq!((site.kind, site.file), (DeathKind::Abort, sel));
|
||||
}
|
||||
|
||||
/// A concurrent encoder of a pass descriptor runs as a serial one does; a dispatch type no
|
||||
/// Metal value is runs as serial, skipping a nil resource as Metal's does, and one past 32
|
||||
/// bits dies at its setter
|
||||
#[test]
|
||||
fn encoders_of_pass_descriptors() {
|
||||
let add = pipeline(ADD, "add_one");
|
||||
let (input, out) = (holding(&[1, 2, 3, 4]), shared(16));
|
||||
let cb = command_buffer();
|
||||
let e = cb
|
||||
.compute_encoder_for_pass(&ComputePassDesc {
|
||||
dispatch_type: Some(1),
|
||||
})
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
run(
|
||||
&cb,
|
||||
&e,
|
||||
vec![
|
||||
ComputeCmd::SetComputePipelineState { state: Some(&add) },
|
||||
ComputeCmd::SetBuffers {
|
||||
buffers: &[Some(&out), Some(&input)],
|
||||
offsets: &[0, 0],
|
||||
range: NsRange::new(0, 2),
|
||||
},
|
||||
ComputeCmd::DispatchThreads {
|
||||
threads_per_grid: MtlSize::new(4, 1, 1),
|
||||
threads_per_threadgroup: MtlSize::new(4, 1, 1),
|
||||
},
|
||||
],
|
||||
);
|
||||
assert_eq!(words(&out), [2, 3, 4, 5]);
|
||||
/// An encoder of `dispatch_type` of a pass descriptor on `d` that names a nil resource
|
||||
/// in its residency and adds one to 4 words: its output, once it completed.
|
||||
fn unknown_type<P: crate::core::platform::Platform>(
|
||||
d: &P::Device,
|
||||
dispatch_type: u64,
|
||||
) -> Vec<u32> {
|
||||
let lib = d.new_library(ADD).unwrap().unwrap().unwrap();
|
||||
let f = lib
|
||||
.new_function(OnFault::Return, "add_one")
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let add = d
|
||||
.new_compute_pipeline_state_for_function(Some(&f))
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let buffer = || {
|
||||
d.new_buffer_of_length(OnFault::Return, 16, 0)
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
};
|
||||
let (input, out) = (buffer(), buffer());
|
||||
// SAFETY: the Shared buffer's 4 words, written before any command uses them.
|
||||
unsafe {
|
||||
std::ptr::copy_nonoverlapping([1u32, 2, 3, 4].as_ptr(), input.contents().as_ptr(), 4);
|
||||
}
|
||||
let cb = d
|
||||
.new_command_queue()
|
||||
.unwrap()
|
||||
.command_buffer(OnFault::Return)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let e = cb
|
||||
.compute_encoder_for_pass(&ComputePassDesc {
|
||||
dispatch_type: Some(dispatch_type),
|
||||
})
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
for cmd in [
|
||||
ComputeCmd::SetComputePipelineState { state: Some(&add) },
|
||||
ComputeCmd::SetBuffers {
|
||||
buffers: &[Some(&out), Some(&input)],
|
||||
offsets: &[0, 0],
|
||||
range: NsRange::new(0, 2),
|
||||
},
|
||||
ComputeCmd::UseResources {
|
||||
resources: &[Some(ResourceRef::Buffer(&input)), None],
|
||||
usage: 1,
|
||||
},
|
||||
ComputeCmd::DispatchThreads {
|
||||
threads_per_grid: MtlSize::new(4, 1, 1),
|
||||
threads_per_threadgroup: MtlSize::new(4, 1, 1),
|
||||
},
|
||||
ComputeCmd::EndEncoding,
|
||||
] {
|
||||
e.encode(OnFault::Return, cmd).unwrap();
|
||||
}
|
||||
cb.commit(OnFault::Return).unwrap();
|
||||
cb.wait_until_completed(OnFault::Return).unwrap();
|
||||
assert_eq!((cb.status().0, cb.error()), (COMPLETED, None));
|
||||
// SAFETY: the Shared buffer's 4 words, read after the GPU's writes completed.
|
||||
unsafe { std::slice::from_raw_parts(out.contents().as_ptr::<u32>(), 4) }.to_vec()
|
||||
}
|
||||
for dispatch_type in [2, 3, 7, 0x8000_0000, 0xffff_ffff] {
|
||||
assert_eq!(
|
||||
unknown_type::<VulkanPlatform>(&dev(), dispatch_type),
|
||||
[2, 3, 4, 5]
|
||||
);
|
||||
}
|
||||
let site = catch_death(|| {
|
||||
command_buffer().compute_encoder_for_pass(&ComputePassDesc {
|
||||
dispatch_type: Some(1 << 32),
|
||||
})
|
||||
})
|
||||
.unwrap_err();
|
||||
assert_eq!(
|
||||
(site.kind, site.file),
|
||||
(DeathKind::Abort, "setDispatchType:")
|
||||
);
|
||||
}
|
||||
|
||||
/// What a unit of compute encoders holds, in order: an encoder of a dispatch type (`None` for
|
||||
/// `computeCommandEncoder`) and the dispatch it sends, or what ends the unit.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
enum Part {
|
||||
Encoder(Option<u64>, Dispatch),
|
||||
Blit,
|
||||
Signal,
|
||||
Wait,
|
||||
/// The command buffer cut into parts there (`CommandBuffer::split`), the unit going on in
|
||||
/// the next.
|
||||
Split,
|
||||
}
|
||||
|
||||
/// A dispatch of `add_one` over 4 words, or none.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
enum Dispatch {
|
||||
Direct,
|
||||
GroupsIndirect,
|
||||
ThreadsIndirect,
|
||||
Nothing,
|
||||
}
|
||||
|
||||
/// `parts` in one command buffer on `d`, committed: the 4 words `add_one` wrote.
|
||||
fn unit<P: crate::core::platform::Platform>(d: &P::Device, parts: &[Part]) -> Vec<u32> {
|
||||
use crate::core::platform::blit::{BlitCmd, BlitEncoder as _};
|
||||
use crate::core::platform::event::{EventRef, SharedEvent as _};
|
||||
|
||||
let lib = d.new_library(ADD).unwrap().unwrap().unwrap();
|
||||
let f = lib
|
||||
.new_function(OnFault::Return, "add_one")
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let add = d
|
||||
.new_compute_pipeline_state_for_function(Some(&f))
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let buffer = |words: &[u32]| {
|
||||
let b = d
|
||||
.new_buffer_of_length(OnFault::Return, 64, 0)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
// SAFETY: the Shared buffer's words, written before any command uses them.
|
||||
unsafe {
|
||||
std::ptr::copy_nonoverlapping(words.as_ptr(), b.contents().as_ptr(), words.len());
|
||||
}
|
||||
b
|
||||
};
|
||||
let (input, out) = (buffer(&[1, 2, 3, 4]), buffer(&[0; 4]));
|
||||
let arguments = buffer(&[1, 1, 1, 0, 4, 1, 1, 4, 1, 1]);
|
||||
let event = d.new_shared_event().unwrap();
|
||||
event.set_signaled_value(5).unwrap();
|
||||
let mut cb = d
|
||||
.new_command_queue()
|
||||
.unwrap()
|
||||
.command_buffer(OnFault::Return)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
for part in parts {
|
||||
let (dispatch_type, dispatch) = match *part {
|
||||
Part::Encoder(dispatch_type, dispatch) => (dispatch_type, dispatch),
|
||||
Part::Split => {
|
||||
cb = cb.split(OnFault::Return).unwrap().expect("a part");
|
||||
continue;
|
||||
}
|
||||
Part::Blit => {
|
||||
let blit = cb.blit_encoder(OnFault::Return).unwrap().unwrap();
|
||||
blit.encode(OnFault::Return, BlitCmd::EndEncoding).unwrap();
|
||||
continue;
|
||||
}
|
||||
Part::Signal => {
|
||||
cb.encode_signal(Some(EventRef::Shared(&event)), 6).unwrap();
|
||||
continue;
|
||||
}
|
||||
Part::Wait => {
|
||||
cb.encode_wait(Some(EventRef::Shared(&event)), 1).unwrap();
|
||||
continue;
|
||||
}
|
||||
};
|
||||
let e = match dispatch_type {
|
||||
None => cb.compute_encoder(OnFault::Return),
|
||||
Some(dispatch_type) => cb.compute_encoder_for_pass(&ComputePassDesc {
|
||||
dispatch_type: Some(dispatch_type),
|
||||
}),
|
||||
}
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let groups = MtlSize::new(4, 1, 1);
|
||||
let sent = match dispatch {
|
||||
Dispatch::Direct => Some(ComputeCmd::DispatchThreads {
|
||||
threads_per_grid: groups,
|
||||
threads_per_threadgroup: groups,
|
||||
}),
|
||||
Dispatch::GroupsIndirect => Some(ComputeCmd::DispatchThreadgroupsIndirect {
|
||||
indirect_buffer: Some(&arguments),
|
||||
indirect_buffer_offset: 0,
|
||||
threads_per_threadgroup: groups,
|
||||
}),
|
||||
Dispatch::ThreadsIndirect => Some(ComputeCmd::DispatchThreadsIndirect {
|
||||
indirect_buffer: Some(&arguments),
|
||||
indirect_buffer_offset: 16,
|
||||
}),
|
||||
Dispatch::Nothing => None,
|
||||
};
|
||||
if let Some(sent) = sent {
|
||||
for cmd in [
|
||||
ComputeCmd::SetComputePipelineState { state: Some(&add) },
|
||||
ComputeCmd::SetBuffers {
|
||||
buffers: &[Some(&out), Some(&input)],
|
||||
offsets: &[0, 0],
|
||||
range: NsRange::new(0, 2),
|
||||
},
|
||||
sent,
|
||||
] {
|
||||
e.encode(OnFault::Return, cmd).unwrap();
|
||||
}
|
||||
}
|
||||
e.encode(OnFault::Return, ComputeCmd::EndEncoding).unwrap();
|
||||
}
|
||||
cb.commit(OnFault::Return).unwrap();
|
||||
cb.wait_until_completed(OnFault::Return).unwrap();
|
||||
assert_eq!((cb.status().0, cb.error()), (COMPLETED, None));
|
||||
// SAFETY: the Shared buffer's 4 words, read after the GPU's writes completed.
|
||||
unsafe { std::slice::from_raw_parts(out.contents().as_ptr::<u32>(), 4) }.to_vec()
|
||||
}
|
||||
|
||||
/// A unit of compute encoders' first indirect dispatch dies at its selector in an encoder of
|
||||
/// another dispatch type than the unit's first, as Metal ends the process there; a type
|
||||
/// neither serial nor concurrent counts as serial, the first encoder counts with no dispatch,
|
||||
/// and later indirect dispatches go on. A blit encoder, an event signal or wait between, a
|
||||
/// unit's indirect dispatch of the first's type, and a direct dispatch of another type go on,
|
||||
/// as on Metal. A command buffer cut into parts between the encoders answers as it would whole:
|
||||
/// the unit goes on in the next part
|
||||
#[test]
|
||||
fn a_units_first_indirect_dispatch_of_another_type_dies() {
|
||||
use Dispatch::{Direct, GroupsIndirect as Groups, Nothing, ThreadsIndirect as Threads};
|
||||
use Part::{Blit, Encoder, Signal, Split, Wait};
|
||||
|
||||
const SERIAL: Option<u64> = None;
|
||||
const CONCURRENT: Option<u64> = Some(1);
|
||||
let groups =
|
||||
"dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:";
|
||||
let threads = "dispatchThreadsWithIndirectBuffer:indirectBufferOffset:";
|
||||
let dies: [(&[Part], &str); 8] = [
|
||||
(
|
||||
&[Encoder(CONCURRENT, Direct), Split, Encoder(SERIAL, Groups)],
|
||||
groups,
|
||||
),
|
||||
(
|
||||
&[Encoder(CONCURRENT, Direct), Encoder(SERIAL, Groups)],
|
||||
groups,
|
||||
),
|
||||
(
|
||||
&[Encoder(CONCURRENT, Direct), Encoder(SERIAL, Threads)],
|
||||
threads,
|
||||
),
|
||||
(
|
||||
&[Encoder(SERIAL, Direct), Encoder(CONCURRENT, Groups)],
|
||||
groups,
|
||||
),
|
||||
(
|
||||
&[Encoder(SERIAL, Direct), Encoder(CONCURRENT, Threads)],
|
||||
threads,
|
||||
),
|
||||
(
|
||||
&[Encoder(CONCURRENT, Direct), Encoder(Some(0), Groups)],
|
||||
groups,
|
||||
),
|
||||
(
|
||||
&[Encoder(CONCURRENT, Nothing), Encoder(SERIAL, Groups)],
|
||||
groups,
|
||||
),
|
||||
(
|
||||
&[
|
||||
Encoder(CONCURRENT, Direct),
|
||||
Encoder(SERIAL, Direct),
|
||||
Encoder(SERIAL, Groups),
|
||||
],
|
||||
groups,
|
||||
),
|
||||
];
|
||||
for (parts, sel) in dies {
|
||||
let site = catch_death(|| unit::<VulkanPlatform>(&dev(), parts)).unwrap_err();
|
||||
assert_eq!((site.kind, site.file), (DeathKind::Abort, sel), "{parts:?}");
|
||||
}
|
||||
let goes_on: [&[Part]; 12] = [
|
||||
&[Encoder(SERIAL, Direct), Split, Encoder(SERIAL, Groups)],
|
||||
&[Encoder(CONCURRENT, Groups), Encoder(SERIAL, Direct)],
|
||||
&[Encoder(CONCURRENT, Direct), Encoder(CONCURRENT, Groups)],
|
||||
&[Encoder(SERIAL, Direct), Encoder(SERIAL, Groups)],
|
||||
&[Encoder(Some(2), Direct), Encoder(SERIAL, Groups)],
|
||||
&[Encoder(CONCURRENT, Direct), Blit, Encoder(SERIAL, Groups)],
|
||||
&[Encoder(CONCURRENT, Direct), Signal, Encoder(SERIAL, Groups)],
|
||||
&[Encoder(CONCURRENT, Direct), Wait, Encoder(SERIAL, Groups)],
|
||||
&[
|
||||
Encoder(CONCURRENT, Groups),
|
||||
Encoder(SERIAL, Direct),
|
||||
Encoder(SERIAL, Groups),
|
||||
],
|
||||
&[
|
||||
Encoder(SERIAL, Direct),
|
||||
Encoder(CONCURRENT, Direct),
|
||||
Encoder(SERIAL, Groups),
|
||||
],
|
||||
&[Encoder(SERIAL, Groups), Encoder(CONCURRENT, Threads)],
|
||||
&[
|
||||
Encoder(CONCURRENT, Groups),
|
||||
Encoder(SERIAL, Direct),
|
||||
Encoder(CONCURRENT, Groups),
|
||||
],
|
||||
];
|
||||
for parts in goes_on {
|
||||
assert_eq!(
|
||||
unit::<VulkanPlatform>(&dev(), parts),
|
||||
[2, 3, 4, 5],
|
||||
"{parts:?}"
|
||||
);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,601 +0,0 @@
|
||||
//! One command buffer of hundreds of passes over one colour target, as a WebGPU frame split at
|
||||
//! every indexed draw renders: WebKit checks a draw's indices in a 1x1 render encoder of its own
|
||||
//! before each `drawIndexed`, so the webgpu-samples `stencilMask` frame is about 700 render
|
||||
//! encoders over its canvas's IOSurface beside a `Depth32Float_Stencil8` attachment. Metal
|
||||
//! completes it (the AMD 5300M in 21.6 ms, the M3 Max in 52 ms); a runtime that holds a
|
||||
//! whole-attachment scratch or staging buffer a pass until the command buffer completes runs an
|
||||
//! RTX 5080 Laptop GPU out of device memory there, its `endEncoding` refused.
|
||||
//!
|
||||
//! The passes are the frame's, through this platform as the graphics lane drives it: a first
|
||||
//! encoder clears the colour, depth and stencil, then each of [`PASSES`] passes loads the colour
|
||||
//! and the stencil, clears the depth, stores all three and draws one rectangle of two triangles,
|
||||
//! its vertex data bound from an upload buffer over host pages (the bundle's `setVertexBytes:`),
|
||||
//! each after a 1x1 encoder of no attachment whose state does not rasterize. The colour target is
|
||||
//! one the lane makes: an IOSurface plane over guest pages, its rows a multiple of 64 bytes and
|
||||
//! not of 256, or of 256 (the runtime shadows a no-copy buffer's host pages whatever its rows,
|
||||
//! and merges the passes back); or a texture over a `Private` buffer, rows a multiple of 256, as
|
||||
//! over a surface's device cache (a linear image of the buffer's memory, rendered in place on
|
||||
//! MoltenVK, and apart beside the depth attachment and merged back on NVIDIA's devices). The
|
||||
//! runtime's device memory grows by no attachment's bytes a pass, and the target holds what the
|
||||
//! draws left.
|
||||
|
||||
use crate::core::host::HostPtr;
|
||||
use crate::core::num::{ToU64, ToUsize};
|
||||
use crate::core::platform::os::vm::HostVm as _;
|
||||
use crate::core::platform::resource::Library as _;
|
||||
use crate::core::platform::values::{
|
||||
ColorAttachmentDesc, DepthAttachmentSet, DepthStencilDesc, FullRenderPipelineDesc,
|
||||
LinkedFunctionsDesc, PassSet, StencilAttachmentSet, StencilDesc, SurfaceFacts, SurfacePlane,
|
||||
};
|
||||
|
||||
use super::*;
|
||||
use crate::gpu::device::VulkanDevice;
|
||||
use crate::gpu::resource::{VulkanDepthStencilState, VulkanRenderPipeline};
|
||||
|
||||
/// The passes after the clear: the measured frame's 6 + 7 x 100.
|
||||
const PASSES: usize = 706;
|
||||
|
||||
/// The passes of the command buffer run before the measured one, so the runtime's pools hold
|
||||
/// what one pass takes before the count starts.
|
||||
const WARM: usize = 8;
|
||||
|
||||
/// The targets' height in texels, and the side of a cell of the rectangles' grid.
|
||||
const H: u64 = 512;
|
||||
const CELL: u64 = 32;
|
||||
|
||||
/// `MTLPixelFormatDepth32Float_Stencil8`, `MTLResourceStorageModePrivate`,
|
||||
/// `MTLLoadActionLoad`, `MTLPrimitiveTypeTriangle`, `MTLCompareFunctionAlways`.
|
||||
const DEPTH32F_S8: u64 = 260;
|
||||
const PRIVATE: u64 = 0x20;
|
||||
const LOAD: u64 = 1;
|
||||
const TRIANGLE: u64 = 3;
|
||||
const ALWAYS: u64 = 7;
|
||||
|
||||
/// The bytes the upload buffer gives each bound value, as the bundle places its bytes.
|
||||
const SLOT: u64 = 256;
|
||||
|
||||
/// The tests' state of no rasterization's vertex function (`unrasterized.metal`).
|
||||
const UNRASTERIZED: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/unrasterized.metallib"));
|
||||
|
||||
/// Where a target's bytes lie.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
enum Backed {
|
||||
/// An IOSurface's plane over a no-copy buffer of guest pages.
|
||||
GuestPages,
|
||||
/// A `Private` buffer, as a surface's device cache.
|
||||
Private,
|
||||
}
|
||||
|
||||
/// Host pages of at least `len` bytes, freed when dropped: declared before the buffers over
|
||||
/// them, so dropped after those.
|
||||
struct Pages {
|
||||
at: HostPtr,
|
||||
len: u64,
|
||||
}
|
||||
|
||||
impl Pages {
|
||||
fn new(len: u64) -> Pages {
|
||||
let len = len.next_multiple_of(crate::os::OsVm::new().page_size());
|
||||
let at = crate::os::allocate_aliasable(len).unwrap();
|
||||
Pages { at, len }
|
||||
}
|
||||
|
||||
/// A no-copy buffer over the pages.
|
||||
fn buffer(&self, d: &VulkanDevice) -> VulkanBuffer {
|
||||
// SAFETY: the pages stay mapped until `self` drops, after every buffer over them.
|
||||
let bytes = unsafe { HostRange::new(self.at, self.len) };
|
||||
d.new_buffer_over_host_memory(OnFault::Die, bytes, 0, None)
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
/// Write `value` at `at` of the pages, which no command uses now.
|
||||
fn write(&mut self, at: u64, value: &[u8]) {
|
||||
assert!(at + value.len().to_u64() <= self.len);
|
||||
// SAFETY: inside the pages, which no command uses while the test writes them.
|
||||
let into = unsafe { self.at.as_ptr::<u8>().add(at.to_usize()) };
|
||||
// SAFETY: `value` is the test's own, apart from the pages.
|
||||
unsafe { std::ptr::copy_nonoverlapping(value.as_ptr(), into, value.len()) };
|
||||
}
|
||||
|
||||
/// The pages' first `len` bytes, which no command writes now.
|
||||
fn read(&self, len: u64) -> Vec<u8> {
|
||||
assert!(len <= self.len);
|
||||
// SAFETY: inside the pages, which no command writes while the test reads them.
|
||||
unsafe { std::slice::from_raw_parts(self.at.as_ptr::<u8>(), len.to_usize()) }.to_vec()
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Pages {
|
||||
/// Unmaps the pages through the platform's VM, which waits for the runtime to free the
|
||||
/// imports of the buffers over them (`crate::remap`).
|
||||
fn drop(&mut self) {
|
||||
assert!(
|
||||
crate::remap::VulkanVm::new()
|
||||
.deallocate(self.at, self.len)
|
||||
.is_success()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// `v` as a float: every value here is below 2^16.
|
||||
fn float(v: u64) -> f32 {
|
||||
f32::from(u16::try_from(v).unwrap())
|
||||
}
|
||||
|
||||
/// Pass `i`'s rectangle of a target `width` texels wide, in texels (`[x0, y0, x1, y1]`,
|
||||
/// half-open): two by two cells of the grid, its corner at cell `i` (by rows of `H / CELL`),
|
||||
/// cut to the target; each overlaps its neighbours.
|
||||
fn rectangle(i: usize, width: u64) -> [u64; 4] {
|
||||
let cells = H / CELL;
|
||||
let i = u64::try_from(i).unwrap();
|
||||
let (x0, y0) = (i % cells * CELL, i / cells % cells * CELL);
|
||||
[x0, y0, (x0 + 2 * CELL).min(width), (y0 + 2 * CELL).min(H)]
|
||||
}
|
||||
|
||||
/// Pass `i`'s opaque colour, its channels' bytes red, green, blue and alpha.
|
||||
fn colour(i: usize) -> [u8; 4] {
|
||||
let i = u64::try_from(i).unwrap();
|
||||
let byte = |v: u64| u8::try_from(v % 256).unwrap();
|
||||
[byte(i * 37), byte(i * 91 + 5), byte(i * 13 + 7), 255]
|
||||
}
|
||||
|
||||
/// Pass `i`'s vertex bytes: its rectangle's two triangles as six clip-space `float4`s (each edge
|
||||
/// on a texel boundary, so the texels it covers are those its rectangle holds), then its colour
|
||||
/// as a `float4`, which `render_vbuf` reads at instance 0.
|
||||
fn vertex_bytes(i: usize, width: u64) -> (Vec<u8>, Vec<u8>) {
|
||||
let [x0, y0, x1, y1] = rectangle(i, width);
|
||||
let x = |v: u64| 2.0 * float(v) / float(width) - 1.0;
|
||||
let y = |v: u64| 1.0 - 2.0 * float(v) / float(H);
|
||||
let corners = [(x0, y0), (x1, y0), (x0, y1), (x1, y0), (x1, y1), (x0, y1)];
|
||||
let positions: Vec<f32> = (corners.iter())
|
||||
.flat_map(|&(a, b)| [x(a), y(b), 0.0, 1.0])
|
||||
.collect();
|
||||
let rgba: Vec<f32> = (colour(i).iter()).map(|&c| f32::from(c) / 255.0).collect();
|
||||
(bytes(&positions), bytes(&rgba))
|
||||
}
|
||||
|
||||
/// The bytes a target of `width` texels a row, `row` bytes apart, holds after the passes `0..n`:
|
||||
/// the clear's opaque black, then each pass's colour over its rectangle, as `BGRA8Unorm` lays it.
|
||||
fn expected(width: u64, row: u64, n: usize) -> Vec<u8> {
|
||||
let mut want = vec![0u8; (row * H).to_usize()];
|
||||
for y in 0..H {
|
||||
for x in 0..width {
|
||||
let at = (y * row + x * 4).to_usize();
|
||||
want[at..at + 4].copy_from_slice(&[0, 0, 0, 255]);
|
||||
}
|
||||
}
|
||||
for i in 0..n {
|
||||
let [r, g, b, a] = colour(i);
|
||||
let [x0, y0, x1, y1] = rectangle(i, width);
|
||||
for y in y0..y1 {
|
||||
for x in x0..x1 {
|
||||
let at = (y * row + x * 4).to_usize();
|
||||
want[at..at + 4].copy_from_slice(&[b, g, r, a]);
|
||||
}
|
||||
}
|
||||
}
|
||||
want
|
||||
}
|
||||
|
||||
/// What the passes use beside their target: the states, the depth and stencil texture, the
|
||||
/// upload buffer over host pages holding every pass's vertex bytes (the caller's pages, which
|
||||
/// outlive it), and the check encoders' buffer.
|
||||
struct Frame {
|
||||
drawing: VulkanRenderPipeline,
|
||||
unrasterized: VulkanRenderPipeline,
|
||||
depth_stencil: VulkanDepthStencilState,
|
||||
depth: VulkanTexture,
|
||||
upload: VulkanBuffer,
|
||||
checked: VulkanBuffer,
|
||||
}
|
||||
|
||||
impl Frame {
|
||||
fn new(p: &VulkanPlatform, d: &VulkanDevice, width: u64, upload_pages: &mut Pages) -> Frame {
|
||||
let (vertex, fragment) = (
|
||||
fixture::<VulkanPlatform>(d, "render_vbuf"),
|
||||
fixture::<VulkanPlatform>(d, "render_color"),
|
||||
);
|
||||
let library = d.new_library(UNRASTERIZED).unwrap().unwrap().unwrap();
|
||||
let void_vertex = library.new_function(OnFault::Die, "void_vertex").unwrap();
|
||||
let void_vertex = void_vertex.unwrap();
|
||||
let state = |vertex, fragment, colors, depth, rasterization_enabled| {
|
||||
d.new_render_pipeline_state_full(&FullRenderPipelineDesc {
|
||||
label: None,
|
||||
vertex,
|
||||
fragment,
|
||||
vertex_descriptor: None,
|
||||
colors,
|
||||
depth_pixel_format: depth,
|
||||
stencil_pixel_format: depth,
|
||||
raster_sample_count: 1,
|
||||
alpha_to_coverage: false,
|
||||
alpha_to_one: false,
|
||||
rasterization_enabled,
|
||||
input_primitive_topology: 0,
|
||||
max_vertex_amplification_count: 1,
|
||||
support_indirect_command_buffers: false,
|
||||
vertex_linked: LinkedFunctionsDesc::default(),
|
||||
fragment_linked: LinkedFunctionsDesc::default(),
|
||||
private_state: None,
|
||||
tessellation: Default::default(),
|
||||
max_vertex_call_stack_depth: 1,
|
||||
max_fragment_call_stack_depth: 1,
|
||||
})
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
};
|
||||
let color = ColorAttachmentDesc {
|
||||
pixel_format: BGRA8,
|
||||
..ColorAttachmentDesc::default()
|
||||
};
|
||||
let drawing = state(
|
||||
&vertex,
|
||||
Some(&fragment),
|
||||
vec![(0, color)],
|
||||
DEPTH32F_S8,
|
||||
true,
|
||||
);
|
||||
let unrasterized = state(&void_vertex, None, Vec::new(), 0, false);
|
||||
let face = StencilDesc {
|
||||
stencil_compare_function: ALWAYS,
|
||||
stencil_failure_operation: 0,
|
||||
depth_failure_operation: 0,
|
||||
depth_stencil_pass_operation: 0,
|
||||
read_mask: 0xff,
|
||||
write_mask: 0xff,
|
||||
};
|
||||
let depth_stencil = d
|
||||
.new_depth_stencil_state(&DepthStencilDesc {
|
||||
depth_compare_function: Some(ALWAYS),
|
||||
depth_write_enabled: Some(true),
|
||||
front: Some(face),
|
||||
back: Some(face),
|
||||
})
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let desc = p.texture_descriptor(&TextureDesc {
|
||||
pixel_format: DEPTH32F_S8,
|
||||
width,
|
||||
height: H,
|
||||
usage: TARGET,
|
||||
resource_options: Some(PRIVATE),
|
||||
..TextureDesc::default()
|
||||
});
|
||||
let depth = d.new_texture(OnFault::Die, &desc).unwrap().unwrap();
|
||||
for i in 0..PASSES {
|
||||
let (positions, rgba) = vertex_bytes(i, width);
|
||||
upload_pages.write(slot(2 * i), &positions);
|
||||
upload_pages.write(slot(2 * i + 1), &rgba);
|
||||
}
|
||||
let upload = upload_pages.buffer(d);
|
||||
let checked = buffer::<VulkanPlatform>(d, 16, 0, &[0; 16]);
|
||||
Frame {
|
||||
drawing,
|
||||
unrasterized,
|
||||
depth_stencil,
|
||||
depth,
|
||||
upload,
|
||||
checked,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Where the upload buffer holds bound value `n`.
|
||||
fn slot(n: usize) -> u64 {
|
||||
u64::try_from(n).unwrap() * SLOT
|
||||
}
|
||||
|
||||
/// One command buffer of the frame over `target`: the clear, then the passes `0..n`, each after
|
||||
/// a check encoder; committed and completed without an error.
|
||||
fn run(p: &VulkanPlatform, d: &VulkanDevice, frame: &Frame, target: &VulkanTexture, n: usize) {
|
||||
let pass = |first: bool| {
|
||||
let pass = p.render_pass_descriptor();
|
||||
let (load, depth_load) = match first {
|
||||
true => (CLEAR, CLEAR),
|
||||
false => (LOAD, CLEAR),
|
||||
};
|
||||
pass.set_color_attachment(
|
||||
OnFault::Die,
|
||||
0,
|
||||
&ColorAttachmentSet {
|
||||
texture: Some(Some(target)),
|
||||
load_action: Some(load),
|
||||
store_action: Some(STORE),
|
||||
clear_color: Some(ClearColor {
|
||||
red: 0.0,
|
||||
green: 0.0,
|
||||
blue: 0.0,
|
||||
alpha: 1.0,
|
||||
}),
|
||||
..ColorAttachmentSet::default()
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
pass.set_depth_attachment(&DepthAttachmentSet {
|
||||
texture: Some(Some(&frame.depth)),
|
||||
load_action: Some(depth_load),
|
||||
store_action: Some(STORE),
|
||||
clear_depth: Some(1.0),
|
||||
..DepthAttachmentSet::default()
|
||||
});
|
||||
pass.set_stencil_attachment(&StencilAttachmentSet {
|
||||
texture: Some(Some(&frame.depth)),
|
||||
load_action: Some(load),
|
||||
store_action: Some(STORE),
|
||||
clear_stencil: Some(0),
|
||||
..StencilAttachmentSet::default()
|
||||
});
|
||||
pass
|
||||
};
|
||||
let (clear, load) = (pass(true), pass(false));
|
||||
let check = p.render_pass_descriptor();
|
||||
check.set_pass(&PassSet {
|
||||
render_target_width: Some(1),
|
||||
render_target_height: Some(1),
|
||||
default_raster_sample_count: Some(1),
|
||||
..PassSet::default()
|
||||
});
|
||||
let q = d.new_command_queue().unwrap();
|
||||
let cb = q.command_buffer(OnFault::Die).unwrap().unwrap();
|
||||
let e = cb.render_encoder(OnFault::Die, &clear).unwrap().unwrap();
|
||||
e.encode(OnFault::Die, RenderCmd::EndEncoding).unwrap();
|
||||
for i in 0..n {
|
||||
let e = cb.render_encoder(OnFault::Die, &check).unwrap().unwrap();
|
||||
for cmd in [
|
||||
RenderCmd::SetRenderPipelineState {
|
||||
pipeline_state: Some(&frame.unrasterized),
|
||||
},
|
||||
RenderCmd::SetVertexBuffer {
|
||||
buffer: Some(&frame.checked),
|
||||
offset: 0,
|
||||
index: 0,
|
||||
},
|
||||
RenderCmd::DrawPrimitives {
|
||||
primitive_type: TRIANGLE,
|
||||
vertex_start: 0,
|
||||
vertex_count: 3,
|
||||
},
|
||||
RenderCmd::EndEncoding,
|
||||
] {
|
||||
e.encode(OnFault::Die, cmd).unwrap();
|
||||
}
|
||||
let e = cb.render_encoder(OnFault::Die, &load).unwrap().unwrap();
|
||||
for cmd in [
|
||||
RenderCmd::SetRenderPipelineState {
|
||||
pipeline_state: Some(&frame.drawing),
|
||||
},
|
||||
RenderCmd::SetDepthStencilState {
|
||||
depth_stencil_state: Some(&frame.depth_stencil),
|
||||
},
|
||||
RenderCmd::SetVertexBuffer {
|
||||
buffer: Some(&frame.upload),
|
||||
offset: slot(2 * i),
|
||||
index: 0,
|
||||
},
|
||||
RenderCmd::SetVertexBuffer {
|
||||
buffer: Some(&frame.upload),
|
||||
offset: slot(2 * i + 1),
|
||||
index: 1,
|
||||
},
|
||||
RenderCmd::DrawPrimitives {
|
||||
primitive_type: TRIANGLE,
|
||||
vertex_start: 0,
|
||||
vertex_count: 6,
|
||||
},
|
||||
RenderCmd::EndEncoding,
|
||||
] {
|
||||
e.encode(OnFault::Die, cmd).unwrap();
|
||||
}
|
||||
}
|
||||
cb.commit(OnFault::Die).unwrap();
|
||||
cb.wait_until_completed(OnFault::Die).unwrap();
|
||||
assert!(cb.error().is_none(), "{:?}", cb.error());
|
||||
}
|
||||
|
||||
/// The first `len` bytes of the `Private` buffer `b`, through a blit.
|
||||
fn private_bytes(d: &VulkanDevice, b: &VulkanBuffer, len: u64) -> Vec<u8> {
|
||||
let out = buffer::<VulkanPlatform>(d, len, 0, &[]);
|
||||
let q = d.new_command_queue().unwrap();
|
||||
let cb = q.command_buffer(OnFault::Die).unwrap().unwrap();
|
||||
let blit = cb.blit_encoder(OnFault::Die).unwrap().unwrap();
|
||||
for cmd in [
|
||||
BlitCmd::CopyBufferToBuffer {
|
||||
source_buffer: Some(b),
|
||||
source_offset: 0,
|
||||
destination_buffer: Some(&out),
|
||||
destination_offset: 0,
|
||||
size: len,
|
||||
},
|
||||
BlitCmd::EndEncoding,
|
||||
] {
|
||||
blit.encode(OnFault::Die, cmd).unwrap();
|
||||
}
|
||||
cb.commit(OnFault::Die).unwrap();
|
||||
cb.wait_until_completed(OnFault::Die).unwrap();
|
||||
assert!(cb.error().is_none(), "{:?}", cb.error());
|
||||
// SAFETY: a Shared buffer's bytes, read after the blit completed.
|
||||
unsafe { std::slice::from_raw_parts(out.contents().as_ptr::<u8>(), len.to_usize()) }.to_vec()
|
||||
}
|
||||
|
||||
/// The frame over a target over `over`'s bytes, `width` texels a row, rows `4 * width` bytes
|
||||
/// apart: a few passes first, then [`PASSES`] of them, whose command buffer grows the runtime's
|
||||
/// device memory by less than a quarter of an attachment's bytes a pass (one a pass would hold
|
||||
/// [`PASSES`] times the attachment), and leaves the target holding the draws.
|
||||
fn many_passes(over: Backed, width: u64) {
|
||||
let (p, d) = (platform(), dev());
|
||||
// Until the device's in-place check answers, a target over guest pages is shadowed, and each
|
||||
// pass's shadow grows the device's memory: settle it, so the count is of the passes alone.
|
||||
#[cfg(any(target_os = "linux", windows))]
|
||||
crate::gpu::device::tests::settle_device_checks(&d);
|
||||
let row = 4 * width;
|
||||
let len = row * H;
|
||||
let mut upload_pages = Pages::new(slot(2 * PASSES));
|
||||
let frame = Frame::new(&p, &d, width, &mut upload_pages);
|
||||
let desc = p.texture_descriptor(&TextureDesc {
|
||||
pixel_format: BGRA8,
|
||||
width,
|
||||
height: H,
|
||||
usage: TARGET | READ,
|
||||
resource_options: (over == Backed::Private).then_some(PRIVATE),
|
||||
..TextureDesc::default()
|
||||
});
|
||||
let mut pages = Pages::new(len);
|
||||
pages.write(0, &vec![0xa5; len.to_usize()]);
|
||||
let buffer = match over {
|
||||
Backed::GuestPages => pages.buffer(&d),
|
||||
Backed::Private => (d.new_buffer_of_length(OnFault::Die, len, PRIVATE))
|
||||
.unwrap()
|
||||
.unwrap(),
|
||||
};
|
||||
let target = match over {
|
||||
Backed::GuestPages => {
|
||||
let facts = SurfaceFacts {
|
||||
pixel_format: u32::from_be_bytes(*b"BGRA"),
|
||||
plane_count: 0,
|
||||
width,
|
||||
height: H,
|
||||
chroma_offset: 0,
|
||||
chroma_bytes_per_row: 0,
|
||||
ycbcr_matrix: None,
|
||||
};
|
||||
let plane = SurfacePlane {
|
||||
plane: 0,
|
||||
offset: 0,
|
||||
bytes_per_row: row,
|
||||
planar: false,
|
||||
facts: Some(facts),
|
||||
};
|
||||
buffer.new_texture_over_surface_plane(OnFault::Die, &desc, plane)
|
||||
}
|
||||
Backed::Private => buffer.new_texture(OnFault::Die, &desc, 0, row),
|
||||
};
|
||||
let target = target.unwrap().unwrap();
|
||||
run(&p, &d, &frame, &target, WARM);
|
||||
let before = d.raw.work_counts();
|
||||
run(&p, &d, &frame, &target, PASSES);
|
||||
let after = d.raw.work_counts();
|
||||
let delta = |of: fn(&rt::WorkCounts) -> u64| of(&after) - of(&before);
|
||||
let grown = delta(|c| c.device_memory_allocated);
|
||||
println!(
|
||||
"MANY-PASSES {over:?} {width}x{H}, rows of {row}: device memory grew {grown} bytes ({} \
|
||||
attachments); linear: {} passes apart, merges {} recorded and {} taken over, scratches \
|
||||
{} made and {} reused; shadow: {} copies, {} texels kept, {} scratches reused",
|
||||
grown / len,
|
||||
delta(|c| c.linear_passes_through_copies),
|
||||
delta(|c| c.linear_merges_recorded),
|
||||
delta(|c| c.linear_merges_taken_over),
|
||||
delta(|c| c.linear_merge_scratches_made),
|
||||
delta(|c| c.linear_merge_scratches_reused),
|
||||
delta(|c| c.shadow_copies),
|
||||
delta(|c| c.shadow_texels_kept),
|
||||
delta(|c| c.shadow_merge_scratches_reused),
|
||||
);
|
||||
let passes = u64::try_from(PASSES).unwrap();
|
||||
assert!(
|
||||
grown < len * passes / 4,
|
||||
"{PASSES} passes over one {over:?} target grew the device's memory by {grown} bytes, {} \
|
||||
of its attachments",
|
||||
grown / len
|
||||
);
|
||||
let got = match over {
|
||||
Backed::GuestPages => pages.read(len),
|
||||
Backed::Private => private_bytes(&d, &buffer, len),
|
||||
};
|
||||
let want = expected(width, row, PASSES);
|
||||
let differ = (0..got.len()).filter(|&i| got[i] != want[i]).count();
|
||||
assert_eq!(
|
||||
differ,
|
||||
0,
|
||||
"the target's bytes differ from the draws', the first at {:?}",
|
||||
(0..got.len()).find(|&i| got[i] != want[i])
|
||||
);
|
||||
drop((target, buffer, frame));
|
||||
}
|
||||
|
||||
/// Over an IOSurface plane over guest pages, rows of 1984 bytes, a multiple of the surface's 64
|
||||
/// and not of 256, as the measured frame's canvas (rows of 4800).
|
||||
#[test]
|
||||
fn many_passes_over_a_surface_s_pages_hold_no_attachment_a_pass() {
|
||||
many_passes(Backed::GuestPages, 496);
|
||||
}
|
||||
|
||||
/// Over an IOSurface plane over guest pages, rows of 2048 bytes, a multiple of 256, as the
|
||||
/// measured frame at 1024 and 1216 texels a row.
|
||||
#[test]
|
||||
fn many_passes_over_a_surface_s_aligned_pages_hold_no_attachment_a_pass() {
|
||||
many_passes(Backed::GuestPages, 512);
|
||||
}
|
||||
|
||||
/// Over a `Private` buffer, rows of 2048 bytes, as over a surface's device cache (stencilprobe's
|
||||
/// `-T`): a linear image of the buffer's memory, rendered apart beside the depth attachment on
|
||||
/// NVIDIA's devices.
|
||||
#[test]
|
||||
fn many_passes_over_a_private_buffer_hold_no_attachment_a_pass() {
|
||||
many_passes(Backed::Private, 512);
|
||||
}
|
||||
|
||||
/// A few of the frame's passes over an IOSurface plane over guest pages at a width that is not a
|
||||
/// multiple of 4, its rows padded to 64 bytes as a guest's IOSurface rows are: the draws land in
|
||||
/// the rows, `row` bytes apart, and the padding past each row's texels keeps the bytes it held
|
||||
#[test]
|
||||
fn a_few_passes_over_padded_rows_at_an_odd_width_land_in_the_rows() {
|
||||
let (p, d) = (platform(), dev());
|
||||
let mut wrong = Vec::new();
|
||||
for width in [1831u64, 1001] {
|
||||
let row = (4 * width).next_multiple_of(64);
|
||||
let len = row * H;
|
||||
let mut upload_pages = Pages::new(slot(2 * PASSES));
|
||||
let frame = Frame::new(&p, &d, width, &mut upload_pages);
|
||||
let desc = p.texture_descriptor(&TextureDesc {
|
||||
pixel_format: BGRA8,
|
||||
width,
|
||||
height: H,
|
||||
usage: TARGET | READ,
|
||||
..TextureDesc::default()
|
||||
});
|
||||
let mut pages = Pages::new(len);
|
||||
pages.write(0, &vec![0xa5; len.to_usize()]);
|
||||
let buffer = pages.buffer(&d);
|
||||
let facts = SurfaceFacts {
|
||||
pixel_format: u32::from_be_bytes(*b"BGRA"),
|
||||
plane_count: 0,
|
||||
width,
|
||||
height: H,
|
||||
chroma_offset: 0,
|
||||
chroma_bytes_per_row: 0,
|
||||
ycbcr_matrix: None,
|
||||
};
|
||||
let plane = SurfacePlane {
|
||||
plane: 0,
|
||||
offset: 0,
|
||||
bytes_per_row: row,
|
||||
planar: false,
|
||||
facts: Some(facts),
|
||||
};
|
||||
let target = buffer.new_texture_over_surface_plane(OnFault::Die, &desc, plane);
|
||||
let target = target.unwrap().unwrap();
|
||||
run(&p, &d, &frame, &target, WARM);
|
||||
let got = pages.read(len);
|
||||
let want = expected(width, row, WARM);
|
||||
let texels = (4 * width).to_usize();
|
||||
let differ: Vec<(usize, usize)> = (0..H.to_usize())
|
||||
.flat_map(|y| (0..texels).map(move |b| (b, y)))
|
||||
.filter(|&(b, y)| got[y * row.to_usize() + b] != want[y * row.to_usize() + b])
|
||||
.collect();
|
||||
let padding = (0..H.to_usize())
|
||||
.flat_map(|y| (texels..row.to_usize()).map(move |b| y * row.to_usize() + b))
|
||||
.filter(|&i| got[i] != 0xa5)
|
||||
.count();
|
||||
if !differ.is_empty() || padding != 0 {
|
||||
wrong.push(format!(
|
||||
"{width} wide, rows of {row}: {} texel bytes differ (the first at byte {:?}), \
|
||||
{padding} padding bytes written",
|
||||
differ.len(),
|
||||
differ.first()
|
||||
));
|
||||
}
|
||||
drop((target, buffer, frame));
|
||||
}
|
||||
assert!(wrong.is_empty(), "{wrong:#?}");
|
||||
}
|
||||
@@ -1,574 +0,0 @@
|
||||
//! Mesh render pipelines on this platform
|
||||
//! (`crate::gpu::states::new_mesh_render_pipeline_state_full` and the encoder's mesh draws): what
|
||||
//! a state answers, what its creation refuses, and what its draws draw, against what the graphics
|
||||
//! lane's mesh oracle measured of Metal on the M3 Max
|
||||
//! (`guest/bundle/tools/oracle/oracle_mesh.m`, `draw` and `make`, macOS 27.0.1), whose functions
|
||||
//! `mesh.metal` holds. MoltenVK has no `VK_EXT_mesh_shader`, so on a Mac the runtime draws them
|
||||
//! emulated (the module docs).
|
||||
|
||||
use crate::core::platform::resource::Library as _;
|
||||
use crate::core::platform::types::NsErrorText;
|
||||
use crate::core::platform::values::{
|
||||
ColorAttachmentDesc, FullMeshRenderPipelineDesc, LinkedFunctionsDesc, SamplerDesc,
|
||||
};
|
||||
|
||||
use super::*;
|
||||
|
||||
/// The tests' functions (`mesh.metal`).
|
||||
const MESH_LIBRARY: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/mesh.metallib"));
|
||||
|
||||
/// `MTLPixelFormatRGBA8Unorm`.
|
||||
const RGBA8: u64 = 70;
|
||||
|
||||
/// The target's size: the oracle's.
|
||||
const W: u64 = 16;
|
||||
const H: u64 = 4;
|
||||
|
||||
/// Opaque red, as a BGRA8 texel read as a little-endian word.
|
||||
const RED: u32 = 0xffff_0000;
|
||||
|
||||
/// No size: a descriptor's required threads left unset.
|
||||
const UNSET: MtlSize = MtlSize {
|
||||
width: 0,
|
||||
height: 0,
|
||||
depth: 0,
|
||||
};
|
||||
|
||||
/// The library's functions named `names`, in their order.
|
||||
fn functions<P: Platform>(d: &P::Device, names: &[&str]) -> Vec<P::Function> {
|
||||
let library = d.new_library(MESH_LIBRARY).unwrap().unwrap().unwrap();
|
||||
(names.iter())
|
||||
.map(|name| library.new_function(OnFault::Die, name).unwrap().unwrap())
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// The oracle's base descriptor: `mesh` and, where given, `object` and `fragment`, a BGRA8
|
||||
/// colour attachment 0, and everything else Metal's default.
|
||||
fn descriptor<'a, P: Platform>(
|
||||
object: Option<&'a P::Function>,
|
||||
mesh: &'a P::Function,
|
||||
fragment: Option<&'a P::Function>,
|
||||
) -> FullMeshRenderPipelineDesc<'a, P> {
|
||||
FullMeshRenderPipelineDesc {
|
||||
label: None,
|
||||
object,
|
||||
mesh,
|
||||
fragment,
|
||||
colors: vec![(
|
||||
0,
|
||||
ColorAttachmentDesc {
|
||||
pixel_format: BGRA8,
|
||||
..ColorAttachmentDesc::default()
|
||||
},
|
||||
)],
|
||||
depth_pixel_format: 0,
|
||||
stencil_pixel_format: 0,
|
||||
raster_sample_count: 1,
|
||||
alpha_to_coverage: false,
|
||||
alpha_to_one: false,
|
||||
rasterization_enabled: true,
|
||||
max_total_threads_per_object_threadgroup: 0,
|
||||
max_total_threads_per_mesh_threadgroup: 0,
|
||||
max_total_threadgroups_per_mesh_grid: 0,
|
||||
object_threadgroup_size_is_multiple_of_execution_width: false,
|
||||
mesh_threadgroup_size_is_multiple_of_execution_width: false,
|
||||
payload_memory_length: 0,
|
||||
max_vertex_amplification_count: 1,
|
||||
required_threads_per_object_threadgroup: UNSET,
|
||||
required_threads_per_mesh_threadgroup: UNSET,
|
||||
support_indirect_command_buffers: false,
|
||||
object_linked: LinkedFunctionsDesc::default(),
|
||||
mesh_linked: LinkedFunctionsDesc::default(),
|
||||
fragment_linked: LinkedFunctionsDesc::default(),
|
||||
}
|
||||
}
|
||||
|
||||
/// A state of `desc`, which must be made.
|
||||
fn state<P: Platform>(
|
||||
d: &P::Device,
|
||||
desc: &FullMeshRenderPipelineDesc<'_, P>,
|
||||
) -> P::RenderPipeline {
|
||||
d.new_mesh_render_pipeline_state_full(desc)
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
/// A state's five mesh answers: `maxTotalThreadsPerObjectThreadgroup`,
|
||||
/// `maxTotalThreadsPerMeshThreadgroup`, `objectThreadExecutionWidth`, `meshThreadExecutionWidth`
|
||||
/// and `maxTotalThreadgroupsPerMeshGrid`.
|
||||
fn answers<P: Platform>(s: &P::RenderPipeline) -> [u64; 5] {
|
||||
[
|
||||
s.max_total_threads_per_object_threadgroup(),
|
||||
s.max_total_threads_per_mesh_threadgroup(),
|
||||
s.object_thread_execution_width(),
|
||||
s.mesh_thread_execution_width(),
|
||||
s.max_total_threadgroups_per_mesh_grid(),
|
||||
]
|
||||
}
|
||||
|
||||
/// The oracle's draws (`oracle_mesh draw`), each into a 16 by 4 BGRA8 target cleared to zeros.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
enum Draw {
|
||||
/// `m_plain`, red at mesh buffer 0, four threadgroups of 4 threads.
|
||||
Threadgroups,
|
||||
/// The same, three threadgroups from indirect arguments at offset 16.
|
||||
Indirect,
|
||||
/// `m_grid`, green at mesh buffer 1 through `setMeshBufferOffset:atIndex:` 32,
|
||||
/// `drawMeshThreads:` of 10 threads in threadgroups of 4: two threadgroups, of an 8-thread
|
||||
/// grid, the alpha.
|
||||
Threads,
|
||||
/// `o_fn` and `m_payload`, green then blue at object buffer 0, 16 bytes of object
|
||||
/// threadgroup memory at 0, two object threadgroups of 3 threads, each launching two mesh
|
||||
/// threadgroups: the second's blue over the whole target, its 3 threads the alpha.
|
||||
Object,
|
||||
/// `m_tex`, a 1x1 RGBA8 blue texture sampled through a default sampler, two threadgroups.
|
||||
Texture,
|
||||
/// `m_plain`, a grid of no threadgroup along x: nothing drawn.
|
||||
Zero,
|
||||
/// `m_writes`, as [`Draw::Threadgroups`], each threadgroup also writing its position plus 1
|
||||
/// into mesh buffer 2.
|
||||
Writes,
|
||||
}
|
||||
|
||||
/// What the M3 Max's Metal draws of each of [`Draw`] at the oracle's eight samples (row 2,
|
||||
/// columns 1, 3 to 15), as little-endian words of BGRA8 texels (`draw.*` of the oracle's
|
||||
/// results); [`Draw::Writes`] draws as [`Draw::Threadgroups`].
|
||||
fn metals(draw: Draw) -> [u32; 8] {
|
||||
[match draw {
|
||||
Draw::Threadgroups | Draw::Indirect | Draw::Writes => RED,
|
||||
Draw::Threads => 0x0800_ff00,
|
||||
Draw::Object => 0x0300_00ff,
|
||||
Draw::Texture => 0xff00_00ff,
|
||||
Draw::Zero => 0,
|
||||
}; 8]
|
||||
}
|
||||
|
||||
/// The oracle's samples of `draw` on `p`, and the words mesh buffer 2 holds after it (four
|
||||
/// zeros but for [`Draw::Writes`]).
|
||||
fn drawn<P: Platform>(p: &P, d: &P::Device, draw: Draw) -> ([u32; 8], [u32; 4]) {
|
||||
let names: &[&str] = match draw {
|
||||
Draw::Threadgroups | Draw::Indirect | Draw::Zero => &["m_plain", "f_col"],
|
||||
Draw::Threads => &["m_grid", "f_col"],
|
||||
Draw::Object => &["m_payload", "f_col", "o_fn"],
|
||||
Draw::Texture => &["m_tex", "f_col"],
|
||||
Draw::Writes => &["m_writes", "f_col"],
|
||||
};
|
||||
let fs = functions::<P>(d, names);
|
||||
let s = state(d, &descriptor::<P>(fs.get(2), &fs[0], Some(&fs[1])));
|
||||
let target = texture(p, d, BGRA8, TARGET | READ, (W, H), None);
|
||||
let pass = p.render_pass_descriptor();
|
||||
pass.set_color_attachment(
|
||||
OnFault::Die,
|
||||
0,
|
||||
&ColorAttachmentSet {
|
||||
texture: Some(Some(&target)),
|
||||
load_action: Some(CLEAR),
|
||||
store_action: Some(STORE),
|
||||
clear_color: Some(ClearColor {
|
||||
red: 0.0,
|
||||
green: 0.0,
|
||||
blue: 0.0,
|
||||
alpha: 0.0,
|
||||
}),
|
||||
..ColorAttachmentSet::default()
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
let red = bytes(&[1.0, 0.0, 0.0, 1.0]);
|
||||
let mut green_at_32 = vec![0; 32];
|
||||
green_at_32.extend(bytes(&[0.0, 1.0, 0.0, 1.0]));
|
||||
green_at_32.resize(64, 0);
|
||||
let mut args = vec![0; 16];
|
||||
args.extend([3u32, 1, 1].iter().flat_map(|v| v.to_ne_bytes()));
|
||||
let colours = bytes(&[0.0, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0]);
|
||||
let red_buffer = buffer::<P>(d, 16, 0, &red);
|
||||
let green_buffer = buffer::<P>(d, 64, 0, &green_at_32);
|
||||
let args_buffer = buffer::<P>(d, 64, 0, &args);
|
||||
let colours_buffer = buffer::<P>(d, 32, 0, &colours);
|
||||
let out = buffer::<P>(d, 16, 0, &[0; 16]);
|
||||
let blue: &[u8] = &[0, 0, 255, 255];
|
||||
let source = texture(p, d, RGBA8, READ, (1, 1), Some((blue, 4)));
|
||||
let sampler = d
|
||||
.new_sampler_state(&SamplerDesc::default())
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
let one = MtlSize::new(1, 1, 1);
|
||||
let four = MtlSize::new(4, 1, 1);
|
||||
let range = |location| NsRange {
|
||||
location,
|
||||
length: 1,
|
||||
};
|
||||
let red_list = [Some(&red_buffer)];
|
||||
let green_list = [Some(&green_buffer)];
|
||||
let colours_list = [Some(&colours_buffer)];
|
||||
let out_list = [Some(&out)];
|
||||
let textures = [Some(&source)];
|
||||
let samplers = [Some(&sampler)];
|
||||
let mut cmds = vec![RenderCmd::SetRenderPipelineState {
|
||||
pipeline_state: Some(&s),
|
||||
}];
|
||||
let threadgroups = |n| RenderCmd::DrawMeshThreadgroups {
|
||||
threadgroups_per_grid: MtlSize::new(n, 1, 1),
|
||||
threads_per_object_threadgroup: one,
|
||||
threads_per_mesh_threadgroup: four,
|
||||
};
|
||||
let red_at_0 = RenderCmd::SetMeshBuffers {
|
||||
buffers: &red_list,
|
||||
offsets: &[0],
|
||||
range: range(0),
|
||||
};
|
||||
match draw {
|
||||
Draw::Threadgroups => cmds.extend([red_at_0, threadgroups(4)]),
|
||||
Draw::Zero => cmds.extend([
|
||||
red_at_0,
|
||||
RenderCmd::DrawMeshThreadgroups {
|
||||
threadgroups_per_grid: MtlSize::new(0, 1, 1),
|
||||
threads_per_object_threadgroup: one,
|
||||
threads_per_mesh_threadgroup: four,
|
||||
},
|
||||
]),
|
||||
Draw::Indirect => cmds.extend([
|
||||
red_at_0,
|
||||
RenderCmd::DrawMeshThreadgroupsIndirect {
|
||||
indirect_buffer: &args_buffer,
|
||||
indirect_buffer_offset: 16,
|
||||
threads_per_object_threadgroup: one,
|
||||
threads_per_mesh_threadgroup: four,
|
||||
},
|
||||
]),
|
||||
Draw::Threads => cmds.extend([
|
||||
RenderCmd::SetMeshBuffers {
|
||||
buffers: &green_list,
|
||||
offsets: &[0],
|
||||
range: range(1),
|
||||
},
|
||||
RenderCmd::SetMeshBufferOffset {
|
||||
offset: 32,
|
||||
index: 1,
|
||||
},
|
||||
RenderCmd::DrawMeshThreads {
|
||||
threads_per_grid: MtlSize::new(10, 1, 1),
|
||||
threads_per_object_threadgroup: one,
|
||||
threads_per_mesh_threadgroup: four,
|
||||
},
|
||||
]),
|
||||
Draw::Object => cmds.extend([
|
||||
RenderCmd::SetObjectBuffers {
|
||||
buffers: &colours_list,
|
||||
offsets: &[0],
|
||||
range: range(0),
|
||||
},
|
||||
RenderCmd::SetObjectThreadgroupMemoryLength {
|
||||
length: 16,
|
||||
index: 0,
|
||||
},
|
||||
RenderCmd::DrawMeshThreadgroups {
|
||||
threadgroups_per_grid: MtlSize::new(2, 1, 1),
|
||||
threads_per_object_threadgroup: MtlSize::new(3, 1, 1),
|
||||
threads_per_mesh_threadgroup: four,
|
||||
},
|
||||
]),
|
||||
Draw::Texture => cmds.extend([
|
||||
RenderCmd::SetMeshTextures {
|
||||
textures: &textures,
|
||||
range: range(0),
|
||||
},
|
||||
RenderCmd::SetMeshSamplerStates {
|
||||
samplers: &samplers,
|
||||
range: range(0),
|
||||
},
|
||||
threadgroups(2),
|
||||
]),
|
||||
Draw::Writes => cmds.extend([
|
||||
red_at_0,
|
||||
RenderCmd::SetMeshBuffers {
|
||||
buffers: &out_list,
|
||||
offsets: &[0],
|
||||
range: range(2),
|
||||
},
|
||||
threadgroups(4),
|
||||
]),
|
||||
}
|
||||
let q = d.new_command_queue().unwrap();
|
||||
let cb = q.command_buffer(OnFault::Die).unwrap().unwrap();
|
||||
let e = cb.render_encoder(OnFault::Die, &pass).unwrap().unwrap();
|
||||
for cmd in cmds.into_iter().chain([RenderCmd::EndEncoding]) {
|
||||
e.encode(OnFault::Die, cmd).unwrap();
|
||||
}
|
||||
let pixels = buffer::<P>(d, W * H * 4, 0, &[]);
|
||||
let blit = cb.blit_encoder(OnFault::Die).unwrap().unwrap();
|
||||
blit.encode(
|
||||
OnFault::Die,
|
||||
BlitCmd::CopyTextureToBuffer {
|
||||
source_texture: &target,
|
||||
source_slice: 0,
|
||||
source_level: 0,
|
||||
source_origin: MtlOrigin::new(0, 0, 0),
|
||||
source_size: MtlSize::new(W, H, 1),
|
||||
destination_buffer: &pixels,
|
||||
destination_offset: 0,
|
||||
destination_bytes_per_row: W * 4,
|
||||
destination_bytes_per_image: W * H * 4,
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
blit.encode(OnFault::Die, BlitCmd::EndEncoding).unwrap();
|
||||
cb.commit(OnFault::Die).unwrap();
|
||||
cb.wait_until_completed(OnFault::Die).unwrap();
|
||||
assert!(cb.error().is_none(), "{draw:?}: {:?}", cb.error());
|
||||
let words = |b: &P::Buffer, n: usize| {
|
||||
// SAFETY: a Shared buffer of at least `n` words, read after its command buffer completed.
|
||||
let bytes = unsafe { std::slice::from_raw_parts(b.contents().as_ptr::<u8>(), n * 4) };
|
||||
let (words, _) = bytes.as_chunks::<4>();
|
||||
words
|
||||
.iter()
|
||||
.map(|w| u32::from_le_bytes(*w))
|
||||
.collect::<Vec<_>>()
|
||||
};
|
||||
let texels = words(&pixels, usize::try_from(W * H).unwrap());
|
||||
let w = usize::try_from(W).unwrap();
|
||||
let samples = std::array::from_fn(|c| texels[w * 2 + c * 2 + 1]);
|
||||
let written = words(&out, 4).try_into().unwrap();
|
||||
(samples, written)
|
||||
}
|
||||
|
||||
/// A mesh render pipeline of a mesh and a fragment function, and one with an object function
|
||||
/// too, draw what Metal draws on the M3 Max, directly, from indirect arguments and by
|
||||
/// `drawMeshThreads:`, from buffers, an offset set after the bind, a texture and a sampler,
|
||||
/// object threadgroup memory and the payload; a grid of no threadgroup draws nothing; and a mesh
|
||||
/// function's writes into a buffer bound to its stage land
|
||||
#[test]
|
||||
fn mesh_draws_draw_what_metal_draws() {
|
||||
let (p, d) = (platform(), dev());
|
||||
let draws = [
|
||||
Draw::Threadgroups,
|
||||
Draw::Indirect,
|
||||
Draw::Threads,
|
||||
Draw::Object,
|
||||
Draw::Texture,
|
||||
Draw::Zero,
|
||||
Draw::Writes,
|
||||
];
|
||||
let mut differ = Vec::new();
|
||||
for draw in draws {
|
||||
let ours = drawn(&p, &d, draw);
|
||||
let written = if draw == Draw::Writes {
|
||||
[1, 2, 3, 4]
|
||||
} else {
|
||||
[0; 4]
|
||||
};
|
||||
if ours != (metals(draw), written) {
|
||||
differ.push(format!("{draw:?}: drew {ours:08x?}"));
|
||||
}
|
||||
}
|
||||
assert!(differ.is_empty(), "{differ:#?}");
|
||||
}
|
||||
|
||||
/// The most threads this device runs an object (`true`) or mesh threadgroup of, within Metal's
|
||||
/// 1024 ([`crate::gpu::states::stage_threads`]).
|
||||
fn limit(object: bool) -> u64 {
|
||||
crate::gpu::states::stage_threads(&dev(), object)
|
||||
}
|
||||
|
||||
/// A mesh render pipeline state answers its descriptor's maxima within the device's limits, and
|
||||
/// the device's own where none is set: 0 and an object width of 0 without an object function,
|
||||
/// the simdgroups' 32 as its execution widths, Metal's grid of 2^20 threadgroups or the
|
||||
/// descriptor's. Its required sizes change no answer, and a state of a payload of 16 KiB is made,
|
||||
/// but of one byte more is refused with the M3 Max's code and words
|
||||
#[test]
|
||||
fn mesh_states_answer_their_maxima_and_refuse_big_payloads() {
|
||||
let d = dev();
|
||||
let fs = functions::<VulkanPlatform>(&d, &["m_plain", "m_payload", "o_fn", "f_col"]);
|
||||
let [plain_fn, payload_fn, object_fn, fragment] = [&fs[0], &fs[1], &fs[2], &fs[3]];
|
||||
let width = u64::from(plain(|| {
|
||||
d.raw
|
||||
.compile_device()
|
||||
.metal_properties()
|
||||
.thread_execution_width
|
||||
}));
|
||||
assert_eq!(width, 32, "the runtime's simdgroups");
|
||||
let plain_desc = descriptor::<VulkanPlatform>(None, plain_fn, Some(fragment));
|
||||
let object = descriptor::<VulkanPlatform>(Some(object_fn), payload_fn, Some(fragment));
|
||||
let maxima = FullMeshRenderPipelineDesc {
|
||||
max_total_threads_per_object_threadgroup: 64,
|
||||
max_total_threads_per_mesh_threadgroup: 32,
|
||||
max_total_threadgroups_per_mesh_grid: 8,
|
||||
payload_memory_length: 256,
|
||||
..descriptor::<VulkanPlatform>(Some(object_fn), payload_fn, Some(fragment))
|
||||
};
|
||||
let required = FullMeshRenderPipelineDesc {
|
||||
required_threads_per_object_threadgroup: MtlSize::new(2, 1, 1),
|
||||
required_threads_per_mesh_threadgroup: MtlSize::new(4, 1, 1),
|
||||
..descriptor::<VulkanPlatform>(Some(object_fn), payload_fn, Some(fragment))
|
||||
};
|
||||
let (object_limit, mesh_limit) = (limit(true), limit(false));
|
||||
assert_eq!(
|
||||
answers::<VulkanPlatform>(&state(&d, &plain_desc)),
|
||||
[0, mesh_limit, 0, 32, 1 << 20]
|
||||
);
|
||||
let of_object = [object_limit, mesh_limit, 32, 32, 1 << 20];
|
||||
assert_eq!(answers::<VulkanPlatform>(&state(&d, &object)), of_object);
|
||||
assert_eq!(answers::<VulkanPlatform>(&state(&d, &required)), of_object);
|
||||
assert_eq!(
|
||||
answers::<VulkanPlatform>(&state(&d, &maxima)),
|
||||
[64.min(object_limit), 32.min(mesh_limit), 32, 32, 8]
|
||||
);
|
||||
let payload = |length| FullMeshRenderPipelineDesc {
|
||||
payload_memory_length: length,
|
||||
..descriptor::<VulkanPlatform>(Some(object_fn), payload_fn, Some(fragment))
|
||||
};
|
||||
assert!(matches!(
|
||||
d.new_mesh_render_pipeline_state_full(&payload(16384)),
|
||||
Ok(Some(_))
|
||||
));
|
||||
let refused = d
|
||||
.new_mesh_render_pipeline_state_full(&payload(16385))
|
||||
.unwrap_err();
|
||||
let words =
|
||||
"Object shader payload size (16385) exceeds the maximum payload size allowed (16384)";
|
||||
assert_eq!((refused.code, refused.description.as_str()), (3, words));
|
||||
}
|
||||
|
||||
/// A mesh render pipeline whose mesh, object or fragment function is of another stage's type is
|
||||
/// refused in the compiler's domain, before the runtime sees it: code
|
||||
/// 2 for a vertex function as the mesh function, 1 for an object function as the mesh function,
|
||||
/// a mesh function as the object function, a fragment function as the object function, and a
|
||||
/// mesh function as the fragment function. The mesh function is asked first
|
||||
#[test]
|
||||
fn mesh_states_of_wrong_stages_are_refused() {
|
||||
let d = dev();
|
||||
let fs = functions::<VulkanPlatform>(&d, &["m_plain", "o_fn", "f_col", "v_fn"]);
|
||||
let [mesh, object, fragment, vertex] = [&fs[0], &fs[1], &fs[2], &fs[3]];
|
||||
let refusal = |code, description: &str| NsErrorText {
|
||||
domain: "CompilerError".to_owned(),
|
||||
code,
|
||||
description: description.to_owned(),
|
||||
};
|
||||
let vertex_words =
|
||||
"RasterizationEnabled is false but the vertex shader's return type is not void";
|
||||
let mesh_words = "meshFunction functionType is not MTLFunctionTypeMesh.";
|
||||
let object_words = "objectFunction functionType is not MTLFunctionTypeObject.";
|
||||
let fragment_words = "fragmentFunction functionType is not MTLFunctionTypeFragment.";
|
||||
let cases = [
|
||||
(None, vertex, Some(fragment), refusal(2, vertex_words)),
|
||||
(None, object, Some(fragment), refusal(1, mesh_words)),
|
||||
(Some(object), fragment, Some(mesh), refusal(1, mesh_words)),
|
||||
(Some(mesh), mesh, Some(fragment), refusal(1, object_words)),
|
||||
(
|
||||
Some(fragment),
|
||||
mesh,
|
||||
Some(fragment),
|
||||
refusal(1, object_words),
|
||||
),
|
||||
(None, mesh, Some(mesh), refusal(1, fragment_words)),
|
||||
(Some(object), mesh, Some(vertex), refusal(1, fragment_words)),
|
||||
];
|
||||
for (i, (object, mesh, fragment, wanted)) in cases.into_iter().enumerate() {
|
||||
let desc = descriptor::<VulkanPlatform>(object, mesh, fragment);
|
||||
let made = d.new_mesh_render_pipeline_state_full(&desc);
|
||||
assert_eq!(made.err(), Some(wanted), "case {i}");
|
||||
}
|
||||
}
|
||||
|
||||
/// A mesh draw of a threadgroup past the maximum its state's descriptor sets for the stage, or
|
||||
/// of another size than the one it requires, dies at the draw, directly, by threads and from
|
||||
/// indirect arguments; one within them goes on, and so does a threadgroup of no thread or past
|
||||
/// Metal's 1024, which draws nothing. The object stage's are asked only of a state with an
|
||||
/// object function
|
||||
#[test]
|
||||
fn mesh_draws_outside_their_states_threadgroups_die() {
|
||||
let d = dev();
|
||||
let fs = functions::<VulkanPlatform>(&d, &["m_plain", "m_payload", "o_fn", "f_col"]);
|
||||
let [plain_fn, payload_fn, object_fn, fragment] = [&fs[0], &fs[1], &fs[2], &fs[3]];
|
||||
let held = state(
|
||||
&d,
|
||||
&FullMeshRenderPipelineDesc {
|
||||
max_total_threads_per_mesh_threadgroup: 32,
|
||||
required_threads_per_object_threadgroup: MtlSize::new(4, 1, 1),
|
||||
..descriptor::<VulkanPlatform>(None, plain_fn, Some(fragment))
|
||||
},
|
||||
);
|
||||
let required = state(
|
||||
&d,
|
||||
&FullMeshRenderPipelineDesc {
|
||||
required_threads_per_object_threadgroup: MtlSize::new(2, 1, 1),
|
||||
required_threads_per_mesh_threadgroup: MtlSize::new(4, 1, 1),
|
||||
..descriptor::<VulkanPlatform>(Some(object_fn), payload_fn, Some(fragment))
|
||||
},
|
||||
);
|
||||
let args = buffer::<VulkanPlatform>(&d, 16, 0, &[0; 16]);
|
||||
let colours = buffer::<VulkanPlatform>(&d, 32, 0, &bytes(&[1.0; 8]));
|
||||
let colours_list = [Some(&colours)];
|
||||
let threadgroups = |object, mesh| RenderCmd::DrawMeshThreadgroups {
|
||||
threadgroups_per_grid: MtlSize::new(1, 1, 1),
|
||||
threads_per_object_threadgroup: object,
|
||||
threads_per_mesh_threadgroup: mesh,
|
||||
};
|
||||
let threads = |object, mesh| RenderCmd::DrawMeshThreads {
|
||||
threads_per_grid: MtlSize::new(8, 1, 1),
|
||||
threads_per_object_threadgroup: object,
|
||||
threads_per_mesh_threadgroup: mesh,
|
||||
};
|
||||
let indirect = |object, mesh| RenderCmd::DrawMeshThreadgroupsIndirect {
|
||||
indirect_buffer: &args,
|
||||
indirect_buffer_offset: 0,
|
||||
threads_per_object_threadgroup: object,
|
||||
threads_per_mesh_threadgroup: mesh,
|
||||
};
|
||||
let size = MtlSize::new;
|
||||
let cases = [
|
||||
// Past the mesh stage's 32, by each draw.
|
||||
(&held, threadgroups(size(1, 1, 1), size(64, 1, 1)), true),
|
||||
(&held, threads(size(1, 1, 1), size(8, 8, 1)), true),
|
||||
(&held, indirect(size(1, 1, 1), size(33, 1, 1)), true),
|
||||
// Within it, of no thread and past 1024: drawn, as nothing.
|
||||
(&held, threadgroups(size(1, 1, 1), size(32, 1, 1)), false),
|
||||
(&held, threadgroups(size(1, 1, 1), size(0, 1, 1)), false),
|
||||
(&held, threadgroups(size(1, 1, 1), size(1025, 1, 1)), false),
|
||||
// No object function: its required size is not asked.
|
||||
(&held, threadgroups(size(3, 1, 1), size(4, 1, 1)), false),
|
||||
// Required object and mesh sizes.
|
||||
(&required, threadgroups(size(2, 1, 1), size(4, 1, 1)), false),
|
||||
(&required, threadgroups(size(4, 1, 1), size(4, 1, 1)), true),
|
||||
(&required, threadgroups(size(2, 1, 1), size(2, 2, 1)), true),
|
||||
(&required, threads(size(2, 1, 1), size(8, 1, 1)), true),
|
||||
(&required, indirect(size(1, 2, 1), size(4, 1, 1)), true),
|
||||
];
|
||||
for (i, (s, draw, dies)) in cases.into_iter().enumerate() {
|
||||
let sel = draw.selector();
|
||||
let (e, _target) = open_encoder();
|
||||
let range = NsRange {
|
||||
location: 0,
|
||||
length: 1,
|
||||
};
|
||||
for cmd in [
|
||||
RenderCmd::SetRenderPipelineState {
|
||||
pipeline_state: Some(s),
|
||||
},
|
||||
RenderCmd::SetMeshBuffers {
|
||||
buffers: &colours_list,
|
||||
offsets: &[0],
|
||||
range,
|
||||
},
|
||||
RenderCmd::SetObjectBuffers {
|
||||
buffers: &colours_list,
|
||||
offsets: &[0],
|
||||
range,
|
||||
},
|
||||
RenderCmd::SetObjectThreadgroupMemoryLength {
|
||||
length: 16,
|
||||
index: 0,
|
||||
},
|
||||
] {
|
||||
e.encode(OnFault::Die, cmd).unwrap();
|
||||
}
|
||||
let ended = catch_death(|| e.encode(OnFault::Return, draw));
|
||||
match dies {
|
||||
true => assert_eq!(ended.unwrap_err().file, sel, "case {i}"),
|
||||
false => {
|
||||
assert!(ended.is_ok(), "case {i}: {ended:?}");
|
||||
e.encode(OnFault::Die, RenderCmd::EndEncoding).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
values (false, 0, 4, false, 0)
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
reset, load (false, false) bytes 1033 cabcccd2d6e3f6c521355a2015196a78 010004000000000000bf8040ffbf8040ffbf8040ffbf8040ffbf8040ffbf8040
|
||||
reset, load (false, true) bytes 1033 09adfa6bb8f5c0247608728eead0af80 01000400000000000000070e151c232a31383f464d545b626970777e858c939a
|
||||
reset, load (true, false) bytes 1033 cabcccd2d6e3f6c521355a2015196a78 010004000000000000bf8040ffbf8040ffbf8040ffbf8040ffbf8040ffbf8040
|
||||
reset, load (true, true) bytes 1033 09adfa6bb8f5c0247608728eead0af80 01000400000000000000070e151c232a31383f464d545b626970777e858c939a
|
||||
after a released map, reset, load (false, false) bytes 1033 cabcccd2d6e3f6c521355a2015196a78 010004000000000000bf8040ffbf8040ffbf8040ffbf8040ffbf8040ffbf8040
|
||||
after a released map, reset, load (false, true) bytes 1033 09adfa6bb8f5c0247608728eead0af80 01000400000000000000070e151c232a31383f464d545b626970777e858c939a
|
||||
after a released map, reset, load (true, false) bytes 1033 cabcccd2d6e3f6c521355a2015196a78 010004000000000000bf8040ffbf8040ffbf8040ffbf8040ffbf8040ffbf8040
|
||||
after a released map, reset, load (true, true) bytes 1033 09adfa6bb8f5c0247608728eead0af80 01000400000000000000070e151c232a31383f464d545b626970777e858c939a
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
0 bytes 1032 3dfc866160fc55fdc5b3a3de9660425a 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
1 bytes 1032 3dfc866160fc55fdc5b3a3de9660425a 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
Scissor [[0, 250, 1, 255], [29, 249, 4, 255], [58, 248, 7, 255], [87, 247, 10, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [232, 242, 25, 255], [5, 241, 28, 255], [34, 240, 31, 255], [63, 239, 34, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [208, 234, 49, 255], [237, 233, 52, 255], [10, 232, 55, 255], [39, 231, 58, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [184, 226, 73, 255], [213, 225, 76, 255], [242, 224, 79, 255], [15, 223, 82, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255]]
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
0 direct bytes 1032 4a95b0320f2c07a2bf7f479136e04c28 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
0 restarted bytes 1032 7593f7a3f18d29fb662ca28e36cba3e9 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
1 direct bytes 1032 6d572910ae008da1b619896ca5c618ec 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
1 restarted bytes 1032 468c3fe665f56de18bc08addd360c214 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
IndexType2 [[0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255]]
|
||||
NoInstances { indexed: false } [[0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255]]
|
||||
NoInstances { indexed: true } [[0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 0, 255]]
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
smooth: Vertices(3, 1, 9, 2) at mode 0 bytes 1032 fe48fb924f4284d59be55b01887d80da 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Vertices(3, 1, 9, 2) at mode 1 bytes 1032 fe48fb924f4284d59be55b01887d80da 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Vertices(4, 3, 8, 1) at mode 0 bytes 1032 369ba72347faa28ef1f19f2896a90797 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Vertices(4, 3, 8, 1) at mode 1 bytes 1032 327a9bc020bc248b5f7969c4122cd4f5 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Vertices(6, 0, 6, 1) at mode 0 bytes 1032 944901875c10e461dcac763a4e70c786 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Vertices(6, 0, 6, 1) at mode 1 bytes 1032 944901875c10e461dcac763a4e70c786 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Indices { primitive_type: 4, index_type: 0, indices: [0, 3, 1, 4, 2, 5, 7, 6], base_vertex: 0, instances: 1 } at mode 0 bytes 1032 54c55f8b85ea4d563aef3d9c79f84d7d 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Indices { primitive_type: 4, index_type: 0, indices: [0, 3, 1, 4, 2, 5, 7, 6], base_vertex: 0, instances: 1 } at mode 1 bytes 1032 7e16379d0be3260c883150bfa3459cdb 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Indices { primitive_type: 4, index_type: 0, indices: [0, 1, 2, 3, 65535, 4, 5, 6, 7, 8], base_vertex: 0, instances: 1 } at mode 0 bytes 1032 2690471e694f4321e38f1d3368e6541d 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Indices { primitive_type: 4, index_type: 0, indices: [0, 1, 2, 3, 65535, 4, 5, 6, 7, 8], base_vertex: 0, instances: 1 } at mode 1 bytes 1032 a0fcb2911d0ea436ca0c43ef73a093b1 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Indirect(4, [8, 1, 3, 0]) at mode 0 bytes 1032 369ba72347faa28ef1f19f2896a90797 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
smooth: Indirect(4, [8, 1, 3, 0]) at mode 1 bytes 1032 327a9bc020bc248b5f7969c4122cd4f5 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
flat: Vertices(3, 1, 9, 1) at mode 0 bytes 1032 cb59490412c31533205cb1b487696e87 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
flat: Vertices(3, 1, 9, 1) at mode 1 bytes 1032 e808ba6d643fd20e3212aa3a53d32abf 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
flat: Vertices(4, 3, 8, 1) at mode 0 bytes 1032 20759b1a2ec4797b3c2cc548ca18cdfd 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
flat: Vertices(4, 3, 8, 1) at mode 1 bytes 1032 e984a8ab68e026c79e89f0cfdb5f2feb 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
flat: Indices { primitive_type: 3, index_type: 0, indices: [5, 0, 9, 1, 7, 3, 2, 8, 4], base_vertex: 0, instances: 1 } at mode 0 bytes 1032 92f676c175bbeb2ffd4b50e42b107be1 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
flat: Indices { primitive_type: 3, index_type: 0, indices: [5, 0, 9, 1, 7, 3, 2, 8, 4], base_vertex: 0, instances: 1 } at mode 1 bytes 1032 148a7a0ed942da3cdd3507d8d97fdb71 0001000000000000000000ff000000ff000000ff000000ff000000ff000000ff
|
||||
-31
@@ -1,31 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
(26, 2) float4 sweep 0 bytes 131072 134817336cb6a26f04a26a4d135d90ff 80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be
|
||||
(26, 2) float4 sweep 1 bytes 131072 9130086fb19f64d655556edc188d458d 803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f
|
||||
(26, 2) float4 sweep 2 bytes 131072 e7806029287574806a4058ced60d458d 80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf
|
||||
(26, 2) float4 sweep 3 bytes 131072 f66821f4a85769e7993d65fdb2b1c58d 8047804780478047804780478047804780478047804780478047804780478047
|
||||
(26, 2) float4 sweep 4 bytes 131072 af3082495a438882d9a14e052f580a8d 00c000c000c000c000c000c000c000c000c000c000c000c000c000c000c000c0
|
||||
(26, 2) half4 sweep 0 bytes 131072 f11f1623487fba70712784de5db4fde0 80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be
|
||||
(26, 2) half4 sweep 1 bytes 131072 525e532db80d569a54449908d20e858c 803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f
|
||||
(26, 2) half4 sweep 2 bytes 131072 aff62c323b1046abbbea0647254e858c 80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf
|
||||
(26, 2) half4 sweep 3 bytes 131072 690af31e7a1585e500d07fbbfd37978d 8047804780478047804780478047804780478047804780478047804780478047
|
||||
(26, 2) half4 sweep 4 bytes 131072 3dda67f401fea8052692fdf4699ad81d 00c000c000c000c000c000c000c000c000c000c000c000c000c000c000c000c0
|
||||
(66, 4) float4 sweep 0 bytes 262144 10d04d8ba7c5da7ce9bec67bcec0dfa5 80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be
|
||||
(66, 4) float4 sweep 1 bytes 262144 94c07bfadd9eaff0c3ddd2b84e84c58d 803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f
|
||||
(66, 4) float4 sweep 2 bytes 262144 dec7e0ea8717cfe368f0ce1dc984c58d 80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf
|
||||
(66, 4) float4 sweep 3 bytes 262144 f7c45ba2e7846859eb3ec7a602cdc58d 8047804780478047804780478047804780478047804780478047804780478047
|
||||
(66, 4) float4 sweep 4 bytes 262144 2f8613c1c6e1136f8e5fafc1fb56981d 00c000c000c000c000c000c000c000c000c000c000c000c000c000c000c000c0
|
||||
(66, 4) half4 sweep 0 bytes 262144 8c0022fb648c6709b79094deec1b4b39 80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be
|
||||
(66, 4) half4 sweep 1 bytes 262144 484bfef9f14974245b3adce536ab4a65 803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f
|
||||
(66, 4) half4 sweep 2 bytes 262144 5c2699eab7c63049d454ceacd62b4a65 80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf
|
||||
(66, 4) half4 sweep 3 bytes 262144 c9b1ea14015da805b36a3b81a3be858d 8047804780478047804780478047804780478047804780478047804780478047
|
||||
(66, 4) half4 sweep 4 bytes 262144 153dfeba557e4cb2b7a52535d851b33d 00c000c000c000c000c000c000c000c000c000c000c000c000c000c000c000c0
|
||||
(116, 8) float4 sweep 0 bytes 524288 33765831af329baff2ddac3d8418db6d 80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be
|
||||
(116, 8) float4 sweep 1 bytes 524288 8e2ab14b44da3b49afcdddd13a73c58d 803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f
|
||||
(116, 8) float4 sweep 2 bytes 524288 2c9eeb0fee9a8378ace8729c3073c58d 80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf
|
||||
(116, 8) float4 sweep 3 bytes 524288 15c831c27a49d8aa7db5e256a305c58d 8047804780478047804780478047804780478047804780478047804780478047
|
||||
(116, 8) float4 sweep 4 bytes 524288 5c89f34919d76f737a78db6aa00322ad 00c000c000c000c000c000c000c000c000c000c000c000c000c000c000c000c0
|
||||
(116, 8) half4 sweep 0 bytes 524288 86502ebb1f146ea5ab48bca988c96b55 80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be80be
|
||||
(116, 8) half4 sweep 1 bytes 524288 c57262aba16cedad5849a2d1cb240b3d 803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f803f
|
||||
(116, 8) half4 sweep 2 bytes 524288 aafae65c1683fc3b4d28809531b2c63d 80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf80bf
|
||||
(116, 8) half4 sweep 3 bytes 524288 9863c9b3df83f953c9ac6a3bee67458d 8047804780478047804780478047804780478047804780478047804780478047
|
||||
(116, 8) half4 sweep 4 bytes 524288 5b5ae1c679c3885282b0273ad02e4ced 00c000c000c000c000c000c000c000c000c000c000c000c000c000c000c000c0
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
Indexed [[0, 250, 1, 255], [29, 249, 4, 255], [58, 248, 7, 255], [87, 247, 10, 255], [116, 246, 13, 255], [145, 245, 16, 255], [174, 244, 19, 255], [203, 243, 22, 255], [232, 242, 25, 255], [5, 241, 28, 255], [34, 240, 31, 255], [63, 239, 34, 255], [92, 238, 37, 255], [121, 237, 40, 255], [150, 236, 43, 255], [179, 235, 46, 255], [208, 234, 49, 255], [237, 233, 52, 255], [10, 232, 55, 255], [39, 231, 58, 255], [68, 230, 61, 255], [97, 229, 64, 255], [126, 228, 67, 255], [155, 227, 70, 255], [184, 226, 73, 255], [213, 225, 76, 255], [242, 224, 79, 255], [15, 223, 82, 255], [44, 222, 85, 255], [73, 221, 88, 255], [102, 220, 91, 255], [131, 219, 94, 255]]
|
||||
IndexedBase [[0, 250, 1, 255], [29, 249, 4, 255], [58, 248, 7, 255], [87, 247, 10, 255], [116, 246, 13, 255], [145, 245, 16, 255], [174, 244, 19, 255], [203, 243, 22, 255], [232, 242, 25, 255], [5, 241, 28, 255], [34, 240, 31, 255], [63, 239, 34, 255], [92, 238, 37, 255], [121, 237, 40, 255], [150, 236, 43, 255], [179, 235, 46, 255], [208, 234, 49, 255], [237, 233, 52, 255], [10, 232, 55, 255], [39, 231, 58, 255], [68, 230, 61, 255], [97, 229, 64, 255], [126, 228, 67, 255], [155, 227, 70, 255], [184, 226, 73, 255], [213, 225, 76, 255], [242, 224, 79, 255], [15, 223, 82, 255], [44, 222, 85, 255], [73, 221, 88, 255], [102, 220, 91, 255], [131, 219, 94, 255]]
|
||||
Instances [[0, 250, 1, 255], [29, 249, 4, 255], [58, 248, 7, 255], [87, 247, 10, 255], [116, 246, 13, 255], [145, 245, 16, 255], [174, 244, 19, 255], [203, 243, 22, 255], [232, 242, 25, 255], [5, 241, 28, 255], [34, 240, 31, 255], [63, 239, 34, 255], [92, 238, 37, 255], [121, 237, 40, 255], [150, 236, 43, 255], [179, 235, 46, 255], [208, 234, 49, 255], [237, 233, 52, 255], [10, 232, 55, 255], [39, 231, 58, 255], [68, 230, 61, 255], [97, 229, 64, 255], [126, 228, 67, 255], [155, 227, 70, 255], [184, 226, 73, 255], [213, 225, 76, 255], [242, 224, 79, 255], [15, 223, 82, 255], [44, 222, 85, 255], [73, 221, 88, 255], [102, 220, 91, 255], [131, 219, 94, 255]]
|
||||
NilDepthStencil [[0, 250, 1, 255], [29, 249, 4, 255], [58, 248, 7, 255], [87, 247, 10, 255], [116, 246, 13, 255], [145, 245, 16, 255], [174, 244, 19, 255], [203, 243, 22, 255], [232, 242, 25, 255], [5, 241, 28, 255], [34, 240, 31, 255], [63, 239, 34, 255], [92, 238, 37, 255], [121, 237, 40, 255], [150, 236, 43, 255], [179, 235, 46, 255], [208, 234, 49, 255], [237, 233, 52, 255], [10, 232, 55, 255], [39, 231, 58, 255], [68, 230, 61, 255], [97, 229, 64, 255], [126, 228, 67, 255], [155, 227, 70, 255], [184, 226, 73, 255], [213, 225, 76, 255], [242, 224, 79, 255], [15, 223, 82, 255], [44, 222, 85, 255], [73, 221, 88, 255], [102, 220, 91, 255], [131, 219, 94, 255]]
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
554 2x store 2 bytes 16384 e4bf15bc2ca372b35dcd7aea811c8b0d d4d124c07fce76ce4ba308d8feff39db022c8de2e7f8ffe78009b0f4b39de3ff
|
||||
554 2x store 3 bytes 16384 e4bf15bc2ca372b35dcd7aea811c8b0d d4d124c07fce76ce4ba308d8feff39db022c8de2e7f8ffe78009b0f4b39de3ff
|
||||
554 2x store 1 bytes 16384 e4bf15bc2ca372b35dcd7aea811c8b0d d4d124c07fce76ce4ba308d8feff39db022c8de2e7f8ffe78009b0f4b39de3ff
|
||||
554 4x store 2 bytes 16384 3150ea53342bdc42975003e419afb476 d4d124c07fce76ce4ba308d8feff39db022c8de2e7f8ffe78009b0f4b39de3ff
|
||||
554 4x store 3 bytes 16384 3150ea53342bdc42975003e419afb476 d4d124c07fce76ce4ba308d8feff39db022c8de2e7f8ffe78009b0f4b39de3ff
|
||||
554 4x store 1 bytes 16384 3150ea53342bdc42975003e419afb476 d4d124c07fce76ce4ba308d8feff39db022c8de2e7f8ffe78009b0f4b39de3ff
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
25 2x store 2 bytes 8192 e1bde6e1f3cb4b5a79e82f28e2367d8d 000000000000007c00fcff7b003800b400000000007c00fcff7b003800b40000
|
||||
65 2x store 2 bytes 16384 ca2a1aa5cd592c52a42243b82657b58d 000000000000007c000000fc007cff7b00fc0038ff7b00b40038000000b40000
|
||||
115 2x store 2 bytes 32768 3e0a9701e826b21c172d7ec3c211058d 0000000000f800780000007cff7b00b4000000fc00380000007cff7b00b40000
|
||||
55 2x store 2 bytes 16384 54b96768e17f08c65710e9453ae9e98d 0000c07f0000c07f0000c07f0000807f000080ff00e0ff470000003f000080be
|
||||
25 2x store 3 bytes 8192 e1bde6e1f3cb4b5a79e82f28e2367d8d 000000000000007c00fcff7b003800b400000000007c00fcff7b003800b40000
|
||||
65 2x store 3 bytes 16384 ca2a1aa5cd592c52a42243b82657b58d 000000000000007c000000fc007cff7b00fc0038ff7b00b40038000000b40000
|
||||
115 2x store 3 bytes 32768 3e0a9701e826b21c172d7ec3c211058d 0000000000f800780000007cff7b00b4000000fc00380000007cff7b00b40000
|
||||
55 2x store 3 bytes 16384 54b96768e17f08c65710e9453ae9e98d 0000c07f0000c07f0000c07f0000807f000080ff00e0ff470000003f000080be
|
||||
25 2x store 1 bytes 8192 e1bde6e1f3cb4b5a79e82f28e2367d8d 000000000000007c00fcff7b003800b400000000007c00fcff7b003800b40000
|
||||
65 2x store 1 bytes 16384 ca2a1aa5cd592c52a42243b82657b58d 000000000000007c000000fc007cff7b00fc0038ff7b00b40038000000b40000
|
||||
115 2x store 1 bytes 32768 3e0a9701e826b21c172d7ec3c211058d 0000000000f800780000007cff7b00b4000000fc00380000007cff7b00b40000
|
||||
55 2x store 1 bytes 16384 54b96768e17f08c65710e9453ae9e98d 0000c07f0000c07f0000c07f0000807f000080ff00e0ff470000003f000080be
|
||||
25 4x store 2 bytes 8192 0bb40c2b6fa79f1618a91b09bd3fe0be 000000000000007c00fcff7b003800b400000000007c00fcff7b003800b40000
|
||||
65 4x store 2 bytes 16384 ca3cd0f546d9d54cd46d41d50c8ddca6 000000000000007c000000fc007cff7b00fc0038ff7b00b40038000000b40000
|
||||
115 4x store 2 bytes 32768 ccda3217aee6eda02ba5bd919943ac7c 0000000000f800780000007cff7b00b4000000fc00380000007cff7b00b40000
|
||||
55 4x store 2 bytes 16384 e7691686716b37112d728bce38c11c32 0000c07f0000c07f0000c07f0000807f000080ff00e0ff470000003f000080be
|
||||
25 4x store 3 bytes 8192 0bb40c2b6fa79f1618a91b09bd3fe0be 000000000000007c00fcff7b003800b400000000007c00fcff7b003800b40000
|
||||
65 4x store 3 bytes 16384 ca3cd0f546d9d54cd46d41d50c8ddca6 000000000000007c000000fc007cff7b00fc0038ff7b00b40038000000b40000
|
||||
115 4x store 3 bytes 32768 ccda3217aee6eda02ba5bd919943ac7c 0000000000f800780000007cff7b00b4000000fc00380000007cff7b00b40000
|
||||
55 4x store 3 bytes 16384 e7691686716b37112d728bce38c11c32 0000c07f0000c07f0000c07f0000807f000080ff00e0ff470000003f000080be
|
||||
25 4x store 1 bytes 8192 0bb40c2b6fa79f1618a91b09bd3fe0be 000000000000007c00fcff7b003800b400000000007c00fcff7b003800b40000
|
||||
65 4x store 1 bytes 16384 ca3cd0f546d9d54cd46d41d50c8ddca6 000000000000007c000000fc007cff7b00fc0038ff7b00b40038000000b40000
|
||||
115 4x store 1 bytes 32768 ccda3217aee6eda02ba5bd919943ac7c 0000000000f800780000007cff7b00b4000000fc00380000007cff7b00b40000
|
||||
55 4x store 1 bytes 16384 e7691686716b37112d728bce38c11c32 0000c07f0000c07f0000c07f0000807f000080ff00e0ff470000003f000080be
|
||||
-253
@@ -1,253 +0,0 @@
|
||||
# Metal's answers, recorded from the Metal platform on an M3 Max, macOS 27.0.1, 2026-11-07. Never rewrite them from this library's own output.
|
||||
fast math off xr_half_fragment format 550 blend None xz 65536 0
|
||||
fast math off xr_half_fragment format 550 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 65536
|
||||
fast math off xr_half_fragment format 550 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 131072
|
||||
fast math off xr_half_fragment format 552 blend None xz 65536 196608
|
||||
fast math off xr_half_fragment format 552 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 262144
|
||||
fast math off xr_half_fragment format 552 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 327680
|
||||
fast math off xr_half_fragment format 554 blend None xz 65536 393216
|
||||
fast math off xr_half_fragment format 554 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 458752
|
||||
fast math off xr_half_fragment format 554 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 524288
|
||||
fast math off xr_half_fragment format 551 blend None xz 65536 589824
|
||||
fast math off xr_half_fragment format 551 blend Some([1, 1, 0, 1, 1, 0]) xz 65536 655360
|
||||
fast math off xr_half_fragment format 551 blend Some([0, 5, 0, 0, 5, 0]) xz 65536 720896
|
||||
fast math off xr_half_fragment format 551 blend Some([1, 5, 0, 1, 5, 0]) xz 65536 786432
|
||||
fast math off xr_half_fragment format 551 blend Some([4, 5, 0, 1, 5, 0]) xz 65536 851968
|
||||
fast math off xr_half_fragment format 551 blend Some([4, 5, 0, 4, 5, 0]) xz 65536 917504
|
||||
fast math off xr_half_fragment format 551 blend Some([6, 0, 0, 6, 0, 0]) xz 65536 983040
|
||||
fast math off xr_half_fragment format 551 blend Some([6, 5, 0, 1, 5, 0]) xz 65536 1048576
|
||||
fast math off xr_half_fragment format 551 blend Some([3, 8, 0, 1, 1, 0]) xz 65536 1114112
|
||||
fast math off xr_half_fragment format 551 blend Some([3, 6, 0, 1, 1, 0]) xz 65536 1179648
|
||||
fast math off xr_half_fragment format 551 blend Some([3, 5, 0, 1, 5, 0]) xz 65536 1245184
|
||||
fast math off xr_half_fragment format 551 blend Some([6, 2, 0, 1, 1, 0]) xz 65536 1310720
|
||||
fast math off xr_half_fragment format 551 blend Some([1, 1, 1, 1, 1, 1]) xz 65536 1376256
|
||||
fast math off xr_half_fragment format 551 blend Some([1, 1, 2, 1, 1, 2]) xz 65536 1441792
|
||||
fast math off xr_half_fragment format 551 blend Some([1, 1, 3, 1, 1, 3]) xz 65536 1507328
|
||||
fast math off xr_half_fragment format 551 blend Some([1, 1, 4, 1, 1, 4]) xz 65536 1572864
|
||||
fast math off xr_half_fragment format 551 blend Some([7, 1, 0, 1, 1, 0]) xz 65536 1638400
|
||||
fast math off xr_half_fragment format 551 blend Some([9, 1, 0, 9, 1, 0]) xz 65536 1703936
|
||||
fast math off xr_half_fragment format 551 blend Some([2, 0, 0, 2, 0, 0]) xz 65536 1769472
|
||||
fast math off xr_half_fragment format 551 blend Some([10, 1, 0, 1, 1, 0]) xz 65536 1835008
|
||||
fast math off xr_half_fragment format 551 blend Some([8, 9, 0, 8, 9, 0]) xz 65536 1900544
|
||||
fast math off xr_half_fragment format 551 blend Some([11, 12, 0, 13, 14, 0]) xz 65536 1966080
|
||||
fast math off xr_half_fragment format 551 blend Some([5, 4, 0, 5, 4, 0]) xz 65536 2031616
|
||||
fast math off xr_half_fragment format 551 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 2097152
|
||||
fast math off xr_half_fragment format 551 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 2162688
|
||||
fast math off xr_half_fragment format 553 blend None xz 65536 2228224
|
||||
fast math off xr_half_fragment format 553 blend Some([1, 1, 0, 1, 1, 0]) xz 65536 2293760
|
||||
fast math off xr_half_fragment format 553 blend Some([0, 5, 0, 0, 5, 0]) xz 65536 2359296
|
||||
fast math off xr_half_fragment format 553 blend Some([1, 5, 0, 1, 5, 0]) xz 65536 2424832
|
||||
fast math off xr_half_fragment format 553 blend Some([4, 5, 0, 1, 5, 0]) xz 65536 2490368
|
||||
fast math off xr_half_fragment format 553 blend Some([4, 5, 0, 4, 5, 0]) xz 65536 2555904
|
||||
fast math off xr_half_fragment format 553 blend Some([6, 0, 0, 6, 0, 0]) xz 65536 2621440
|
||||
fast math off xr_half_fragment format 553 blend Some([6, 5, 0, 1, 5, 0]) xz 65536 2686976
|
||||
fast math off xr_half_fragment format 553 blend Some([3, 8, 0, 1, 1, 0]) xz 65536 2752512
|
||||
fast math off xr_half_fragment format 553 blend Some([3, 6, 0, 1, 1, 0]) xz 65536 2818048
|
||||
fast math off xr_half_fragment format 553 blend Some([3, 5, 0, 1, 5, 0]) xz 65536 2883584
|
||||
fast math off xr_half_fragment format 553 blend Some([6, 2, 0, 1, 1, 0]) xz 65536 2949120
|
||||
fast math off xr_half_fragment format 553 blend Some([1, 1, 1, 1, 1, 1]) xz 65536 3014656
|
||||
fast math off xr_half_fragment format 553 blend Some([1, 1, 2, 1, 1, 2]) xz 65536 3080192
|
||||
fast math off xr_half_fragment format 553 blend Some([1, 1, 3, 1, 1, 3]) xz 65536 3145728
|
||||
fast math off xr_half_fragment format 553 blend Some([1, 1, 4, 1, 1, 4]) xz 65536 3211264
|
||||
fast math off xr_half_fragment format 553 blend Some([7, 1, 0, 1, 1, 0]) xz 65536 3276800
|
||||
fast math off xr_half_fragment format 553 blend Some([9, 1, 0, 9, 1, 0]) xz 65536 3342336
|
||||
fast math off xr_half_fragment format 553 blend Some([2, 0, 0, 2, 0, 0]) xz 65536 3407872
|
||||
fast math off xr_half_fragment format 553 blend Some([10, 1, 0, 1, 1, 0]) xz 65536 3473408
|
||||
fast math off xr_half_fragment format 553 blend Some([8, 9, 0, 8, 9, 0]) xz 65536 3538944
|
||||
fast math off xr_half_fragment format 553 blend Some([11, 12, 0, 13, 14, 0]) xz 65536 3604480
|
||||
fast math off xr_half_fragment format 553 blend Some([5, 4, 0, 5, 4, 0]) xz 65536 3670016
|
||||
fast math off xr_half_fragment format 553 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 3735552
|
||||
fast math off xr_half_fragment format 553 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 3801088
|
||||
fast math off xr_half_fragment format 555 blend None xz 65536 3866624
|
||||
fast math off xr_half_fragment format 555 blend Some([1, 1, 0, 1, 1, 0]) xz 65536 3932160
|
||||
fast math off xr_half_fragment format 555 blend Some([0, 5, 0, 0, 5, 0]) xz 65536 3997696
|
||||
fast math off xr_half_fragment format 555 blend Some([1, 5, 0, 1, 5, 0]) xz 65536 4063232
|
||||
fast math off xr_half_fragment format 555 blend Some([4, 5, 0, 1, 5, 0]) xz 65536 4128768
|
||||
fast math off xr_half_fragment format 555 blend Some([4, 5, 0, 4, 5, 0]) xz 65536 4194304
|
||||
fast math off xr_half_fragment format 555 blend Some([6, 0, 0, 6, 0, 0]) xz 65536 4259840
|
||||
fast math off xr_half_fragment format 555 blend Some([6, 5, 0, 1, 5, 0]) xz 65536 4325376
|
||||
fast math off xr_half_fragment format 555 blend Some([3, 8, 0, 1, 1, 0]) xz 65536 4390912
|
||||
fast math off xr_half_fragment format 555 blend Some([3, 6, 0, 1, 1, 0]) xz 65536 4456448
|
||||
fast math off xr_half_fragment format 555 blend Some([3, 5, 0, 1, 5, 0]) xz 65536 4521984
|
||||
fast math off xr_half_fragment format 555 blend Some([6, 2, 0, 1, 1, 0]) xz 65536 4587520
|
||||
fast math off xr_half_fragment format 555 blend Some([1, 1, 1, 1, 1, 1]) xz 65536 4653056
|
||||
fast math off xr_half_fragment format 555 blend Some([1, 1, 2, 1, 1, 2]) xz 65536 4718592
|
||||
fast math off xr_half_fragment format 555 blend Some([1, 1, 3, 1, 1, 3]) xz 65536 4784128
|
||||
fast math off xr_half_fragment format 555 blend Some([1, 1, 4, 1, 1, 4]) xz 65536 4849664
|
||||
fast math off xr_half_fragment format 555 blend Some([7, 1, 0, 1, 1, 0]) xz 65536 4915200
|
||||
fast math off xr_half_fragment format 555 blend Some([9, 1, 0, 9, 1, 0]) xz 65536 4980736
|
||||
fast math off xr_half_fragment format 555 blend Some([2, 0, 0, 2, 0, 0]) xz 65536 5046272
|
||||
fast math off xr_half_fragment format 555 blend Some([10, 1, 0, 1, 1, 0]) xz 65536 5111808
|
||||
fast math off xr_half_fragment format 555 blend Some([8, 9, 0, 8, 9, 0]) xz 65536 5177344
|
||||
fast math off xr_half_fragment format 555 blend Some([11, 12, 0, 13, 14, 0]) xz 65536 5242880
|
||||
fast math off xr_half_fragment format 555 blend Some([5, 4, 0, 5, 4, 0]) xz 65536 5308416
|
||||
fast math off xr_half_fragment format 555 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 5373952
|
||||
fast math off xr_half_fragment format 555 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 5439488
|
||||
fast math off xr_float_fragment format 550 blend None xz 65536 5505024
|
||||
fast math off xr_float_fragment format 550 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 5570560
|
||||
fast math off xr_float_fragment format 550 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 5636096
|
||||
fast math off xr_float_fragment format 552 blend None xz 65536 5701632
|
||||
fast math off xr_float_fragment format 552 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 5767168
|
||||
fast math off xr_float_fragment format 552 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 5832704
|
||||
fast math off xr_float_fragment format 554 blend None xz 65536 5898240
|
||||
fast math off xr_float_fragment format 554 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 5963776
|
||||
fast math off xr_float_fragment format 554 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 6029312
|
||||
fast math off xr_float_fragment format 551 blend None xz 65536 6094848
|
||||
fast math off xr_float_fragment format 551 blend Some([1, 1, 0, 1, 1, 0]) xz 65536 6160384
|
||||
fast math off xr_float_fragment format 551 blend Some([0, 5, 0, 0, 5, 0]) xz 65536 6225920
|
||||
fast math off xr_float_fragment format 551 blend Some([1, 5, 0, 1, 5, 0]) xz 65536 6291456
|
||||
fast math off xr_float_fragment format 551 blend Some([4, 5, 0, 1, 5, 0]) xz 65536 6356992
|
||||
fast math off xr_float_fragment format 551 blend Some([4, 5, 0, 4, 5, 0]) xz 65536 6422528
|
||||
fast math off xr_float_fragment format 551 blend Some([6, 0, 0, 6, 0, 0]) xz 65536 6488064
|
||||
fast math off xr_float_fragment format 551 blend Some([6, 5, 0, 1, 5, 0]) xz 65536 6553600
|
||||
fast math off xr_float_fragment format 551 blend Some([3, 8, 0, 1, 1, 0]) xz 65536 6619136
|
||||
fast math off xr_float_fragment format 551 blend Some([3, 6, 0, 1, 1, 0]) xz 65536 6684672
|
||||
fast math off xr_float_fragment format 551 blend Some([3, 5, 0, 1, 5, 0]) xz 65536 6750208
|
||||
fast math off xr_float_fragment format 551 blend Some([6, 2, 0, 1, 1, 0]) xz 65536 6815744
|
||||
fast math off xr_float_fragment format 551 blend Some([1, 1, 1, 1, 1, 1]) xz 65536 6881280
|
||||
fast math off xr_float_fragment format 551 blend Some([1, 1, 2, 1, 1, 2]) xz 65536 6946816
|
||||
fast math off xr_float_fragment format 551 blend Some([1, 1, 3, 1, 1, 3]) xz 65536 7012352
|
||||
fast math off xr_float_fragment format 551 blend Some([1, 1, 4, 1, 1, 4]) xz 65536 7077888
|
||||
fast math off xr_float_fragment format 551 blend Some([7, 1, 0, 1, 1, 0]) xz 65536 7143424
|
||||
fast math off xr_float_fragment format 551 blend Some([9, 1, 0, 9, 1, 0]) xz 65536 7208960
|
||||
fast math off xr_float_fragment format 551 blend Some([2, 0, 0, 2, 0, 0]) xz 65536 7274496
|
||||
fast math off xr_float_fragment format 551 blend Some([10, 1, 0, 1, 1, 0]) xz 65536 7340032
|
||||
fast math off xr_float_fragment format 551 blend Some([8, 9, 0, 8, 9, 0]) xz 65536 7405568
|
||||
fast math off xr_float_fragment format 551 blend Some([11, 12, 0, 13, 14, 0]) xz 65536 7471104
|
||||
fast math off xr_float_fragment format 551 blend Some([5, 4, 0, 5, 4, 0]) xz 65536 7536640
|
||||
fast math off xr_float_fragment format 551 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 7602176
|
||||
fast math off xr_float_fragment format 551 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 7667712
|
||||
fast math off xr_float_fragment format 553 blend None xz 65536 7733248
|
||||
fast math off xr_float_fragment format 553 blend Some([1, 1, 0, 1, 1, 0]) xz 65536 7798784
|
||||
fast math off xr_float_fragment format 553 blend Some([0, 5, 0, 0, 5, 0]) xz 65536 7864320
|
||||
fast math off xr_float_fragment format 553 blend Some([1, 5, 0, 1, 5, 0]) xz 65536 7929856
|
||||
fast math off xr_float_fragment format 553 blend Some([4, 5, 0, 1, 5, 0]) xz 65536 7995392
|
||||
fast math off xr_float_fragment format 553 blend Some([4, 5, 0, 4, 5, 0]) xz 65536 8060928
|
||||
fast math off xr_float_fragment format 553 blend Some([6, 0, 0, 6, 0, 0]) xz 65536 8126464
|
||||
fast math off xr_float_fragment format 553 blend Some([6, 5, 0, 1, 5, 0]) xz 65536 8192000
|
||||
fast math off xr_float_fragment format 553 blend Some([3, 8, 0, 1, 1, 0]) xz 65536 8257536
|
||||
fast math off xr_float_fragment format 553 blend Some([3, 6, 0, 1, 1, 0]) xz 65536 8323072
|
||||
fast math off xr_float_fragment format 553 blend Some([3, 5, 0, 1, 5, 0]) xz 65536 8388608
|
||||
fast math off xr_float_fragment format 553 blend Some([6, 2, 0, 1, 1, 0]) xz 65536 8454144
|
||||
fast math off xr_float_fragment format 553 blend Some([1, 1, 1, 1, 1, 1]) xz 65536 8519680
|
||||
fast math off xr_float_fragment format 553 blend Some([1, 1, 2, 1, 1, 2]) xz 65536 8585216
|
||||
fast math off xr_float_fragment format 553 blend Some([1, 1, 3, 1, 1, 3]) xz 65536 8650752
|
||||
fast math off xr_float_fragment format 553 blend Some([1, 1, 4, 1, 1, 4]) xz 65536 8716288
|
||||
fast math off xr_float_fragment format 553 blend Some([7, 1, 0, 1, 1, 0]) xz 65536 8781824
|
||||
fast math off xr_float_fragment format 553 blend Some([9, 1, 0, 9, 1, 0]) xz 65536 8847360
|
||||
fast math off xr_float_fragment format 553 blend Some([2, 0, 0, 2, 0, 0]) xz 65536 8912896
|
||||
fast math off xr_float_fragment format 553 blend Some([10, 1, 0, 1, 1, 0]) xz 65536 8978432
|
||||
fast math off xr_float_fragment format 553 blend Some([8, 9, 0, 8, 9, 0]) xz 65536 9043968
|
||||
fast math off xr_float_fragment format 553 blend Some([11, 12, 0, 13, 14, 0]) xz 65536 9109504
|
||||
fast math off xr_float_fragment format 553 blend Some([5, 4, 0, 5, 4, 0]) xz 65536 9175040
|
||||
fast math off xr_float_fragment format 553 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 9240576
|
||||
fast math off xr_float_fragment format 553 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 9306112
|
||||
fast math off xr_float_fragment format 555 blend None xz 65536 9371648
|
||||
fast math off xr_float_fragment format 555 blend Some([1, 1, 0, 1, 1, 0]) xz 65536 9437184
|
||||
fast math off xr_float_fragment format 555 blend Some([0, 5, 0, 0, 5, 0]) xz 65536 9502720
|
||||
fast math off xr_float_fragment format 555 blend Some([1, 5, 0, 1, 5, 0]) xz 65536 9568256
|
||||
fast math off xr_float_fragment format 555 blend Some([4, 5, 0, 1, 5, 0]) xz 65536 9633792
|
||||
fast math off xr_float_fragment format 555 blend Some([4, 5, 0, 4, 5, 0]) xz 65536 9699328
|
||||
fast math off xr_float_fragment format 555 blend Some([6, 0, 0, 6, 0, 0]) xz 65536 9764864
|
||||
fast math off xr_float_fragment format 555 blend Some([6, 5, 0, 1, 5, 0]) xz 65536 9830400
|
||||
fast math off xr_float_fragment format 555 blend Some([3, 8, 0, 1, 1, 0]) xz 65536 9895936
|
||||
fast math off xr_float_fragment format 555 blend Some([3, 6, 0, 1, 1, 0]) xz 65536 9961472
|
||||
fast math off xr_float_fragment format 555 blend Some([3, 5, 0, 1, 5, 0]) xz 65536 10027008
|
||||
fast math off xr_float_fragment format 555 blend Some([6, 2, 0, 1, 1, 0]) xz 65536 10092544
|
||||
fast math off xr_float_fragment format 555 blend Some([1, 1, 1, 1, 1, 1]) xz 65536 10158080
|
||||
fast math off xr_float_fragment format 555 blend Some([1, 1, 2, 1, 1, 2]) xz 65536 10223616
|
||||
fast math off xr_float_fragment format 555 blend Some([1, 1, 3, 1, 1, 3]) xz 65536 10289152
|
||||
fast math off xr_float_fragment format 555 blend Some([1, 1, 4, 1, 1, 4]) xz 65536 10354688
|
||||
fast math off xr_float_fragment format 555 blend Some([7, 1, 0, 1, 1, 0]) xz 65536 10420224
|
||||
fast math off xr_float_fragment format 555 blend Some([9, 1, 0, 9, 1, 0]) xz 65536 10485760
|
||||
fast math off xr_float_fragment format 555 blend Some([2, 0, 0, 2, 0, 0]) xz 65536 10551296
|
||||
fast math off xr_float_fragment format 555 blend Some([10, 1, 0, 1, 1, 0]) xz 65536 10616832
|
||||
fast math off xr_float_fragment format 555 blend Some([8, 9, 0, 8, 9, 0]) xz 65536 10682368
|
||||
fast math off xr_float_fragment format 555 blend Some([11, 12, 0, 13, 14, 0]) xz 65536 10747904
|
||||
fast math off xr_float_fragment format 555 blend Some([5, 4, 0, 5, 4, 0]) xz 65536 10813440
|
||||
fast math off xr_float_fragment format 555 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 10878976
|
||||
fast math off xr_float_fragment format 555 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 10944512
|
||||
fast math off xr_loaded_fragment format 550 blend None xz 65536 11010048
|
||||
fast math off xr_loaded_fragment format 550 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 11075584
|
||||
fast math off xr_loaded_fragment format 550 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 11141120
|
||||
fast math off xr_loaded_fragment format 552 blend None xz 65536 11206656
|
||||
fast math off xr_loaded_fragment format 552 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 11272192
|
||||
fast math off xr_loaded_fragment format 552 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 11337728
|
||||
fast math off xr_loaded_fragment format 554 blend None xz 65536 11403264
|
||||
fast math off xr_loaded_fragment format 554 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 11468800
|
||||
fast math off xr_loaded_fragment format 554 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 11534336
|
||||
fast math off xr_loaded_fragment format 551 blend None xz 65536 11599872
|
||||
fast math off xr_loaded_fragment format 551 blend Some([1, 1, 0, 1, 1, 0]) xz 65536 11665408
|
||||
fast math off xr_loaded_fragment format 551 blend Some([0, 5, 0, 0, 5, 0]) xz 65536 11730944
|
||||
fast math off xr_loaded_fragment format 551 blend Some([1, 5, 0, 1, 5, 0]) xz 65536 11796480
|
||||
fast math off xr_loaded_fragment format 551 blend Some([4, 5, 0, 1, 5, 0]) xz 65536 11862016
|
||||
fast math off xr_loaded_fragment format 551 blend Some([4, 5, 0, 4, 5, 0]) xz 65536 11927552
|
||||
fast math off xr_loaded_fragment format 551 blend Some([6, 0, 0, 6, 0, 0]) xz 65536 11993088
|
||||
fast math off xr_loaded_fragment format 551 blend Some([6, 5, 0, 1, 5, 0]) xz 65536 12058624
|
||||
fast math off xr_loaded_fragment format 551 blend Some([3, 8, 0, 1, 1, 0]) xz 65536 12124160
|
||||
fast math off xr_loaded_fragment format 551 blend Some([3, 6, 0, 1, 1, 0]) xz 65536 12189696
|
||||
fast math off xr_loaded_fragment format 551 blend Some([3, 5, 0, 1, 5, 0]) xz 65536 12255232
|
||||
fast math off xr_loaded_fragment format 551 blend Some([6, 2, 0, 1, 1, 0]) xz 65536 12320768
|
||||
fast math off xr_loaded_fragment format 551 blend Some([1, 1, 1, 1, 1, 1]) xz 65536 12386304
|
||||
fast math off xr_loaded_fragment format 551 blend Some([1, 1, 2, 1, 1, 2]) xz 65536 12451840
|
||||
fast math off xr_loaded_fragment format 551 blend Some([1, 1, 3, 1, 1, 3]) xz 65536 12517376
|
||||
fast math off xr_loaded_fragment format 551 blend Some([1, 1, 4, 1, 1, 4]) xz 65536 12582912
|
||||
fast math off xr_loaded_fragment format 551 blend Some([7, 1, 0, 1, 1, 0]) xz 65536 12648448
|
||||
fast math off xr_loaded_fragment format 551 blend Some([9, 1, 0, 9, 1, 0]) xz 65536 12713984
|
||||
fast math off xr_loaded_fragment format 551 blend Some([2, 0, 0, 2, 0, 0]) xz 65536 12779520
|
||||
fast math off xr_loaded_fragment format 551 blend Some([10, 1, 0, 1, 1, 0]) xz 65536 12845056
|
||||
fast math off xr_loaded_fragment format 551 blend Some([8, 9, 0, 8, 9, 0]) xz 65536 12910592
|
||||
fast math off xr_loaded_fragment format 551 blend Some([11, 12, 0, 13, 14, 0]) xz 65536 12976128
|
||||
fast math off xr_loaded_fragment format 551 blend Some([5, 4, 0, 5, 4, 0]) xz 65536 13041664
|
||||
fast math off xr_loaded_fragment format 551 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 13107200
|
||||
fast math off xr_loaded_fragment format 551 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 13172736
|
||||
fast math off xr_loaded_fragment format 553 blend None xz 65536 13238272
|
||||
fast math off xr_loaded_fragment format 553 blend Some([1, 1, 0, 1, 1, 0]) xz 65536 13303808
|
||||
fast math off xr_loaded_fragment format 553 blend Some([0, 5, 0, 0, 5, 0]) xz 65536 13369344
|
||||
fast math off xr_loaded_fragment format 553 blend Some([1, 5, 0, 1, 5, 0]) xz 65536 13434880
|
||||
fast math off xr_loaded_fragment format 553 blend Some([4, 5, 0, 1, 5, 0]) xz 65536 13500416
|
||||
fast math off xr_loaded_fragment format 553 blend Some([4, 5, 0, 4, 5, 0]) xz 65536 13565952
|
||||
fast math off xr_loaded_fragment format 553 blend Some([6, 0, 0, 6, 0, 0]) xz 65536 13631488
|
||||
fast math off xr_loaded_fragment format 553 blend Some([6, 5, 0, 1, 5, 0]) xz 65536 13697024
|
||||
fast math off xr_loaded_fragment format 553 blend Some([3, 8, 0, 1, 1, 0]) xz 65536 13762560
|
||||
fast math off xr_loaded_fragment format 553 blend Some([3, 6, 0, 1, 1, 0]) xz 65536 13828096
|
||||
fast math off xr_loaded_fragment format 553 blend Some([3, 5, 0, 1, 5, 0]) xz 65536 13893632
|
||||
fast math off xr_loaded_fragment format 553 blend Some([6, 2, 0, 1, 1, 0]) xz 65536 13959168
|
||||
fast math off xr_loaded_fragment format 553 blend Some([1, 1, 1, 1, 1, 1]) xz 65536 14024704
|
||||
fast math off xr_loaded_fragment format 553 blend Some([1, 1, 2, 1, 1, 2]) xz 65536 14090240
|
||||
fast math off xr_loaded_fragment format 553 blend Some([1, 1, 3, 1, 1, 3]) xz 65536 14155776
|
||||
fast math off xr_loaded_fragment format 553 blend Some([1, 1, 4, 1, 1, 4]) xz 65536 14221312
|
||||
fast math off xr_loaded_fragment format 553 blend Some([7, 1, 0, 1, 1, 0]) xz 65536 14286848
|
||||
fast math off xr_loaded_fragment format 553 blend Some([9, 1, 0, 9, 1, 0]) xz 65536 14352384
|
||||
fast math off xr_loaded_fragment format 553 blend Some([2, 0, 0, 2, 0, 0]) xz 65536 14417920
|
||||
fast math off xr_loaded_fragment format 553 blend Some([10, 1, 0, 1, 1, 0]) xz 65536 14483456
|
||||
fast math off xr_loaded_fragment format 553 blend Some([8, 9, 0, 8, 9, 0]) xz 65536 14548992
|
||||
fast math off xr_loaded_fragment format 553 blend Some([11, 12, 0, 13, 14, 0]) xz 65536 14614528
|
||||
fast math off xr_loaded_fragment format 553 blend Some([5, 4, 0, 5, 4, 0]) xz 65536 14680064
|
||||
fast math off xr_loaded_fragment format 553 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 14745600
|
||||
fast math off xr_loaded_fragment format 553 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 14811136
|
||||
fast math off xr_loaded_fragment format 555 blend None xz 65536 14876672
|
||||
fast math off xr_loaded_fragment format 555 blend Some([1, 1, 0, 1, 1, 0]) xz 65536 14942208
|
||||
fast math off xr_loaded_fragment format 555 blend Some([0, 5, 0, 0, 5, 0]) xz 65536 15007744
|
||||
fast math off xr_loaded_fragment format 555 blend Some([1, 5, 0, 1, 5, 0]) xz 65536 15073280
|
||||
fast math off xr_loaded_fragment format 555 blend Some([4, 5, 0, 1, 5, 0]) xz 65536 15138816
|
||||
fast math off xr_loaded_fragment format 555 blend Some([4, 5, 0, 4, 5, 0]) xz 65536 15204352
|
||||
fast math off xr_loaded_fragment format 555 blend Some([6, 0, 0, 6, 0, 0]) xz 65536 15269888
|
||||
fast math off xr_loaded_fragment format 555 blend Some([6, 5, 0, 1, 5, 0]) xz 65536 15335424
|
||||
fast math off xr_loaded_fragment format 555 blend Some([3, 8, 0, 1, 1, 0]) xz 65536 15400960
|
||||
fast math off xr_loaded_fragment format 555 blend Some([3, 6, 0, 1, 1, 0]) xz 65536 15466496
|
||||
fast math off xr_loaded_fragment format 555 blend Some([3, 5, 0, 1, 5, 0]) xz 65536 15532032
|
||||
fast math off xr_loaded_fragment format 555 blend Some([6, 2, 0, 1, 1, 0]) xz 65536 15597568
|
||||
fast math off xr_loaded_fragment format 555 blend Some([1, 1, 1, 1, 1, 1]) xz 65536 15663104
|
||||
fast math off xr_loaded_fragment format 555 blend Some([1, 1, 2, 1, 1, 2]) xz 65536 15728640
|
||||
fast math off xr_loaded_fragment format 555 blend Some([1, 1, 3, 1, 1, 3]) xz 65536 15794176
|
||||
fast math off xr_loaded_fragment format 555 blend Some([1, 1, 4, 1, 1, 4]) xz 65536 15859712
|
||||
fast math off xr_loaded_fragment format 555 blend Some([7, 1, 0, 1, 1, 0]) xz 65536 15925248
|
||||
fast math off xr_loaded_fragment format 555 blend Some([9, 1, 0, 9, 1, 0]) xz 65536 15990784
|
||||
fast math off xr_loaded_fragment format 555 blend Some([2, 0, 0, 2, 0, 0]) xz 65536 16056320
|
||||
fast math off xr_loaded_fragment format 555 blend Some([10, 1, 0, 1, 1, 0]) xz 65536 16121856
|
||||
fast math off xr_loaded_fragment format 555 blend Some([8, 9, 0, 8, 9, 0]) xz 65536 16187392
|
||||
fast math off xr_loaded_fragment format 555 blend Some([11, 12, 0, 13, 14, 0]) xz 65536 16252928
|
||||
fast math off xr_loaded_fragment format 555 blend Some([5, 4, 0, 5, 4, 0]) xz 65536 16318464
|
||||
fast math off xr_loaded_fragment format 555 blend Some([11, 12, 1, 1, 1, 0]) xz 65536 16384000
|
||||
fast math off xr_loaded_fragment format 555 blend Some([12, 11, 2, 1, 1, 0]) xz 65536 16449536
|
||||
Loaded 100 of 401 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user