Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/argument-encoder-state-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

820 lines
25 KiB
JSON

{
"format": 1,
"case": "argument-encoder-state-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": "1d72e3ea9d7af4f5d94df072994bef2684ac0f56fd1158afcb80c2491d786fe6"
}
}
},
{
"name": "writes",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "8ff402ed5b3fb76d98172ff8043db10f3bc6191f54ee67465c2e83228636064e"
}
}
},
{
"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": 32
}
}
},
{
"name": "alignment",
"observed": {
"value": {
"uint": 8
}
}
},
{
"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-setComputePipelineState",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/1-setComputePipelineStates",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/2-setRenderPipelineState",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/3-setRenderPipelineStates",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/4-setIndirectCommandBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/5-setIndirectCommandBuffers",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/6-setVisibleFunctionTable",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/7-setVisibleFunctionTables",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "changed-words",
"observed": {
"value": {
"bytes": "AQEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
},
"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": {
"stopped": {
"call": "encode_argument",
"message": "Argument Buffer Validation\nSetting a pipeline that does not have supportIndirectCommandBuffers = YES is invalid"
}
}
}
],
"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-state-descriptors",
"calls": 19,
"in_calls": 22600455,
"on_cpu": 731291,
"blocked": 21845125,
"elsewhere": 3667,
"spend": 22604580,
"spend_least": 22327041,
"spend_most": 25161835,
"per_call": [
{
"call": "argument_encoder_facts",
"least_calls": 1,
"most_calls": 1,
"wall": 1459,
"on_cpu": 1584,
"blocked": 0,
"wall_least": 1417,
"wall_most": 2000,
"wall_total": 1459,
"on_cpu_total": 1584,
"blocked_total": 0
},
{
"call": "argument_encoder_with_arguments",
"least_calls": 1,
"most_calls": 1,
"wall": 8000,
"on_cpu": 8125,
"blocked": 0,
"wall_least": 6834,
"wall_most": 11833,
"wall_total": 8000,
"on_cpu_total": 8125,
"blocked_total": 0
},
{
"call": "buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 1583,
"on_cpu": 1708,
"blocked": 0,
"wall_least": 1417,
"wall_most": 2000,
"wall_total": 6457,
"on_cpu_total": 6749,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 70375,
"on_cpu": 70583,
"blocked": 0,
"wall_least": 59708,
"wall_most": 80917,
"wall_total": 70375,
"on_cpu_total": 70583,
"blocked_total": 0
},
{
"call": "encode_argument",
"least_calls": 8,
"most_calls": 8,
"wall": 250,
"on_cpu": 416,
"blocked": 0,
"wall_least": 209,
"wall_most": 709,
"wall_total": 2581,
"on_cpu_total": 3583,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 22486416,
"on_cpu": 607000,
"blocked": 21845125,
"wall_least": 22193916,
"wall_most": 25018292,
"wall_total": 22486416,
"on_cpu_total": 607000,
"blocked_total": 21845125
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 167,
"on_cpu": 292,
"blocked": 0,
"wall_least": 166,
"wall_most": 250,
"wall_total": 167,
"on_cpu_total": 292,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 1,
"most_calls": 1,
"wall": 3417,
"on_cpu": 3542,
"blocked": 0,
"wall_least": 3042,
"wall_most": 5042,
"wall_total": 3417,
"on_cpu_total": 3542,
"blocked_total": 0
},
{
"call": "set_argument_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 167,
"on_cpu": 291,
"blocked": 0,
"wall_least": 125,
"wall_most": 250,
"wall_total": 167,
"on_cpu_total": 291,
"blocked_total": 0
},
{
"call": "texture_2d_in_role",
"least_calls": 1,
"most_calls": 1,
"wall": 31875,
"on_cpu": 32042,
"blocked": 0,
"wall_least": 24666,
"wall_most": 35959,
"wall_total": 31875,
"on_cpu_total": 32042,
"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-state-descriptors",
"calls": 19,
"in_calls": 192584,
"on_cpu": 198166,
"blocked": 0,
"elsewhere": 625,
"spend": 192793,
"spend_least": 170081,
"spend_most": 319707,
"per_call": [
{
"call": "argument_encoder_facts",
"least_calls": 1,
"most_calls": 1,
"wall": 167,
"on_cpu": 291,
"blocked": 0,
"wall_least": 125,
"wall_most": 250,
"wall_total": 167,
"on_cpu_total": 291,
"blocked_total": 0
},
{
"call": "argument_encoder_with_arguments",
"least_calls": 1,
"most_calls": 1,
"wall": 375,
"on_cpu": 500,
"blocked": 0,
"wall_least": 333,
"wall_most": 584,
"wall_total": 375,
"on_cpu_total": 500,
"blocked_total": 0
},
{
"call": "buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 584,
"on_cpu": 667,
"blocked": 0,
"wall_least": 542,
"wall_most": 750,
"wall_total": 2416,
"on_cpu_total": 2750,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 20791,
"on_cpu": 21000,
"blocked": 0,
"wall_least": 17500,
"wall_most": 39083,
"wall_total": 20791,
"on_cpu_total": 21000,
"blocked_total": 0
},
{
"call": "encode_argument",
"least_calls": 8,
"most_calls": 8,
"wall": 334,
"on_cpu": 458,
"blocked": 0,
"wall_least": 292,
"wall_most": 375,
"wall_total": 2791,
"on_cpu_total": 3669,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 144583,
"on_cpu": 148084,
"blocked": 0,
"wall_least": 127000,
"wall_most": 192458,
"wall_total": 144583,
"on_cpu_total": 148084,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 125,
"on_cpu": 250,
"blocked": 0,
"wall_least": 83,
"wall_most": 167,
"wall_total": 125,
"on_cpu_total": 250,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 1,
"most_calls": 1,
"wall": 1334,
"on_cpu": 1458,
"blocked": 0,
"wall_least": 1000,
"wall_most": 2083,
"wall_total": 1334,
"on_cpu_total": 1458,
"blocked_total": 0
},
{
"call": "set_argument_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 167,
"on_cpu": 292,
"blocked": 0,
"wall_least": 125,
"wall_most": 375,
"wall_total": 167,
"on_cpu_total": 292,
"blocked_total": 0
},
{
"call": "texture_2d_in_role",
"least_calls": 1,
"most_calls": 1,
"wall": 20500,
"on_cpu": 20625,
"blocked": 0,
"wall_least": 16541,
"wall_most": 45666,
"wall_total": 20500,
"on_cpu_total": 20625,
"blocked_total": 0
}
]
}
}
]
}