Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/argument-encoder-cross-nested.json
T
Anees Iqbal da929c8a96 Re-bless the cost records at d0f0419800
A whole-set cost --runs 8 --write on the M3 Max, then --alone over the cases it
changed: images' blocks at 64 MiB (device_memory_allocated of the cases that
read 68 MiB) and what else moved since 9b046a7cf8 (dv-m3d).
2026-11-11 01:51:58 -08:00

1111 lines
34 KiB
JSON

{
"format": 1,
"case": "argument-encoder-cross-nested",
"suite_version": 1,
"shaders": [
{
"fixture": "reflection/argument_buffers.ll",
"entry": "reflection_argument_buffers",
"source_sha256": "3a8505c3ba66afa163e2ddf8680916df1dd135176275322b3248f95b97d5706a"
},
{
"fixture": "reflection/argument_buffers.air.ll",
"entry": "reflection_argument_buffers",
"source_sha256": "a4b911b3b9eb3530c654b8aa8d5e1caf8ab57edeb14ac10109f96fc8fc02d9fa"
}
],
"answers": [
{
"key": {
"chip": "apple-m3-max",
"os_version": "27.0.1",
"os_build": "26A434",
"metal_level": "27.0.1"
},
"provenance": "metal_run",
"device": "Apple M3 Max",
"runs": 3,
"outcomes": [
{
"runs": 3,
"transcript": {
"root": {
"name": "case",
"observed": {
"value": "absent"
},
"children": [
{
"name": "inputs",
"observed": {
"value": "absent"
},
"children": [
{
"name": "air",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "3a8505c3ba66afa163e2ddf8680916df1dd135176275322b3248f95b97d5706a"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "a4b911b3b9eb3530c654b8aa8d5e1caf8ab57edeb14ac10109f96fc8fc02d9fa"
}
}
},
{
"name": "layouts",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "740fb7612b193ae13717a1bbb2762a80a159a0a77feeb713294da5b36d99f3ba"
}
}
},
{
"name": "constant",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "42aed6d934f4954763c1514a5d0f6d7bd85da1dcf1b99f4be7058fcc41fa2ab5"
}
}
}
]
},
{
"name": "texture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "sampler",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/encoder",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "encoded_length",
"observed": {
"value": {
"uint": 224
}
}
},
{
"name": "alignment",
"observed": {
"value": {
"uint": 16
}
}
},
{
"name": "label",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"lines": [
"conformance-argument-crossing"
]
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
}
]
},
{
"name": "outer/buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/setArgumentBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/write/0-setBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "outer/changed-words",
"observed": {
"value": {
"bytes": "AAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 256
}
},
"element": "u8",
"row_offset": 0,
"row_elements": 32,
"row_pitch": 32,
"rows": 1,
"image_pitch": 32,
"images": 1,
"gaps": "compared"
}
}
}
},
{
"name": "member/texture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/sampler",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/device-pointer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/array-of-textures",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/constant-pointer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/inline-constant",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/indirect-command-buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/write-texture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/depth-texture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/pointer-to-struct-of-constants",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/compute-pipeline-state",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/pointer-to-struct-of-resources",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": true
}
}
}
}
},
{
"name": "member/array-of-samplers",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/array-of-pointers",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/array-of-inline-constants",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/inline-struct-of-resources",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/array-of-inline-structs",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "member/past-the-layout",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"bool": false
}
}
}
}
},
{
"name": "nested-at-0/facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "encoded_length",
"observed": {
"value": {
"uint": 8
}
}
},
{
"name": "alignment",
"observed": {
"value": {
"uint": 8
}
}
},
{
"name": "label",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"lines": [
"conformance-argument-crossing"
]
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
}
]
},
{
"name": "nested-at-0/buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-0/setArgumentBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-0/write/0-setTexture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-0/read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-0/changed-words",
"observed": {
"value": {
"bytes": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 256
}
},
"element": "u8",
"row_offset": 0,
"row_elements": 32,
"row_pitch": 32,
"rows": 1,
"image_pitch": 32,
"images": 1,
"gaps": "compared"
}
}
}
},
{
"name": "nested-at-40/facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "encoded_length",
"observed": {
"value": {
"uint": 8
}
}
},
{
"name": "alignment",
"observed": {
"value": {
"uint": 8
}
}
},
{
"name": "label",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"lines": [
"conformance-argument-crossing"
]
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
}
]
},
{
"name": "nested-at-40/buffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-40/setArgumentBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-40/write/0-setTexture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-40/read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "nested-at-40/changed-words",
"observed": {
"value": {
"bytes": "AAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 256
}
},
"element": "u8",
"row_offset": 0,
"row_elements": 32,
"row_pitch": 32,
"rows": 1,
"image_pitch": 32,
"images": 1,
"gaps": "compared"
}
}
}
},
{
"name": "notices",
"observed": {
"value": "absent"
},
"children": [
{
"name": "set",
"observed": {
"value": {
"nothing": "announced_nothing"
}
}
},
{
"name": "counts",
"observed": {
"value": {
"fields": {}
}
}
}
]
}
]
}
}
}
],
"validated": "ran"
}
],
"costs": [
{
"venue": "Apple M3 Max",
"runs": 8,
"measured": "8 run(s) of the whole selection on Apple M3 Max, in the case set's own order, the largest each count reached",
"contrasted": "8 run(s) of each case on its own on Apple M3 Max, nothing before it on the device, the largest each count reached",
"bounds": {
"addressable_buffers_made": 2,
"blocks_ahead_hurried": 1,
"blocks_ahead_waited_for": 4,
"buffer_blocks_made_ahead": 2,
"device_memory_allocated": 276824064,
"host_copy_blocks_made_in_place": 1,
"host_copy_blocks_readied": 1,
"host_texel_copies": 1,
"image_blocks_made_ahead": 2,
"image_blocks_made_in_place": 1,
"images_started_on_the_host": 1,
"new_buffer_bytes_cleared": 1024,
"object_churn.buffers_parked": 4,
"object_churn.buffers_recycled": 4,
"object_churn.images_own_memory": 1,
"object_churn.textures_image": 1,
"object_churn.vk_image_bindings": 1,
"object_churn.vk_images_destroyed": 1,
"object_churn.vk_images_made": 1,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 4
},
"composed": {
"blocks_ahead_hurried": 0,
"blocks_ahead_waited_for": 3,
"buffer_blocks_made_ahead": 2,
"device_memory_allocated": 268435456,
"host_copy_blocks_made_in_place": 1,
"host_copy_blocks_readied": 0,
"image_blocks_made_ahead": 1,
"image_blocks_made_in_place": 1,
"plain_buffer_blocks_made": 2
},
"ceilings": {
"addressable_buffers_made": 2,
"pooled_memory_blocks_made": 4
}
}
],
"times": [
{
"leg": "metal",
"venue": "native Metal",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 3.18 and ours at 2.63; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 236,
"times": {
"case": "argument-encoder-cross-nested",
"calls": 38,
"in_calls": 22740626,
"on_cpu": 729748,
"blocked": 22021375,
"elsewhere": 3875,
"spend": 22744335,
"spend_least": 22351458,
"spend_most": 24675624,
"per_call": [
{
"call": "argument_encoder",
"least_calls": 1,
"most_calls": 1,
"wall": 67875,
"on_cpu": 68125,
"blocked": 0,
"wall_least": 57291,
"wall_most": 323792,
"wall_total": 67875,
"on_cpu_total": 68125,
"blocked_total": 0
},
{
"call": "argument_encoder_facts",
"least_calls": 3,
"most_calls": 3,
"wall": 584,
"on_cpu": 708,
"blocked": 0,
"wall_least": 541,
"wall_most": 666,
"wall_total": 2834,
"on_cpu_total": 3208,
"blocked_total": 0
},
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 1916,
"on_cpu": 2041,
"blocked": 0,
"wall_least": 1791,
"wall_most": 2417,
"wall_total": 26709,
"on_cpu_total": 27208,
"blocked_total": 0
},
{
"call": "encode_argument",
"least_calls": 3,
"most_calls": 3,
"wall": 625,
"on_cpu": 750,
"blocked": 0,
"wall_least": 458,
"wall_most": 917,
"wall_total": 1375,
"on_cpu_total": 1833,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 22637083,
"on_cpu": 615708,
"blocked": 22021375,
"wall_least": 22092542,
"wall_most": 24571291,
"wall_total": 22637083,
"on_cpu_total": 615708,
"blocked_total": 22021375
},
{
"call": "nested_argument_encoder",
"least_calls": 18,
"most_calls": 18,
"wall": 41,
"on_cpu": 125,
"blocked": 0,
"wall_least": 41,
"wall_most": 42,
"wall_total": 958,
"on_cpu_total": 3042,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 83,
"on_cpu": 167,
"blocked": 0,
"wall_least": 42,
"wall_most": 84,
"wall_total": 291,
"on_cpu_total": 624,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 1,
"most_calls": 1,
"wall": 834,
"on_cpu": 1000,
"blocked": 0,
"wall_least": 750,
"wall_most": 1042,
"wall_total": 834,
"on_cpu_total": 1000,
"blocked_total": 0
},
{
"call": "set_argument_buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 83,
"on_cpu": 167,
"blocked": 0,
"wall_least": 42,
"wall_most": 84,
"wall_total": 376,
"on_cpu_total": 749,
"blocked_total": 0
},
{
"call": "texture_2d_in_role",
"least_calls": 1,
"most_calls": 1,
"wall": 4250,
"on_cpu": 4375,
"blocked": 0,
"wall_least": 3916,
"wall_most": 4458,
"wall_total": 4250,
"on_cpu_total": 4375,
"blocked_total": 0
}
]
}
},
{
"leg": "ours",
"venue": "Apple M3 Max",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 3.18 and ours at 2.63; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 233,
"times": {
"case": "argument-encoder-cross-nested",
"calls": 38,
"in_calls": 386250,
"on_cpu": 391164,
"blocked": 0,
"elsewhere": 375,
"spend": 386625,
"spend_least": 362298,
"spend_most": 488835,
"per_call": [
{
"call": "argument_encoder",
"least_calls": 1,
"most_calls": 1,
"wall": 162583,
"on_cpu": 162833,
"blocked": 0,
"wall_least": 156291,
"wall_most": 176250,
"wall_total": 162583,
"on_cpu_total": 162833,
"blocked_total": 0
},
{
"call": "argument_encoder_facts",
"least_calls": 3,
"most_calls": 3,
"wall": 83,
"on_cpu": 167,
"blocked": 0,
"wall_least": 42,
"wall_most": 84,
"wall_total": 291,
"on_cpu_total": 583,
"blocked_total": 0
},
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 541,
"on_cpu": 625,
"blocked": 0,
"wall_least": 417,
"wall_most": 708,
"wall_total": 3041,
"on_cpu_total": 3542,
"blocked_total": 0
},
{
"call": "encode_argument",
"least_calls": 3,
"most_calls": 3,
"wall": 292,
"on_cpu": 417,
"blocked": 0,
"wall_least": 166,
"wall_most": 500,
"wall_total": 1000,
"on_cpu_total": 1417,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 208292,
"on_cpu": 208708,
"blocked": 0,
"wall_least": 192000,
"wall_most": 251792,
"wall_total": 208292,
"on_cpu_total": 208708,
"blocked_total": 0
},
{
"call": "nested_argument_encoder",
"least_calls": 18,
"most_calls": 18,
"wall": 42,
"on_cpu": 167,
"blocked": 0,
"wall_least": 42,
"wall_most": 83,
"wall_total": 1626,
"on_cpu_total": 3670,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 42,
"on_cpu": 167,
"blocked": 0,
"wall_least": 41,
"wall_most": 84,
"wall_total": 167,
"on_cpu_total": 500,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 1,
"most_calls": 1,
"wall": 500,
"on_cpu": 625,
"blocked": 0,
"wall_least": 416,
"wall_most": 541,
"wall_total": 500,
"on_cpu_total": 625,
"blocked_total": 0
},
{
"call": "set_argument_buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 42,
"on_cpu": 167,
"blocked": 0,
"wall_least": 0,
"wall_most": 42,
"wall_total": 208,
"on_cpu_total": 501,
"blocked_total": 0
},
{
"call": "texture_2d_in_role",
"least_calls": 1,
"most_calls": 1,
"wall": 8042,
"on_cpu": 8167,
"blocked": 0,
"wall_least": 7292,
"wall_most": 8625,
"wall_total": 8042,
"on_cpu_total": 8167,
"blocked_total": 0
}
]
}
}
]
}