Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/argument-encoder-mixed-descriptors.json
T
Anees Iqbal ea02af47a4 Re-bless the cost records at d562bd4148
1135 recording(s) whose bounds moved. Cause: RT 1987 (206fbfba1c) makes a block ahead for a pool near its next block, and RT 1989 (d562bd4148) keeps a block's worth of bytes ahead per pool and has calls wait for a making instead of making a block in place, so made-ahead, made-in-place and waited-for block counts move. Contrast: pin 32's replay at 39b45dd232 (m3-max-12459) went over on blit-whole-texture-copy alone (buffer_blocks_made_ahead 1 where the record said 0); every value row matched the known-gaps ledger. The full list of moved bounds is in this commit's diff.
Measured on the M3 (s37-pl.sh rebless: cost --runs 8 --write over the whole
set, then cost --runs 8 --alone --write over the changed cases).

(cherry picked from commit ac01ee50d788bbd880e7f9d1a439bbf12c4e6bb7)
2026-11-09 15:47:53 -08:00

867 lines
26 KiB
JSON

{
"format": 1,
"case": "argument-encoder-mixed-descriptors",
"suite_version": 1,
"shaders": [
{
"fixture": "px_samplers.ll",
"entry": "px_sample_argument",
"source_sha256": "8c4a0024c9ba10e25d2487017101ff9a6437a48c58602537d0a41ee693e32f20"
},
{
"fixture": "px_samplers.air.ll",
"entry": "px_sample_argument",
"source_sha256": "5cedd165bee51449aaab252183a73661902625d2ddf8aa9fa5582f605ea564b1"
}
],
"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": "8c4a0024c9ba10e25d2487017101ff9a6437a48c58602537d0a41ee693e32f20"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "5cedd165bee51449aaab252183a73661902625d2ddf8aa9fa5582f605ea564b1"
}
}
},
{
"name": "texture",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "dcd170e546734249218eb80f0abe0ea42fcb706c78b8729a612dd01f9c83bd9c"
}
}
},
{
"name": "buffer:coordinates",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "81ee2cc64601d5125d54053878ff828ce54f2b5fbd00bedec9095777757b1c28"
}
}
},
{
"name": "sampler",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "1fe49d153be76f3ad0f109b0e495a7b49d0623845e19205b2a23566bb876a677"
}
}
},
{
"name": "buffer:output",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "1080e279b51b8594a78556e2fdb4dfe9ca82ac2fbab5007de2bac4213c2e1f92"
}
}
},
{
"name": "buffer:arguments",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "1080e279b51b8594a78556e2fdb4dfe9ca82ac2fbab5007de2bac4213c2e1f92"
}
}
},
{
"name": "layout",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "ec206c3f7281f28f3d82ea5e30e8ea14f34c3b2f26a6e8579f731c197221cf0b"
}
}
},
{
"name": "writes",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "734e82a629db9ab1a6ac75ba018dd4cea97c5ee53ff63f819639fc4e63998b91"
}
}
},
{
"name": "dispatch",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "48443c868f27fd5d4e1749506108b7419f6c508bd93fa3cb4f99b5745241e476"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "pipeline",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "texture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "sampler",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer/coordinates",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer/output",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer/arguments",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "encoder",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "encoded_length",
"observed": {
"value": {
"uint": 80
}
}
},
{
"name": "alignment",
"observed": {
"value": {
"uint": 16
}
}
},
{
"name": "label",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"lines": [
"conformance-argument-encoder"
]
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
}
]
},
{
"name": "setArgumentBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/0-setTexture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/1-setSamplerState",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/2-setBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/3-setBuffers",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/4-setSamplerStates",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/5-constantDataAtIndex",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/6-constantDataAtIndex",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/7-setTextures",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "constant-offset/3",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"uint": 24
}
}
}
}
},
{
"name": "constant-offset/4",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"uint": 32
}
}
}
}
},
{
"name": "read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "changed-words",
"observed": {
"value": {
"bytes": "AQEBAQEBAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
},
"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": 2,
"creation_pipelines_made": 1,
"functions_shared": 1,
"functions_translated": 1,
"host_copy_blocks_readied": 1,
"host_texel_copies": 1,
"image_blocks_made_ahead": 2,
"images_started_on_the_host": 1,
"new_buffer_bytes_cleared": 640,
"object_churn.buffers_parked": 3,
"object_churn.buffers_recycled": 3,
"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,
"pipeline_layouts_made": 1,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 4,
"shader_modules_made": 1,
"stage_entries_specialized": 1,
"variant_pipelines_made": 1,
"variants_taken_back": 1
},
"composed": {
"addressable_buffers_made": 1,
"blocks_ahead_hurried": 1,
"blocks_ahead_waited_for": 2,
"creation_pipelines_made": 0,
"functions_translated": 1,
"host_copy_blocks_readied": 1,
"image_blocks_made_ahead": 2,
"plain_buffer_blocks_made": 2,
"stage_entries_specialized": 1,
"variant_pipelines_made": 0
},
"ceilings": {
"addressable_buffers_made": 2,
"creation_pipelines_made": 1,
"pipeline_layouts_made": 1,
"pooled_memory_blocks_made": 4,
"shader_modules_made": 1,
"variant_pipelines_made": 1
},
"per_state": {
"pipelines": 0,
"states": 1
}
}
],
"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-mixed-descriptors",
"calls": 21,
"in_calls": 22645168,
"on_cpu": 745998,
"blocked": 21915084,
"elsewhere": 3833,
"spend": 22649001,
"spend_least": 22326290,
"spend_most": 26691665,
"per_call": [
{
"call": "argument_encoder_facts",
"least_calls": 1,
"most_calls": 1,
"wall": 1583,
"on_cpu": 1750,
"blocked": 0,
"wall_least": 1333,
"wall_most": 2833,
"wall_total": 1583,
"on_cpu_total": 1750,
"blocked_total": 0
},
{
"call": "argument_encoder_with_arguments",
"least_calls": 1,
"most_calls": 1,
"wall": 12208,
"on_cpu": 12500,
"blocked": 0,
"wall_least": 11125,
"wall_most": 31917,
"wall_total": 12208,
"on_cpu_total": 12500,
"blocked_total": 0
},
{
"call": "buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 1625,
"on_cpu": 1750,
"blocked": 0,
"wall_least": 1500,
"wall_most": 3417,
"wall_total": 6333,
"on_cpu_total": 6668,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 63625,
"on_cpu": 63875,
"blocked": 0,
"wall_least": 55875,
"wall_most": 109958,
"wall_total": 63625,
"on_cpu_total": 63875,
"blocked_total": 0
},
{
"call": "constant_data_offset",
"least_calls": 2,
"most_calls": 2,
"wall": 41,
"on_cpu": 125,
"blocked": 0,
"wall_least": 0,
"wall_most": 83,
"wall_total": 250,
"on_cpu_total": 458,
"blocked_total": 0
},
{
"call": "encode_argument",
"least_calls": 8,
"most_calls": 8,
"wall": 250,
"on_cpu": 375,
"blocked": 0,
"wall_least": 208,
"wall_most": 333,
"wall_total": 2625,
"on_cpu_total": 3501,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 22519459,
"on_cpu": 612708,
"blocked": 21915084,
"wall_least": 22210375,
"wall_most": 26498667,
"wall_total": 22519459,
"on_cpu_total": 612708,
"blocked_total": 21915084
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 208,
"on_cpu": 333,
"blocked": 0,
"wall_least": 125,
"wall_most": 250,
"wall_total": 208,
"on_cpu_total": 333,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 1,
"most_calls": 1,
"wall": 3416,
"on_cpu": 3584,
"blocked": 0,
"wall_least": 3166,
"wall_most": 4958,
"wall_total": 3416,
"on_cpu_total": 3584,
"blocked_total": 0
},
{
"call": "set_argument_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 167,
"on_cpu": 333,
"blocked": 0,
"wall_least": 125,
"wall_most": 417,
"wall_total": 167,
"on_cpu_total": 333,
"blocked_total": 0
},
{
"call": "texture_2d_in_role",
"least_calls": 1,
"most_calls": 1,
"wall": 28208,
"on_cpu": 28375,
"blocked": 0,
"wall_least": 23792,
"wall_most": 46459,
"wall_total": 28208,
"on_cpu_total": 28375,
"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-mixed-descriptors",
"calls": 21,
"in_calls": 244122,
"on_cpu": 247293,
"blocked": 0,
"elsewhere": 1333,
"spend": 245747,
"spend_least": 185083,
"spend_most": 302666,
"per_call": [
{
"call": "argument_encoder_facts",
"least_calls": 1,
"most_calls": 1,
"wall": 208,
"on_cpu": 292,
"blocked": 0,
"wall_least": 125,
"wall_most": 250,
"wall_total": 208,
"on_cpu_total": 292,
"blocked_total": 0
},
{
"call": "argument_encoder_with_arguments",
"least_calls": 1,
"most_calls": 1,
"wall": 834,
"on_cpu": 958,
"blocked": 0,
"wall_least": 792,
"wall_most": 958,
"wall_total": 834,
"on_cpu_total": 958,
"blocked_total": 0
},
{
"call": "buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 708,
"on_cpu": 833,
"blocked": 0,
"wall_least": 542,
"wall_most": 875,
"wall_total": 7458,
"on_cpu_total": 7834,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 27709,
"on_cpu": 27958,
"blocked": 0,
"wall_least": 21041,
"wall_most": 41292,
"wall_total": 27709,
"on_cpu_total": 27958,
"blocked_total": 0
},
{
"call": "constant_data_offset",
"least_calls": 2,
"most_calls": 2,
"wall": 42,
"on_cpu": 125,
"blocked": 0,
"wall_least": 0,
"wall_most": 42,
"wall_total": 292,
"on_cpu_total": 500,
"blocked_total": 0
},
{
"call": "encode_argument",
"least_calls": 8,
"most_calls": 8,
"wall": 375,
"on_cpu": 459,
"blocked": 0,
"wall_least": 250,
"wall_most": 541,
"wall_total": 3251,
"on_cpu_total": 4169,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 166166,
"on_cpu": 166666,
"blocked": 0,
"wall_least": 132125,
"wall_most": 194875,
"wall_total": 166166,
"on_cpu_total": 166666,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 166,
"on_cpu": 291,
"blocked": 0,
"wall_least": 125,
"wall_most": 167,
"wall_total": 166,
"on_cpu_total": 291,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 1,
"most_calls": 1,
"wall": 1708,
"on_cpu": 1792,
"blocked": 0,
"wall_least": 1292,
"wall_most": 2333,
"wall_total": 1708,
"on_cpu_total": 1792,
"blocked_total": 0
},
{
"call": "set_argument_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 167,
"on_cpu": 333,
"blocked": 0,
"wall_least": 166,
"wall_most": 292,
"wall_total": 167,
"on_cpu_total": 333,
"blocked_total": 0
},
{
"call": "texture_2d_in_role",
"least_calls": 1,
"most_calls": 1,
"wall": 31833,
"on_cpu": 32083,
"blocked": 0,
"wall_least": 19417,
"wall_most": 51917,
"wall_total": 31833,
"on_cpu_total": 32083,
"blocked_total": 0
}
]
}
}
]
}