{ "format": 1, "case": "attribute-stride-buffer", "suite_version": 1, "shaders": [ { "fixture": "stage_in_regions.ll", "entry": "stage_in_region_word", "source_sha256": "39727f278497417e6d6bbfdba5b99f87aa1e60c1e77248768fb6df13b043f9a2" }, { "fixture": "stage_in_regions.air.ll", "entry": "stage_in_region_word", "source_sha256": "3d135d2782f5f5e90d9ec2c9ad29fc155def90bef8781818c036e3390cadb22c" } ], "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": "39727f278497417e6d6bbfdba5b99f87aa1e60c1e77248768fb6df13b043f9a2" } } }, { "name": "air-typed", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "3d135d2782f5f5e90d9ec2c9ad29fc155def90bef8781818c036e3390cadb22c" } } }, { "name": "stage-input", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "ab7afd826a8d9b374dff9016f3e4d9d214dcc3ab1d78b016298abd09e5acd82f" } } }, { "name": "buffer:0", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "035819aa9bba0ec5d72e0a4e8064105efcccd25d016d8c6d604ddff15efc9e76" } } }, { "name": "buffer:1", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "6908bc3cabc6d8215e29d17580677f801ea36256d985bc7fdb7d2564332e32b9" } } }, { "name": "pass", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "4b3c2d7935c3c0b2fb563398b6c81e6177e5fb60a9d639ef6b3de91b65a07a9d" } } } ] }, { "name": "library", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "pipeline", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "buffer/0", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "buffer/1", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "pass", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "outcome", "observed": { "value": "absent" }, "children": [ { "name": "dispatch_type", "observed": { "value": { "variant": { "name": "Serial", "payload": "absent" } } } }, { "name": "status", "observed": { "value": { "variant": { "name": "Completed", "payload": "absent" } } } }, { "name": "error", "observed": { "value": { "variant": { "name": "None", "payload": "absent" } } } }, { "name": "step/0/setComputePipelineState", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/1/setStageInRegion", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/2/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/3/setBufferWithAttributeStride", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/4/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/5/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/6/setBufferWithAttributeStride", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/7/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/8/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/9/setBufferWithAttributeStride", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/10/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/11/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/12/setBufferWithAttributeStride", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/13/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/14/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/15/setBufferWithAttributeStride", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/16/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/17/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/18/setBufferWithAttributeStride", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/19/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/20/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/21/setBufferWithAttributeStride", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/22/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/23/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/24/setBufferWithAttributeStride", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/25/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/26/setBuffer", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/27/setBufferWithAttributeStride", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "step/28/dispatchThreadgroups", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } } ] }, { "name": "read-back", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "nine-strides", "observed": { "value": { "bytes": "EAEAABABAAAQAQAAEAEAABABAAAQAQAAEAEAABABAAAQAQAAAAEAEQABEQAAEgAAEQEAAAABABIAARIAABMAABABAAARAQAAEgEAABMBAAAUAQAAFQEAABYBAAAXAQAAEAEAABIBAAAUAQAAFgEAABgBAAAaAQAAHAEAAB4BAAAQAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAABABAAAQAQAAEAEAABABAAAQAQAAEAEAABABAAAQAQAAEAEAABIBAAAUAQAAFgEAABgBAAAaAQAAHAEAAB4BAAAQAQAAEQEAABIBAAATAQAAFAEAABUBAAAWAQAAFwEAABABAAASAQAAFAEAABYBAAAYAQAAGgEAABwBAAAeAQAAfn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fg==" }, "shape": { "bytes": { "region": { "buffer": { "offset": 0, "length": 352 } }, "element": "u32", "row_offset": 0, "row_elements": 88, "row_pitch": 352, "rows": 1, "image_pitch": 352, "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": "compute_pass", "message": "ComputeCommandEncoder Validation\nproviding MTLAttributeStrideStatic to `attributeStride` when stride at buffer-layout index 1 is dynamic." } } } ], "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": 2, "argument_tables_held_at_bind": 8, "argument_tables_retained": 1, "bare_starts": 1, "batches_held_past_a_look": 1, "batches_with_none_pending": 1, "blocks_ahead_waited_for": 3, "bound_offsets_moved": 16, "buffer_blocks_made_ahead": 2, "buffer_blocks_made_in_place": 2, "command_barriers": 8, "command_buffers_begun": 20, "command_buffers_begun_batch_barriers": 1, "command_buffers_begun_continuations": 9, "command_buffers_begun_encoders": 1, "command_buffers_begun_segments": 9, "command_buffers_submitted": 20, "commands_recorded.begin_command_buffer": 20, "commands_recorded.cmd_bind_descriptor_sets": 9, "commands_recorded.cmd_bind_pipeline": 9, "commands_recorded.cmd_dispatch": 9, "commands_recorded.cmd_pipeline_barrier": 9, "commands_recorded.cmd_push_constants": 9, "commands_recorded.end_command_buffer": 20, "commits_handed_off": 1, "commits_taken_in": 1, "completed_waits": 4, "completed_where_seen": 1, "completion_arms": 1, "completion_arms_after_a_wake": 1, "completion_waiter_parks": 1, "device_memory_allocated": 205520896, "dispatch_pipelines_pooled": 2, "dispatch_shapes_found": 3, "dispatch_shapes_made": 6, "dispatch_used_resources_listed": 1, "dispatches_planned_as_before": 3, "encoder_command_buffers_begun": 19, "fence_waits": 1, "finales_apart": 1, "functions_translated": 1, "gate_waits": 1, "gate_waits_slept": 1, "heads_held_for_host_steps": 5, "heap_tables_worked_out": 1, "host_steps_recorded": 1, "image_blocks_made_ahead": 1, "image_blocks_made_in_place": 1, "new_buffer_bytes_cleared": 864, "object_churn.buffers_parked": 2, "object_churn.vk_buffer_bindings": 2, "object_churn.vk_buffers_made": 2, "pipeline_layouts_made": 1, "plain_buffer_blocks_made": 2, "pooled_memory_blocks_made": 3, "queue_submissions": 1, "queues_sharing_a_vk_queue": 1, "resident_textures_looked_at": 1, "scheduled_where_submitted": 1, "scheduler_passes": 6, "scheduler_passes_by_waiters": 1, "scheduler_sleeps": 5, "scheduler_wakes_commit": 1, "scheduler_wakes_host": 4, "set_zero_sets_reused": 8, "shader_modules_made": 1, "slot_returns": 1, "spare_command_pools_taken": 1, "stage_entries_shared": 1, "stage_entries_specialized": 1, "submit_infos": 2, "trail_waits": 1, "variant_pipelines_made": 2, "wakes_completion_waiters": 1, "wakes_spared": 15 }, "moving": { "command_buffers_begun": 8, "command_buffers_begun_continuations": 3, "command_buffers_begun_segments": 3, "command_buffers_submitted": 8, "commands_recorded.end_command_buffer": 8, "encoder_command_buffers_begun": 7, "gate_waits_slept": 0, "host_steps_recorded": 0 }, "composed": { "blocks_ahead_waited_for": 3, "buffer_blocks_made_ahead": 2, "buffer_blocks_made_in_place": 0, "device_memory_allocated": 201326592, "dispatch_used_resources_listed": 1, "image_blocks_made_ahead": 1, "image_blocks_made_in_place": 0, "plain_buffer_blocks_made": 2, "queues_sharing_a_vk_queue": 0 }, "ceilings": { "addressable_buffers_made": 2, "arena_pools_made": 1, "pooled_memory_blocks_made": 3 }, "per_state": { "pipelines": 2, "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": "attribute-stride-buffer", "calls": 6, "in_calls": 26407584, "on_cpu": 868876, "blocked": 25603042, "elsewhere": 3093750, "spend": 29475626, "spend_least": 28198124, "spend_most": 30717916, "per_call": [ { "call": "buffer", "least_calls": 2, "most_calls": 2, "wall": 2375, "on_cpu": 2458, "blocked": 0, "wall_least": 2125, "wall_most": 3208, "wall_total": 24667, "on_cpu_total": 24874, "blocked_total": 0 }, { "call": "compute_pass", "least_calls": 1, "most_calls": 1, "wall": 3761958, "on_cpu": 123375, "blocked": 3638583, "wall_least": 3291375, "wall_most": 3932208, "wall_total": 3761958, "on_cpu_total": 123375, "blocked_total": 3638583 }, { "call": "compute_pipeline_with_stage_input", "least_calls": 1, "most_calls": 1, "wall": 85500, "on_cpu": 85750, "blocked": 0, "wall_least": 83000, "wall_most": 327209, "wall_total": 85500, "on_cpu_total": 85750, "blocked_total": 0 }, { "call": "library", "least_calls": 1, "most_calls": 1, "wall": 22601000, "on_cpu": 621791, "blocked": 22011208, "wall_least": 21640333, "wall_most": 23460125, "wall_total": 22601000, "on_cpu_total": 621791, "blocked_total": 22011208 }, { "call": "read_buffer", "least_calls": 1, "most_calls": 1, "wall": 458, "on_cpu": 709, "blocked": 0, "wall_least": 416, "wall_most": 1250, "wall_total": 458, "on_cpu_total": 709, "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": "attribute-stride-buffer", "calls": 6, "in_calls": 2553042, "on_cpu": 1122709, "blocked": 1429959, "elsewhere": 957625, "spend": 3510667, "spend_least": 3348292, "spend_most": 3773707, "per_call": [ { "call": "buffer", "least_calls": 2, "most_calls": 2, "wall": 1250, "on_cpu": 1417, "blocked": 0, "wall_least": 1042, "wall_most": 1417, "wall_total": 5125, "on_cpu_total": 5375, "blocked_total": 0 }, { "call": "compute_pass", "least_calls": 1, "most_calls": 1, "wall": 1511375, "on_cpu": 98166, "blocked": 1429959, "wall_least": 1461125, "wall_most": 1624334, "wall_total": 1511375, "on_cpu_total": 98166, "blocked_total": 1429959 }, { "call": "compute_pipeline_with_stage_input", "least_calls": 1, "most_calls": 1, "wall": 936125, "on_cpu": 936375, "blocked": 0, "wall_least": 832333, "wall_most": 1003250, "wall_total": 936125, "on_cpu_total": 936375, "blocked_total": 0 }, { "call": "library", "least_calls": 1, "most_calls": 1, "wall": 89583, "on_cpu": 90958, "blocked": 0, "wall_least": 78583, "wall_most": 103375, "wall_total": 89583, "on_cpu_total": 90958, "blocked_total": 0 }, { "call": "read_buffer", "least_calls": 1, "most_calls": 1, "wall": 334, "on_cpu": 459, "blocked": 0, "wall_least": 208, "wall_most": 375, "wall_total": 334, "on_cpu_total": 459, "blocked_total": 0 } ] } } ] }