{ "format": 1, "case": "argument-encoder-texture-sampler", "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": "3bf75d09b9a112bf60993752e077a6d7259bc6bcd298697bd8c9f50eba16d4ef" } } }, { "name": "writes", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "977ab2205efcd65148216e287019a92ffa1141e36543250774ba9e34fad45cbf" } } }, { "name": "dispatch", "observed": { "value": "absent", "digest": { "kind": "sha256", "hex": "e7acdd7745f56a3b159f5a4f2a8fcb5ba72db33ed4afbc69c3b1fd6b12c48869" } } } ] }, { "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": "AQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" }, "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": "dispatch", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "status", "observed": { "value": { "variant": { "name": "Ok", "payload": { "variant": { "name": "Completed", "payload": "absent" } } } } } }, { "name": "output-read-back", "observed": { "value": { "variant": { "name": "Ok", "payload": "absent" } } } }, { "name": "output", "observed": { "value": { "bytes": "AAAAAAAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAAAAAACAPwAAAAAAAIA/AAAAAAAAgD8AAAAAAAAAAAAAgD8AAIA/AAAAAAAAgD8AAIA/AACAPwAAAAAAAAAAAAAAAAAAAAAAAIA/AACAPwAAAAAAAAAAAACAPwAAAAAAAIA/AAAAAAAAgD8AAIA/AACAPwAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8AAAAAAACAPwAAgD8AAAAAAACAPwAAgD8AAIA/AACAPwAAgD8AAIA/AACAPw==" }, "shape": { "bytes": { "region": { "buffer": { "offset": 0, "length": 256 } }, "element": "f32", "row_offset": 0, "row_elements": 4, "row_pitch": 16, "rows": 16, "image_pitch": 256, "images": 1, "gaps": "ignored" } } } }, { "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", "degraded": [ "metal2vulkan-degrade-set-past-layout-support" ], "bounds": { "addressable_buffers_made": 1, "arena_pools_made": 1, "argument_objects_retained": 3, "argument_tables_retained": 1, "bare_starts": 1, "batches_held_past_a_look": 1, "batches_with_none_pending": 1, "blocks_ahead_hurried": 1, "blocks_ahead_waited_for": 2, "bound_notices_made": 1, "command_buffers_begun": 5, "command_buffers_begun_batch_barriers": 1, "command_buffers_begun_batch_work": 1, "command_buffers_begun_continuations": 1, "command_buffers_begun_encoders": 1, "command_buffers_begun_segments": 1, "command_buffers_submitted": 5, "commands_recorded.begin_command_buffer": 4, "commands_recorded.cmd_bind_descriptor_sets": 2, "commands_recorded.cmd_bind_pipeline": 1, "commands_recorded.cmd_clear_color_image": 1, "commands_recorded.cmd_copy_buffer": 1, "commands_recorded.cmd_dispatch": 1, "commands_recorded.cmd_pipeline_barrier": 4, "commands_recorded.cmd_push_constants": 1, "commands_recorded.end_command_buffer": 5, "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": 276824192, "dispatch_pipelines_pooled": 1, "dispatch_shapes_made": 1, "dispatch_used_resources_listed": 1, "encoder_command_buffers_begun": 3, "fence_waits": 1, "finales_apart": 1, "functions_translated": 1, "gate_waits": 1, "gate_waits_slept": 1, "heads_held_for_host_steps": 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": 1, "image_blocks_made_ahead": 2, "image_blocks_made_in_place": 2, "images_started_on_the_host": 1, "new_buffer_bytes_cleared": 640, "object_churn.buffers_parked": 4, "object_churn.buffers_recycled": 3, "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": 3, "object_churn.vk_images_made": 3, "pipeline_layouts_made": 1, "plain_buffer_blocks_made": 2, "pooled_memory_blocks_made": 4, "queue_submissions": 1, "queues_sharing_a_vk_queue": 1, "resident_textures_looked_at": 2, "scheduled_where_submitted": 1, "scheduler_passes": 4, "scheduler_passes_by_waiters": 1, "scheduler_sleeps": 3, "scheduler_wakes_commit": 1, "scheduler_wakes_host": 2, "shader_modules_made": 1, "slot_returns": 1, "spare_command_pools_taken": 1, "stage_entries_specialized": 1, "submit_infos": 2, "trail_waits": 1, "variant_pipelines_made": 1, "wakes_completion_waiters": 1, "wakes_spared": 8 }, "moving": { "gate_waits_slept": 0, "host_steps_recorded": 0 }, "composed": { "addressable_buffers_made": 1, "blocks_ahead_hurried": 1, "blocks_ahead_waited_for": 2, "command_buffers_begun": 5, "command_buffers_begun_batch_work": 1, "command_buffers_submitted": 5, "commands_recorded.cmd_clear_color_image": 1, "commands_recorded.cmd_copy_buffer": 1, "commands_recorded.cmd_pipeline_barrier": 4, "commands_recorded.end_command_buffer": 5, "device_memory_allocated": 268435584, "host_copy_blocks_made_in_place": 0, "host_copy_blocks_readied": 1, "image_blocks_made_ahead": 2, "image_blocks_made_in_place": 0, "plain_buffer_blocks_made": 2, "queues_sharing_a_vk_queue": 0 }, "ceilings": { "addressable_buffers_made": 1, "arena_pools_made": 1, "pooled_memory_blocks_made": 4 }, "per_state": { "pipelines": 1, "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-texture-sampler", "calls": 16, "in_calls": 27139793, "on_cpu": 913000, "blocked": 26034958, "elsewhere": 3143583, "spend": 30259251, "spend_least": 29442416, "spend_most": 32351834, "per_call": [ { "call": "argument_encoder", "least_calls": 1, "most_calls": 1, "wall": 30667, "on_cpu": 30833, "blocked": 0, "wall_least": 27834, "wall_most": 93417, "wall_total": 30667, "on_cpu_total": 30833, "blocked_total": 0 }, { "call": "argument_encoder_facts", "least_calls": 1, "most_calls": 1, "wall": 2083, "on_cpu": 2167, "blocked": 0, "wall_least": 1875, "wall_most": 24208, "wall_total": 2083, "on_cpu_total": 2167, "blocked_total": 0 }, { "call": "buffer", "least_calls": 3, "most_calls": 3, "wall": 1708, "on_cpu": 1792, "blocked": 0, "wall_least": 1625, "wall_most": 2292, "wall_total": 7167, "on_cpu_total": 7500, "blocked_total": 0 }, { "call": "compute_pipeline", "least_calls": 1, "most_calls": 1, "wall": 72333, "on_cpu": 72666, "blocked": 0, "wall_least": 61500, "wall_most": 354167, "wall_total": 72333, "on_cpu_total": 72666, "blocked_total": 0 }, { "call": "dispatch", "least_calls": 1, "most_calls": 1, "wall": 107459, "on_cpu": 107583, "blocked": 0, "wall_least": 101958, "wall_most": 122958, "wall_total": 107459, "on_cpu_total": 107583, "blocked_total": 0 }, { "call": "encode_argument", "least_calls": 2, "most_calls": 2, "wall": 459, "on_cpu": 583, "blocked": 0, "wall_least": 417, "wall_most": 791, "wall_total": 1875, "on_cpu_total": 2125, "blocked_total": 0 }, { "call": "library", "least_calls": 1, "most_calls": 1, "wall": 23011458, "on_cpu": 620541, "blocked": 22402583, "wall_least": 22507167, "wall_most": 24948791, "wall_total": 23011458, "on_cpu_total": 620541, "blocked_total": 22402583 }, { "call": "read_buffer", "least_calls": 2, "most_calls": 2, "wall": 209, "on_cpu": 375, "blocked": 0, "wall_least": 167, "wall_most": 292, "wall_total": 1001, "on_cpu_total": 1667, "blocked_total": 0 }, { "call": "sampler", "least_calls": 1, "most_calls": 1, "wall": 5459, "on_cpu": 5625, "blocked": 0, "wall_least": 5250, "wall_most": 24250, "wall_total": 5459, "on_cpu_total": 5625, "blocked_total": 0 }, { "call": "set_argument_buffer", "least_calls": 1, "most_calls": 1, "wall": 208, "on_cpu": 375, "blocked": 0, "wall_least": 208, "wall_most": 625, "wall_total": 208, "on_cpu_total": 375, "blocked_total": 0 }, { "call": "texture_2d_in_role", "least_calls": 1, "most_calls": 1, "wall": 32041, "on_cpu": 32167, "blocked": 0, "wall_least": 23875, "wall_most": 43875, "wall_total": 32041, "on_cpu_total": 32167, "blocked_total": 0 }, { "call": "wait", "least_calls": 1, "most_calls": 1, "wall": 3701084, "on_cpu": 12000, "blocked": 3689084, "wall_least": 3591792, "wall_most": 3947750, "wall_total": 3701084, "on_cpu_total": 12000, "blocked_total": 3689084 } ] } }, { "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-texture-sampler", "calls": 16, "in_calls": 7067126, "on_cpu": 4704497, "blocked": 2371625, "elsewhere": 1918833, "spend": 8983749, "spend_least": 8528292, "spend_most": 10688333, "per_call": [ { "call": "argument_encoder", "least_calls": 1, "most_calls": 1, "wall": 151417, "on_cpu": 151666, "blocked": 0, "wall_least": 140041, "wall_most": 172750, "wall_total": 151417, "on_cpu_total": 151666, "blocked_total": 0 }, { "call": "argument_encoder_facts", "least_calls": 1, "most_calls": 1, "wall": 458, "on_cpu": 542, "blocked": 0, "wall_least": 375, "wall_most": 583, "wall_total": 458, "on_cpu_total": 542, "blocked_total": 0 }, { "call": "buffer", "least_calls": 3, "most_calls": 3, "wall": 2792, "on_cpu": 2917, "blocked": 0, "wall_least": 2292, "wall_most": 3250, "wall_total": 12834, "on_cpu_total": 13249, "blocked_total": 0 }, { "call": "compute_pipeline", "least_calls": 1, "most_calls": 1, "wall": 3065833, "on_cpu": 2825125, "blocked": 240708, "wall_least": 2760250, "wall_most": 4727750, "wall_total": 3065833, "on_cpu_total": 2825125, "blocked_total": 240708 }, { "call": "dispatch", "least_calls": 1, "most_calls": 1, "wall": 388208, "on_cpu": 388417, "blocked": 0, "wall_least": 371250, "wall_most": 430250, "wall_total": 388208, "on_cpu_total": 388417, "blocked_total": 0 }, { "call": "encode_argument", "least_calls": 2, "most_calls": 2, "wall": 875, "on_cpu": 959, "blocked": 0, "wall_least": 792, "wall_most": 917, "wall_total": 2834, "on_cpu_total": 3043, "blocked_total": 0 }, { "call": "library", "least_calls": 1, "most_calls": 1, "wall": 168042, "on_cpu": 169583, "blocked": 0, "wall_least": 155750, "wall_most": 172584, "wall_total": 168042, "on_cpu_total": 169583, "blocked_total": 0 }, { "call": "read_buffer", "least_calls": 2, "most_calls": 2, "wall": 125, "on_cpu": 250, "blocked": 0, "wall_least": 125, "wall_most": 166, "wall_total": 334, "on_cpu_total": 583, "blocked_total": 0 }, { "call": "sampler", "least_calls": 1, "most_calls": 1, "wall": 3250, "on_cpu": 3333, "blocked": 0, "wall_least": 2958, "wall_most": 3875, "wall_total": 3250, "on_cpu_total": 3333, "blocked_total": 0 }, { "call": "set_argument_buffer", "least_calls": 1, "most_calls": 1, "wall": 583, "on_cpu": 667, "blocked": 0, "wall_least": 541, "wall_most": 14167, "wall_total": 583, "on_cpu_total": 667, "blocked_total": 0 }, { "call": "texture_2d_in_role", "least_calls": 1, "most_calls": 1, "wall": 1143334, "on_cpu": 1143500, "blocked": 0, "wall_least": 1044083, "wall_most": 1286791, "wall_total": 1143334, "on_cpu_total": 1143500, "blocked_total": 0 }, { "call": "wait", "least_calls": 1, "most_calls": 1, "wall": 2133625, "on_cpu": 3250, "blocked": 2130917, "wall_least": 2037958, "wall_most": 2181916, "wall_total": 2133625, "on_cpu_total": 3250, "blocked_total": 2130917 } ] } } ] }