Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/sampler-reduction-modes.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

924 lines
30 KiB
JSON

{
"format": 1,
"case": "sampler-reduction-modes",
"suite_version": 1,
"shaders": [
{
"fixture": "msf_runtime_samplers.ll",
"entry": "msf_slot2d_linear_edge",
"source_sha256": "fa455706aa522e16a8b72fb51387d32e70d5e0471b8db8e8465bc002a044ebbf"
},
{
"fixture": "msf_runtime_samplers.air.ll",
"entry": "msf_slot2d_linear_edge",
"source_sha256": "3943694c31235c3e0841c22e15fb2ecb8fe55eae0f5edb81c04efa7ce27efb4a"
}
],
"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": "fa455706aa522e16a8b72fb51387d32e70d5e0471b8db8e8465bc002a044ebbf"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "3943694c31235c3e0841c22e15fb2ecb8fe55eae0f5edb81c04efa7ce27efb4a"
}
}
},
{
"name": "entry",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "2f78646512c0669e407907820fac20d642f217958111a404f3a66424f9ac00d6"
}
}
},
{
"name": "buffer:coords",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "6a7182e02ae54b1296e00b49272bc54514978ee5fa61a86c18e7af5b4dfa8793"
}
}
},
{
"name": "buffer:out",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "80125c62d518fac6f8b487e1f784c1f12a6acc5d607d554f2e3cccf5342dd29a"
}
}
},
{
"name": "texture:level-0",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "994294717e9222764d03686b675546d724767d179b55b0a17aa99e024ac5b725"
}
}
},
{
"name": "texture:level-1",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "e48536d2c030c11545bc2d81d3ba816b1bfe0918301b639a74e600e6b65c1d41"
}
}
},
{
"name": "texture:level-2",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "f93e2aa7e20eb065bfeb9e780244f35e25c9764b907f1e5dc9e9fb14fd05e860"
}
}
},
{
"name": "sampler:weighted-average",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "c7af40fff57e04ab850c5f1f77e7233bfc1d5038e05b4178c5c31ebe61f0000c"
}
}
},
{
"name": "sampler:minimum",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "232b43524cf5b9d3e6dde9913dd32d97b6564a537ec00c0cec0a88cbfcf7b639"
}
}
},
{
"name": "sampler:maximum",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "74499794d18b695d9be8ef05d209f46c5a87c31d6d802d2fc98f205e934ebce3"
}
}
}
]
},
{
"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": "buffer/coords",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "weighted-average/sampler",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "weighted-average/buffer/out",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "weighted-average/dispatch",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "weighted-average/status",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"variant": {
"name": "Completed",
"payload": "absent"
}
}
}
}
}
},
{
"name": "weighted-average/read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "weighted-average",
"observed": {
"value": "absent"
},
"children": [
{
"name": "sampled",
"observed": {
"value": {
"bytes": "AABgQAAAAAAAAAAAAACAPwAAYEAAAAAAAAAAAAAAgD8AAGBAAAAAAAAAAAAAAIA/AABgQAAAAAAAAAAAAACAPwAAYEAAAAAAAAAAAAAAgD8AAGBAAAAAAAAAAAAAAIA/AABgQAAAAAAAAAAAAACAPwAAYEAAAAAAAAAAAAAAgD8="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 128
}
},
"element": "f32",
"row_offset": 0,
"row_elements": 8,
"row_pitch": 32,
"rows": 4,
"image_pitch": 128,
"images": 1,
"gaps": "ignored"
}
}
}
}
]
},
{
"name": "minimum/sampler",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "minimum/buffer/out",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "minimum/dispatch",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "minimum/status",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"variant": {
"name": "Completed",
"payload": "absent"
}
}
}
}
}
},
{
"name": "minimum/read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "minimum",
"observed": {
"value": "absent"
},
"children": [
{
"name": "sampled",
"observed": {
"value": {
"bytes": "AABgQAAAAAAAAAAAAACAPwAAYEAAAAAAAAAAAAAAgD8AAGBAAAAAAAAAAAAAAIA/AABgQAAAAAAAAAAAAACAPwAAYEAAAAAAAAAAAAAAgD8AAGBAAAAAAAAAAAAAAIA/AABgQAAAAAAAAAAAAACAPwAAYEAAAAAAAAAAAAAAgD8="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 128
}
},
"element": "f32",
"row_offset": 0,
"row_elements": 8,
"row_pitch": 32,
"rows": 4,
"image_pitch": 128,
"images": 1,
"gaps": "ignored"
}
}
}
}
]
},
{
"name": "maximum/sampler",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "maximum/buffer/out",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "maximum/dispatch",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "maximum/status",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"variant": {
"name": "Completed",
"payload": "absent"
}
}
}
}
}
},
{
"name": "maximum/read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "maximum",
"observed": {
"value": "absent"
},
"children": [
{
"name": "sampled",
"observed": {
"value": {
"bytes": "AABgQAAAAAAAAAAAAACAPwAAYEAAAAAAAAAAAAAAgD8AAGBAAAAAAAAAAAAAAIA/AABgQAAAAAAAAAAAAACAPwAAYEAAAAAAAAAAAAAAgD8AAGBAAAAAAAAAAAAAAIA/AABgQAAAAAAAAAAAAACAPwAAYEAAAAAAAAAAAAAAgD8="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 128
}
},
"element": "f32",
"row_offset": 0,
"row_elements": 8,
"row_pitch": 32,
"rows": 4,
"image_pitch": 128,
"images": 1,
"gaps": "ignored"
}
}
}
}
]
},
{
"name": "notices",
"observed": {
"value": "absent"
},
"children": [
{
"name": "set",
"observed": {
"value": {
"nothing": "announced_nothing"
}
}
},
{
"name": "counts",
"observed": {
"value": {
"fields": {}
}
}
}
]
}
]
}
}
}
],
"validated": {
"stopped": {
"call": "sampler",
"message": "Sampler Descriptor Validation\nMTLSamplerDescriptor: Use of minimum or maximum reductionMode requires device support"
}
}
}
],
"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,
"arena_pools_made": 1,
"argument_objects_retained": 12,
"argument_tables_retained": 3,
"bare_starts": 3,
"batches_submitted_by_waiters": 3,
"batches_with_none_pending": 3,
"blocks_ahead_hurried": 1,
"blocks_ahead_waited_for": 4,
"bound_notices_made": 1,
"buffer_blocks_made_ahead": 2,
"buffer_blocks_made_in_place": 2,
"command_buffers_begun": 7,
"command_buffers_begun_batch_barriers": 1,
"command_buffers_begun_batch_work": 1,
"command_buffers_begun_continuations": 1,
"command_buffers_begun_encoders": 3,
"command_buffers_begun_segments": 1,
"command_buffers_deferred": 3,
"command_buffers_submitted": 7,
"commands_recorded.begin_command_buffer": 3,
"commands_recorded.cmd_bind_descriptor_sets": 3,
"commands_recorded.cmd_bind_pipeline": 3,
"commands_recorded.cmd_clear_color_image": 1,
"commands_recorded.cmd_dispatch": 3,
"commands_recorded.cmd_pipeline_barrier": 5,
"commands_recorded.cmd_push_constants": 3,
"commands_recorded.end_command_buffer": 7,
"commits_handed_off": 3,
"commits_taken_in": 3,
"completed_waits": 6,
"completed_where_seen": 3,
"completion_arms": 3,
"completion_arms_after_a_wake": 3,
"completion_waiter_parks": 3,
"creation_pipelines_made": 0,
"device_memory_allocated": 276824192,
"dispatch_pipelines_pooled": 1,
"dispatch_shapes_made": 3,
"dispatch_used_resources_listed": 1,
"encoder_command_buffers_begun": 5,
"fence_waits": 3,
"finales_folded": 3,
"functions_shared": 1,
"functions_translated": 1,
"gate_waits": 3,
"gate_waits_slept": 3,
"heap_tables_worked_out": 1,
"host_copy_blocks_made_in_place": 1,
"host_copy_blocks_readied": 1,
"host_steps_recorded": 1,
"host_texel_copies": 3,
"image_blocks_made_ahead": 2,
"image_blocks_made_in_place": 2,
"images_started_on_the_host": 1,
"new_buffer_bytes_cleared": 416,
"object_churn.buffers_parked": 4,
"object_churn.buffers_recycled": 1,
"object_churn.images_own_memory": 1,
"object_churn.textures_image": 1,
"object_churn.vk_buffer_bindings": 3,
"object_churn.vk_buffers_made": 3,
"object_churn.vk_image_bindings": 1,
"object_churn.vk_image_views_made": 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,
"queue_submissions": 3,
"queues_sharing_a_vk_queue": 1,
"resident_textures_looked_at": 3,
"sampler_sets_made": 1,
"scheduled_where_submitted": 3,
"scheduler_passes": 2,
"scheduler_passes_by_waiters": 3,
"scheduler_sleeps": 3,
"scheduler_wakes_commit": 3,
"shader_modules_made": 1,
"slot_returns": 3,
"spare_command_pools_taken": 3,
"stage_entries_specialized": 1,
"submit_infos": 4,
"trail_waits": 3,
"variant_pipelines_made": 1,
"variants_taken_back": 1,
"wakes_completion_waiters": 3,
"wakes_spared": 21
},
"moving": {
"gate_waits_slept": 1
},
"composed": {
"blocks_ahead_hurried": 1,
"blocks_ahead_waited_for": 4,
"buffer_blocks_made_ahead": 2,
"buffer_blocks_made_in_place": 0,
"command_buffers_begun": 7,
"command_buffers_begun_batch_barriers": 1,
"command_buffers_begun_batch_work": 1,
"command_buffers_begun_continuations": 1,
"command_buffers_begun_segments": 1,
"command_buffers_deferred": 0,
"command_buffers_submitted": 7,
"commands_recorded.cmd_bind_descriptor_sets": 0,
"commands_recorded.cmd_bind_pipeline": 0,
"commands_recorded.cmd_clear_color_image": 0,
"commands_recorded.cmd_dispatch": 0,
"commands_recorded.cmd_pipeline_barrier": 0,
"commands_recorded.cmd_push_constants": 0,
"commands_recorded.end_command_buffer": 0,
"creation_pipelines_made": 0,
"device_memory_allocated": 268435584,
"dispatch_pipelines_pooled": 1,
"dispatch_used_resources_listed": 1,
"encoder_command_buffers_begun": 5,
"functions_translated": 1,
"host_copy_blocks_made_in_place": 0,
"host_copy_blocks_readied": 1,
"host_steps_recorded": 1,
"image_blocks_made_ahead": 2,
"image_blocks_made_in_place": 0,
"plain_buffer_blocks_made": 2,
"queues_sharing_a_vk_queue": 0,
"sampler_sets_made": 1,
"stage_entries_specialized": 1,
"submit_infos": 4,
"variant_pipelines_made": 1
},
"ceilings": {
"addressable_buffers_made": 2,
"arena_pools_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": "sampler-reduction-modes",
"calls": 19,
"in_calls": 32014502,
"on_cpu": 980041,
"blocked": 31097584,
"elsewhere": 3309042,
"spend": 35245459,
"spend_least": 33270417,
"spend_most": 47057794,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 3250,
"on_cpu": 3459,
"blocked": 0,
"wall_least": 2583,
"wall_most": 7667,
"wall_total": 24875,
"on_cpu_total": 25792,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 79167,
"on_cpu": 79375,
"blocked": 0,
"wall_least": 64791,
"wall_most": 114250,
"wall_total": 79167,
"on_cpu_total": 79375,
"blocked_total": 0
},
{
"call": "dispatch_threads",
"least_calls": 3,
"most_calls": 3,
"wall": 12875,
"on_cpu": 13042,
"blocked": 0,
"wall_least": 10250,
"wall_most": 27750,
"wall_total": 126917,
"on_cpu_total": 127542,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 27080000,
"on_cpu": 660041,
"blocked": 26437209,
"wall_least": 26145542,
"wall_most": 37917583,
"wall_total": 27080000,
"on_cpu_total": 660041,
"blocked_total": 26437209
},
{
"call": "read_buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 292,
"on_cpu": 459,
"blocked": 0,
"wall_least": 125,
"wall_most": 792,
"wall_total": 1541,
"on_cpu_total": 2250,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 3,
"most_calls": 3,
"wall": 3292,
"on_cpu": 3458,
"blocked": 0,
"wall_least": 2667,
"wall_most": 5083,
"wall_total": 12708,
"on_cpu_total": 13418,
"blocked_total": 0
},
{
"call": "texture",
"least_calls": 1,
"most_calls": 1,
"wall": 31958,
"on_cpu": 32125,
"blocked": 0,
"wall_least": 24250,
"wall_most": 46625,
"wall_total": 31958,
"on_cpu_total": 32125,
"blocked_total": 0
},
{
"call": "wait",
"least_calls": 3,
"most_calls": 3,
"wall": 570334,
"on_cpu": 4208,
"blocked": 567251,
"wall_least": 210458,
"wall_most": 1594875,
"wall_total": 4520917,
"on_cpu_total": 19542,
"blocked_total": 4499376
}
]
}
},
{
"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": "sampler-reduction-modes",
"calls": 19,
"in_calls": 2054832,
"on_cpu": 610250,
"blocked": 1394457,
"elsewhere": 393292,
"spend": 2463999,
"spend_least": 2165625,
"spend_most": 3527167,
"per_call": [
{
"call": "buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 1375,
"on_cpu": 1541,
"blocked": 0,
"wall_least": 1125,
"wall_most": 1833,
"wall_total": 6500,
"on_cpu_total": 7125,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 40875,
"on_cpu": 41125,
"blocked": 0,
"wall_least": 34500,
"wall_most": 50500,
"wall_total": 40875,
"on_cpu_total": 41125,
"blocked_total": 0
},
{
"call": "dispatch_threads",
"least_calls": 3,
"most_calls": 3,
"wall": 23166,
"on_cpu": 23333,
"blocked": 0,
"wall_least": 16625,
"wall_most": 29875,
"wall_total": 78625,
"on_cpu_total": 79084,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 427000,
"on_cpu": 427292,
"blocked": 0,
"wall_least": 411917,
"wall_most": 476083,
"wall_total": 427000,
"on_cpu_total": 427292,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 3,
"most_calls": 3,
"wall": 292,
"on_cpu": 375,
"blocked": 0,
"wall_least": 250,
"wall_most": 625,
"wall_total": 1125,
"on_cpu_total": 1792,
"blocked_total": 0
},
{
"call": "sampler",
"least_calls": 3,
"most_calls": 3,
"wall": 1208,
"on_cpu": 1375,
"blocked": 0,
"wall_least": 792,
"wall_most": 3500,
"wall_total": 5458,
"on_cpu_total": 6208,
"blocked_total": 0
},
{
"call": "texture",
"least_calls": 1,
"most_calls": 1,
"wall": 29875,
"on_cpu": 30084,
"blocked": 0,
"wall_least": 22334,
"wall_most": 34583,
"wall_total": 29875,
"on_cpu_total": 30084,
"blocked_total": 0
},
{
"call": "wait",
"least_calls": 3,
"most_calls": 3,
"wall": 280833,
"on_cpu": 2375,
"blocked": 278791,
"wall_least": 256167,
"wall_most": 840583,
"wall_total": 1405249,
"on_cpu_total": 10792,
"blocked_total": 1394457
}
]
}
}
]
}