From e51bc82025d1256d2d00660dfbcd67946f09dcb1 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 26 Nov 2026 20:17:48 -0800 Subject: [PATCH] Conformance: Metal's recording of pass-pipeline-color-unattached Plain Metal on the Apple M3 Max, macOS 27.0.1 (26A434), job m3-max-75903: three runs, one outcome. Colour 0 holds the fragment's value at all 32 texels of the drawn rows and the clear at the other 32; the command buffer completes with no error. The validated leg (MTL_DEBUG_LAYER=1, nslog) stops at the render call: "For color attachment 1, the renderPipelineState pixelFormat must be MTLPixelFormatInvalid, as no texture is set." Verified: the recording is the file record mode wrote in that job, copied back unchanged (potluck cp), and every texel was checked against the case's codes. --- .../pass-pipeline-color-unattached.json | 324 ++++++++++++++++++ 1 file changed, 324 insertions(+) create mode 100644 crates/metal2vulkan-conformance/recordings/pass-pipeline-color-unattached.json diff --git a/crates/metal2vulkan-conformance/recordings/pass-pipeline-color-unattached.json b/crates/metal2vulkan-conformance/recordings/pass-pipeline-color-unattached.json new file mode 100644 index 000000000..310dfa84f --- /dev/null +++ b/crates/metal2vulkan-conformance/recordings/pass-pipeline-color-unattached.json @@ -0,0 +1,324 @@ +{ + "format": 1, + "case": "pass-pipeline-color-unattached", + "suite_version": 1, + "shaders": [ + { + "fixture": "rt6_pair.ll", + "entry": "rt6_pair_vertex+rt6_pair_two", + "source_sha256": "df95fc8504ed266dd72b14ddc460366aa4eb456a60d32204d10223b60b11de8b" + }, + { + "fixture": "rt6_pair.air.ll", + "entry": "rt6_pair_vertex+rt6_pair_two", + "source_sha256": "9fcfdf6c6627919775884bc44cfaeaa846380b3f48dc44f052efe0ea8efe07ed" + } + ], + "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": "df95fc8504ed266dd72b14ddc460366aa4eb456a60d32204d10223b60b11de8b" + } + } + }, + { + "name": "air-typed", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "9fcfdf6c6627919775884bc44cfaeaa846380b3f48dc44f052efe0ea8efe07ed" + } + } + }, + { + "name": "buffer:color0", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "4403b6dd643ac3becfb9b41a97892da966769058b8d3e0edfb5eae05f130d588" + } + } + }, + { + "name": "buffer:color1", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "d0588f3d6d4327732550c7262717e2a3a558cf11a948ea46ea231ee33ea32379" + } + } + }, + { + "name": "buffer:width", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "dc765660b06ee03dd16fd7ca5b957e8c805161ac2c4af28c5a100ab2ab432ca1" + } + } + }, + { + "name": "render-pipeline", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "5141943b27249e3a72e3e681b0b7acc3878988edcdd26c792f8c33dab8e815b3" + } + } + }, + { + "name": "target", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "417966ecee724a43e4bdb9d66ec6b356383e5ee401411c1b424d02676fa8a800" + } + } + }, + { + "name": "pass", + "observed": { + "value": "absent", + "digest": { + "kind": "sha256", + "hex": "203271a13a933775bff5183728c36d8dad1e660695bcb48c99dd07b51e30ac64" + } + } + } + ] + }, + { + "name": "library", + "observed": { + "value": { + "variant": { + "name": "Ok", + "payload": "absent" + } + } + } + }, + { + "name": "render-pipeline", + "observed": { + "value": { + "variant": { + "name": "Ok", + "payload": "absent" + } + } + } + }, + { + "name": "target", + "observed": { + "value": { + "variant": { + "name": "Ok", + "payload": "absent" + } + } + } + }, + { + "name": "buffer:color0", + "observed": { + "value": { + "variant": { + "name": "Ok", + "payload": "absent" + } + } + } + }, + { + "name": "buffer:width", + "observed": { + "value": { + "variant": { + "name": "Ok", + "payload": "absent" + } + } + } + }, + { + "name": "buffer:color1", + "observed": { + "value": { + "variant": { + "name": "Ok", + "payload": "absent" + } + } + } + }, + { + "name": "render", + "observed": { + "value": { + "variant": { + "name": "Ok", + "payload": { + "variant": { + "name": "Completed", + "payload": "absent" + } + } + } + } + } + }, + { + "name": "read-back", + "observed": { + "value": { + "variant": { + "name": "Ok", + "payload": "absent" + } + } + } + }, + { + "name": "drawn", + "observed": { + "value": "absent" + }, + "children": [ + { + "name": "pass", + "observed": { + "value": { + "variant": { + "name": "Ok", + "payload": "absent" + } + } + } + }, + { + "name": "command-buffer-error", + "observed": { + "value": { + "variant": { + "name": "None", + "payload": "absent" + } + } + } + }, + { + "name": "color0", + "observed": { + "value": { + "bytes": "wIBAAMGBQQHCgkICw4NDA8SERATFhUUFxoZGBseHRwfIiEgIyYlJCcqKSgrLi0sLzIxMDM2NTQ3Ojk4Oz49PD9CQUBDRkVER0pJSEtOTUxPUlFQU1ZVVFdaWVhbXl1cX2JhYGNmZWRnamloa25tbG9ycXBzdnV0d3p5eHt+fXx8HBQP6BwUD+gcFA/oHBQP6BwUD+gcFA/oHBQP6BwUD+gcFA/oHBQP6BwUD+gcFA/oHBQP6BwUD+gcFA/oHBQP6BwUD+gcFA/oHBQP6BwUD+gcFA/oHBQP6BwUD+gcFA/oHBQP6BwUD+gcFA/oHBQP6BwUD+gcFA/oHBQP6BwUD+g==" + }, + "shape": { + "bytes": { + "region": { + "texture": { + "level": 0, + "slice": 0, + "aspect": "color", + "sample": 0, + "origin": [ + 0, + 0, + 0 + ], + "size": [ + 8, + 8, + 1 + ] + } + }, + "element": "u8", + "row_offset": 0, + "row_elements": 32, + "row_pitch": 32, + "rows": 8, + "image_pitch": 256, + "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": "render", + "message": "Set Render Pipeline State Validation\nFor color attachment 1, the renderPipelineState pixelFormat must be MTLPixelFormatInvalid, as no texture is set.\nthe pipelineState's per sample imageBlock usage(8) is greater than the encoder's perSample imageBlock usage(4)" + } + } + } + ] +}