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

749 lines
23 KiB
JSON

{
"format": 1,
"case": "argument-encoder-array-element",
"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": "25ef025302969e587a0de30c4297721141f7f1e822c78a77170349fa516217bf"
}
}
},
{
"name": "writes",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "977ab2205efcd65148216e287019a92ffa1141e36543250774ba9e34fad45cbf"
}
}
},
{
"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": 16
}
}
},
{
"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-setTexture",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "write/1-setSamplerState",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "changed-words",
"observed": {
"value": {
"bytes": "AAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
},
"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-array-element",
"calls": 13,
"in_calls": 23161211,
"on_cpu": 778834,
"blocked": 22410709,
"elsewhere": 1208,
"spend": 23161711,
"spend_least": 22537541,
"spend_most": 25509375,
"per_call": [
{
"call": "argument_encoder",
"least_calls": 1,
"most_calls": 1,
"wall": 25375,
"on_cpu": 25542,
"blocked": 0,
"wall_least": 23375,
"wall_most": 33000,
"wall_total": 25375,
"on_cpu_total": 25542,
"blocked_total": 0
},
{
"call": "argument_encoder_facts",
"least_calls": 1,
"most_calls": 1,
"wall": 1583,
"on_cpu": 1750,
"blocked": 0,
"wall_least": 1416,
"wall_most": 1834,
"wall_total": 1583,
"on_cpu_total": 1750,
"blocked_total": 0
},
{
"call": "buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 1708,
"on_cpu": 1834,
"blocked": 0,
"wall_least": 1500,
"wall_most": 3667,
"wall_total": 6958,
"on_cpu_total": 7333,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 72041,
"on_cpu": 72292,
"blocked": 0,
"wall_least": 65291,
"wall_most": 106292,
"wall_total": 72041,
"on_cpu_total": 72292,
"blocked_total": 0
},
{
"call": "encode_argument",
"least_calls": 2,
"most_calls": 2,
"wall": 292,
"on_cpu": 458,
"blocked": 0,
"wall_least": 208,
"wall_most": 500,
"wall_total": 1542,
"on_cpu_total": 1833,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 23026542,
"on_cpu": 631625,
"blocked": 22410709,
"wall_least": 22404250,
"wall_most": 25300666,
"wall_total": 23026542,
"on_cpu_total": 631625,
"blocked_total": 22410709
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 250,
"on_cpu": 333,
"blocked": 0,
"wall_least": 167,
"wall_most": 292,
"wall_total": 250,
"on_cpu_total": 333,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 1,
"most_calls": 1,
"wall": 3792,
"on_cpu": 3959,
"blocked": 0,
"wall_least": 3625,
"wall_most": 8833,
"wall_total": 3792,
"on_cpu_total": 3959,
"blocked_total": 0
},
{
"call": "set_argument_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 292,
"on_cpu": 417,
"blocked": 0,
"wall_least": 208,
"wall_most": 1041,
"wall_total": 292,
"on_cpu_total": 417,
"blocked_total": 0
},
{
"call": "texture_2d_in_role",
"least_calls": 1,
"most_calls": 1,
"wall": 30459,
"on_cpu": 30625,
"blocked": 0,
"wall_least": 28375,
"wall_most": 40959,
"wall_total": 30459,
"on_cpu_total": 30625,
"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-array-element",
"calls": 13,
"in_calls": 360795,
"on_cpu": 365960,
"blocked": 0,
"elsewhere": 583,
"spend": 361378,
"spend_least": 350331,
"spend_most": 403958,
"per_call": [
{
"call": "argument_encoder",
"least_calls": 1,
"most_calls": 1,
"wall": 130834,
"on_cpu": 131084,
"blocked": 0,
"wall_least": 128500,
"wall_most": 136750,
"wall_total": 130834,
"on_cpu_total": 131084,
"blocked_total": 0
},
{
"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": "buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 708,
"on_cpu": 792,
"blocked": 0,
"wall_least": 625,
"wall_most": 917,
"wall_total": 2791,
"on_cpu_total": 3083,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 27542,
"on_cpu": 27833,
"blocked": 0,
"wall_least": 25709,
"wall_most": 36583,
"wall_total": 27542,
"on_cpu_total": 27833,
"blocked_total": 0
},
{
"call": "encode_argument",
"least_calls": 2,
"most_calls": 2,
"wall": 416,
"on_cpu": 500,
"blocked": 0,
"wall_least": 333,
"wall_most": 500,
"wall_total": 1291,
"on_cpu_total": 1541,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 167500,
"on_cpu": 169333,
"blocked": 0,
"wall_least": 162458,
"wall_most": 181917,
"wall_total": 167500,
"on_cpu_total": 169333,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 167,
"on_cpu": 250,
"blocked": 0,
"wall_least": 125,
"wall_most": 209,
"wall_total": 167,
"on_cpu_total": 250,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 1,
"most_calls": 1,
"wall": 1875,
"on_cpu": 1959,
"blocked": 0,
"wall_least": 1709,
"wall_most": 2625,
"wall_total": 1875,
"on_cpu_total": 1959,
"blocked_total": 0
},
{
"call": "set_argument_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 292,
"on_cpu": 375,
"blocked": 0,
"wall_least": 167,
"wall_most": 417,
"wall_total": 292,
"on_cpu_total": 375,
"blocked_total": 0
},
{
"call": "texture_2d_in_role",
"least_calls": 1,
"most_calls": 1,
"wall": 28583,
"on_cpu": 28792,
"blocked": 0,
"wall_least": 24375,
"wall_most": 39958,
"wall_total": 28583,
"on_cpu_total": 28792,
"blocked_total": 0
}
]
}
}
]
}