Sweep the render pass descriptor's own option space
The steps this packet landed as, in order: - Say what the action sweep does not state, and drop a claim another stream closed Content: the tree of `development` at 1a0d7adf6a, unchanged.
This commit is contained in:
1 parent
cc34e1a18b
commit
1fb4d36e04
21 files changed
+25428
-68
No files matched your search
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,346 @@
|
||||
{
|
||||
"format": 1,
|
||||
"case": "pass-clear-colors",
|
||||
"suite_version": 1,
|
||||
"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": "rows",
|
||||
"observed": {
|
||||
"value": "absent",
|
||||
"digest": {
|
||||
"kind": "sha256",
|
||||
"hex": "8958a817ee7102addc7d7697881b59edadfed930ec92ba27825ee0e67c6e864d"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "color-0",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "color-1",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "color-2",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "color-3",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4598175219545276416,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4602678819172646912,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4604930618986332160,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 13830554455654793216,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "color-4",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 9221120237041090560,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 9218868437227405312,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 18442240474082181120,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 9223372036854775808,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "color-5",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 9218868437227405311,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 18442240474082181119,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4503599627370496,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4372995238176751616,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "notices",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "set",
|
||||
"observed": {
|
||||
"value": {
|
||||
"nothing": "announced_nothing"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "counts",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"validated": "ran"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,323 @@
|
||||
{
|
||||
"format": 1,
|
||||
"case": "pass-clear-depths",
|
||||
"suite_version": 1,
|
||||
"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": "rows",
|
||||
"observed": {
|
||||
"value": "absent",
|
||||
"digest": {
|
||||
"kind": "sha256",
|
||||
"hex": "4091ebed47b93ee026235862985ea5ef9525f9a09df7a939d079b83f856fc6c8"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x0000000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x3ff0000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x3fe0000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4602678819172646912,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x8000000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 9223372036854775808,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x4000000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4611686018427387904,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0xbff0000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 13830554455654793216,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x7ff8000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 9221120237041090560,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0xfff8000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 18444492273895866368,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x7ff0000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 9218868437227405312,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0xfff0000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 18442240474082181120,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x0010000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4503599627370496,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x3cb0000000000000",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4372995238176751616,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "depth-0x3fefffffffffffff",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4607182418800017407,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "notices",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "set",
|
||||
"observed": {
|
||||
"value": {
|
||||
"nothing": "announced_nothing"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "counts",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"validated": "ran"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,902 @@
|
||||
{
|
||||
"format": 1,
|
||||
"case": "pass-descriptor-assigned",
|
||||
"suite_version": 1,
|
||||
"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": "rows",
|
||||
"observed": {
|
||||
"value": "absent",
|
||||
"digest": {
|
||||
"kind": "sha256",
|
||||
"hex": "724222bbe64688723b8e61122973841cce07b0d689e01f83afdd48bfb92baf3e"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "facts",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_attachments",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 34
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 32
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 37
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 35
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 36
|
||||
},
|
||||
"slice": {
|
||||
"uint": 33
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4632092954238910464,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4632233691727265792,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4632515166703976448,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4633078116657397760,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "depth_attachment",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 69
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 67
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 72
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 70
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 71
|
||||
},
|
||||
"slice": {
|
||||
"uint": 68
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4598175219545276416,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "depth_resolve_filter",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stencil_attachment",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 76
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 74
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 79
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 77
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 78
|
||||
},
|
||||
"slice": {
|
||||
"uint": 75
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 3
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "clear_stencil",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 171
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stencil_resolve_filter",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_array_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 3
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_width",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 128
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_height",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 96
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "default_raster_sample_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tile_width",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 48
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tile_height",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 24
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "imageblock_sample_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 40
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "threadgroup_memory_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 1000
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "has_visibility_result_buffer",
|
||||
"observed": {
|
||||
"value": {
|
||||
"bool": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "has_rasterization_rate_map",
|
||||
"observed": {
|
||||
"value": {
|
||||
"bool": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_position_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 4
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_positions",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1031798784,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1044381696,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1050673152,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1054867456,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1058013184,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1060110336,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1062207488,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1064304640,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "notices",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "set",
|
||||
"observed": {
|
||||
"value": {
|
||||
"nothing": "announced_nothing"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "counts",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"validated": "ran"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,902 @@
|
||||
{
|
||||
"format": 1,
|
||||
"case": "pass-descriptor-cleared",
|
||||
"suite_version": 1,
|
||||
"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": "rows",
|
||||
"observed": {
|
||||
"value": "absent",
|
||||
"digest": {
|
||||
"kind": "sha256",
|
||||
"hex": "c2dba66f5d568bbe8238a7ffe9697c24a0660648f69f1a021fcfbb302a88dd26"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "facts",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_attachments",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "depth_attachment",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "depth_resolve_filter",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stencil_attachment",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "clear_stencil",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stencil_resolve_filter",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_array_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 3
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_width",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 128
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_height",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 96
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "default_raster_sample_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tile_width",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 48
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tile_height",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 24
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "imageblock_sample_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 40
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "threadgroup_memory_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 1000
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "has_visibility_result_buffer",
|
||||
"observed": {
|
||||
"value": {
|
||||
"bool": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "has_rasterization_rate_map",
|
||||
"observed": {
|
||||
"value": {
|
||||
"bool": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_position_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 4
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_positions",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1031798784,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1044381696,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1050673152,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1054867456,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1058013184,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1060110336,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1062207488,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1064304640,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "notices",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "set",
|
||||
"observed": {
|
||||
"value": {
|
||||
"nothing": "announced_nothing"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "counts",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"validated": "ran"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,837 @@
|
||||
{
|
||||
"format": 1,
|
||||
"case": "pass-descriptor-defaults",
|
||||
"suite_version": 1,
|
||||
"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": "rows",
|
||||
"observed": {
|
||||
"value": "absent",
|
||||
"digest": {
|
||||
"kind": "sha256",
|
||||
"hex": "443961f94ddb546f0d73d5f88a84a1624aec1a5aed0c64bdceb925d0257e6fd7"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "facts",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_attachments",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "depth_attachment",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "depth_resolve_filter",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stencil_attachment",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 0
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"slice": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "clear_stencil",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stencil_resolve_filter",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_array_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_width",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_height",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "default_raster_sample_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tile_width",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tile_height",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "imageblock_sample_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "threadgroup_memory_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "has_visibility_result_buffer",
|
||||
"observed": {
|
||||
"value": {
|
||||
"bool": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "has_rasterization_rate_map",
|
||||
"observed": {
|
||||
"value": {
|
||||
"bool": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_position_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_positions",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "notices",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "set",
|
||||
"observed": {
|
||||
"value": {
|
||||
"nothing": "announced_nothing"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "counts",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"validated": "ran"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,902 @@
|
||||
{
|
||||
"format": 1,
|
||||
"case": "pass-descriptor-set",
|
||||
"suite_version": 1,
|
||||
"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": "rows",
|
||||
"observed": {
|
||||
"value": "absent",
|
||||
"digest": {
|
||||
"kind": "sha256",
|
||||
"hex": "3b77d1c4d83e97777bb8f0e37103231ea8c62a37b3a2904b443b8ea85df7258d"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "facts",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "color_attachments",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 13
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 11
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 16
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 14
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 15
|
||||
},
|
||||
"slice": {
|
||||
"uint": 12
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 20
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 18
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 23
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 21
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 22
|
||||
},
|
||||
"slice": {
|
||||
"uint": 19
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 27
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 25
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 30
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 28
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 29
|
||||
},
|
||||
"slice": {
|
||||
"uint": 26
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 34
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 32
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 37
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 35
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 36
|
||||
},
|
||||
"slice": {
|
||||
"uint": 33
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 41
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 39
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 44
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 42
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 43
|
||||
},
|
||||
"slice": {
|
||||
"uint": 40
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 48
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 46
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 51
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 49
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 50
|
||||
},
|
||||
"slice": {
|
||||
"uint": 47
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 55
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 53
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 58
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 56
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 57
|
||||
},
|
||||
"slice": {
|
||||
"uint": 54
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 62
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 60
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 1
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 65
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 63
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 64
|
||||
},
|
||||
"slice": {
|
||||
"uint": 61
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "color_clears",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4607182418800017408,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4611686018427387904,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4616189618054758400,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4620693217682128896,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4625478292286210048,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4625759767262920704,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4626322717216342016,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4627448617123184640,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4629841154425225216,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4629981891913580544,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4630263366890291200,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4630826316843712512,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4632092954238910464,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4632233691727265792,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4632515166703976448,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4633078116657397760,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4634274385308418048,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4634344754052595712,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4634485491540951040,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4634766966517661696,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4635400285215260672,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4635470653959438336,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4635611391447793664,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4635892866424504320,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4636526185122103296,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4636596553866280960,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4636737291354636288,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4637018766331346944,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 4637652085028945920,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4637722453773123584,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4637863191261478912,
|
||||
"width": "double"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 4638144666238189568,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "depth_attachment",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 69
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 67
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 72
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 70
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 71
|
||||
},
|
||||
"slice": {
|
||||
"uint": 68
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 2
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "clear_depth",
|
||||
"observed": {
|
||||
"value": {
|
||||
"float": {
|
||||
"bits": 4598175219545276416,
|
||||
"width": "double"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "depth_resolve_filter",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stencil_attachment",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {
|
||||
"depth_plane": {
|
||||
"uint": 76
|
||||
},
|
||||
"has_resolve_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"has_texture": {
|
||||
"bool": false
|
||||
},
|
||||
"level": {
|
||||
"uint": 74
|
||||
},
|
||||
"load_action": {
|
||||
"uint": 0
|
||||
},
|
||||
"resolve_depth_plane": {
|
||||
"uint": 79
|
||||
},
|
||||
"resolve_level": {
|
||||
"uint": 77
|
||||
},
|
||||
"resolve_slice": {
|
||||
"uint": 78
|
||||
},
|
||||
"slice": {
|
||||
"uint": 75
|
||||
},
|
||||
"store_action": {
|
||||
"uint": 3
|
||||
},
|
||||
"store_action_options": {
|
||||
"uint": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "clear_stencil",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 171
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "stencil_resolve_filter",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_array_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 3
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_width",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 128
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "render_target_height",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 96
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "default_raster_sample_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 5
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tile_width",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 48
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tile_height",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 24
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "imageblock_sample_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 40
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "threadgroup_memory_length",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 1000
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "has_visibility_result_buffer",
|
||||
"observed": {
|
||||
"value": {
|
||||
"bool": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "has_rasterization_rate_map",
|
||||
"observed": {
|
||||
"value": {
|
||||
"bool": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_position_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 4
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_positions",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1031798784,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1044381696,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1050673152,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1054867456,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1058013184,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1060110336,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1062207488,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1064304640,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "notices",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "set",
|
||||
"observed": {
|
||||
"value": {
|
||||
"nothing": "announced_nothing"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "counts",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"validated": "ran"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,335 @@
|
||||
{
|
||||
"format": 1,
|
||||
"case": "pass-sample-positions",
|
||||
"suite_version": 1,
|
||||
"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": "rows",
|
||||
"observed": {
|
||||
"value": "absent",
|
||||
"digest": {
|
||||
"kind": "sha256",
|
||||
"hex": "1b1c1091c982d456fa851ee7728be66023f4adcdf4aa6809e80438dcb9b3e0bb"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "positions-0",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "sample_position_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_positions",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "positions-1",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "sample_position_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 4
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_positions",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1031798784,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1044381696,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1050673152,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1054867456,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1058013184,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1060110336,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1062207488,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1064304640,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "positions-2",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "sample_position_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_positions",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 0,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1056964608,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1064304640,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1031798784,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "positions-3",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "sample_position_count",
|
||||
"observed": {
|
||||
"value": {
|
||||
"uint": 4
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "sample_positions",
|
||||
"observed": {
|
||||
"value": {
|
||||
"list": [
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1036831949,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1045220557,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1050253722,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1060320051,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1057803469,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 1055286886,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"list": [
|
||||
{
|
||||
"float": {
|
||||
"bits": 1065336439,
|
||||
"width": "single"
|
||||
}
|
||||
},
|
||||
{
|
||||
"float": {
|
||||
"bits": 981668463,
|
||||
"width": "single"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "notices",
|
||||
"observed": {
|
||||
"value": "absent"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"name": "set",
|
||||
"observed": {
|
||||
"value": {
|
||||
"nothing": "announced_nothing"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "counts",
|
||||
"observed": {
|
||||
"value": {
|
||||
"fields": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"validated": "ran"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -888,6 +888,28 @@ pub trait Side {
|
||||
Err(Failure::unavailable("mesh_descriptor_facts"))
|
||||
}
|
||||
|
||||
/// What a **render pass descriptor** answers of itself
|
||||
/// ([`PassDescriptorFacts`](crate::pass_descriptors::PassDescriptorFacts)):
|
||||
/// `MTLRenderPassDescriptor`, its three attachment descriptors and its colour-attachment
|
||||
/// array, in the shape [`spec`](crate::pass_descriptors::PassSpec) states.
|
||||
///
|
||||
/// One call, for the reason [`Side::render_descriptor_facts`] gives: the descriptor is mutable
|
||||
/// and the observation is what it answers **after** a stated sequence of setters, so a case
|
||||
/// cannot state it as independent calls over objects neither side's handle space holds. No
|
||||
/// encoder is made from the descriptor and nothing is allocated, which is what keeps the family
|
||||
/// off the GPU.
|
||||
///
|
||||
/// The runtime has no descriptor object: its `RenderPassDescriptor` is a value a consumer
|
||||
/// fills, so Metal's `renderPassDescriptor` is `RenderPassDescriptor::new` and an attachment
|
||||
/// set to nil is its `Default` again.
|
||||
fn pass_descriptor_facts(
|
||||
&mut self,
|
||||
spec: &crate::pass_descriptors::PassSpec,
|
||||
) -> Answer<crate::pass_descriptors::PassDescriptorFacts> {
|
||||
let _ = spec;
|
||||
Err(Failure::unavailable("pass_descriptor_facts"))
|
||||
}
|
||||
|
||||
/// `newFunctionWithName:` of `entry`, or `newFunctionWithName:constantValues:error:` where
|
||||
/// `constants` holds a value, and what the function then answers about **itself**
|
||||
/// ([`crate::function_facts::FunctionFacts`]).
|
||||
|
||||
@@ -111,6 +111,7 @@ pub mod pvrtc_rows;
|
||||
pub mod rate_maps;
|
||||
pub mod render_chains;
|
||||
pub mod render_depth_stencil_state;
|
||||
pub mod render_pass_descriptors;
|
||||
pub mod render_residency;
|
||||
pub mod render_state;
|
||||
pub mod rgb10a2_srgb;
|
||||
@@ -195,6 +196,9 @@ pub fn all() -> Vec<Box<dyn Case>> {
|
||||
for case in mesh_pipeline_descriptors::all() {
|
||||
cases.push(Box::new(case));
|
||||
}
|
||||
for case in render_pass_descriptors::all() {
|
||||
cases.push(Box::new(case));
|
||||
}
|
||||
for case in compressed_blits::all() {
|
||||
cases.push(Box::new(case));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,608 @@
|
||||
//! What a render pass descriptor says about itself, swept over its option space.
|
||||
//!
|
||||
//! `MTLRenderPassDescriptor` was exercised at ten of its seventeen items and
|
||||
//! `MTLRenderPassAttachmentDescriptor` at six of twelve, every one of them by a render family
|
||||
//! **handing the descriptor to an encoder**. Nothing read one back, so the array length, the
|
||||
//! imageblock sample length, the threadgroup memory length, the rate map, the sample-position
|
||||
//! getter, the six index fields of every attachment and the colour-array setter were reached by
|
||||
//! nothing at all — and the fields that *were* reached were reached at one value each.
|
||||
//!
|
||||
//! [`crate::pass_descriptors`] holds the vocabulary, the sweeps and the argument about what each
|
||||
//! shape can catch. This module is the cases.
|
||||
//!
|
||||
//! # The cases, and the depth of each
|
||||
//!
|
||||
//! A ratio below is **values compared over values the type has**, on this family's oracle.
|
||||
//!
|
||||
//! - `pass-descriptor-defaults`: a fresh descriptor, read whole — all eight colour attachments,
|
||||
//! both aspects, the eight numbers, the rate map, the visibility buffer and the sample
|
||||
//! positions. The one shape that says what a program gets for free, and (by the measurement in
|
||||
//! [`crate::pass_descriptors`]) the one shape that cannot catch a crossed getter.
|
||||
//! - `pass-descriptor-set`: every field of all ten attachments and all eight numbers stated, no
|
||||
//! two alike, read whole. This is the shape that catches a crossing: 60 index fields holding 60
|
||||
//! different numbers, ten different (load, store) pairs, three clear colours apart in all twelve
|
||||
//! channels, and the depth and stencil clears and filters away from their defaults.
|
||||
//! - `pass-descriptor-assigned`: attachment descriptors built apart from the pass, stated, assigned
|
||||
//! into it and then mutated through the object that was assigned. What the pass answers says
|
||||
//! whether `setObject:atIndexedSubscript:`, `setDepthAttachment:` and `setStencilAttachment:`
|
||||
//! **copy** the descriptor or keep the caller's — the one way the array's setter can be compared
|
||||
//! at all, since the runtime's counterpart is an assignment into a value.
|
||||
//! - `pass-descriptor-cleared`: the same, then every attachment set to nil, read whole: what a pass
|
||||
//! answers for an attachment a program has cleared.
|
||||
//! - `pass-attachment-actions`, 18 rows: the load action, the store action and the store action
|
||||
//! options, **36 of 36 triples** — every `MTLLoadAction` against every `MTLStoreAction` against
|
||||
//! both options, exhaustive, because each row states three attachments at three places of the
|
||||
//! space ([`crate::pass_descriptors::action_rows`]). Load 3/3, store 6/6, options 2/2 of the
|
||||
//! values Metal defines — the mask's undefined bits are not swept, for the reason
|
||||
//! [`crate::pass_descriptors::Actions`] gives.
|
||||
//! - `pass-attachment-filters`, 6 rows: 6 of 6 pairs. Depth filter 3/3, stencil filter 2/2.
|
||||
//! - `pass-attachment-indices`, 8 rows: the six index fields at 0, 1, 2, 7, 8, the last 32-bit
|
||||
//! index, the first value past 32 bits and the last `NSUInteger`. A 64-bit space, so the ratio is
|
||||
//! the eight values named rather than a share, and the two above 32 bits are what a side holding
|
||||
//! an index in a `u32` fails.
|
||||
//! - `pass-clear-colors`, 6 rows of four channels: 24 doubles including a NaN with a payload, both
|
||||
//! infinities, both zeros, a denormal and the largest and smallest finite doubles.
|
||||
//! - `pass-clear-depths`, 13 rows: both ends of the documented `[0, 1]`, the middle, a value either
|
||||
//! side of each end, both zeros, a NaN of each sign, both infinities, a denormal and the double
|
||||
//! just below 1.
|
||||
//! - `pass-clear-stencils`, 262 rows: **every one of the 256 bytes**, exhaustive, and six words
|
||||
//! above them. 256/256 of the byte space.
|
||||
//! - `pass-numbers`, 36 rows: each of the pass's eight numbers at 0, 1, its documented limit and
|
||||
//! the value either side of it ([`crate::pass_descriptors::NUMBER_SWEEPS`] says which limit is
|
||||
//! which).
|
||||
//! - `pass-sample-positions`, 4 rows: no positions at all, four exact sixteenths, two positions,
|
||||
//! and four coordinates that are not sixteenths. 2 of the sample counts an Apple GPU takes custom
|
||||
//! positions at, and the fourth row is what says whether the getter answers the value a program
|
||||
//! gave or the one the rasterizer would use.
|
||||
//!
|
||||
//! # What is swept and what is not, with the reason
|
||||
//!
|
||||
//! - **The textures are not.** An attachment's `texture` and `resolveTexture` are read as whether
|
||||
//! the descriptor holds one, and no shape states one: what Metal renders through a texture at a
|
||||
//! level and a slice is every other render family's subject, and Metal checks none of these
|
||||
//! fields until an encoder opens.
|
||||
//! - **The rate map and the visibility buffer are not**, for the same reason from the other end:
|
||||
//! each is an object whose identity nothing here compares. Both getters are read.
|
||||
//! - **Sample positions outside `[0, 1)` are not**, nor more positions than a sample count: Metal
|
||||
//! documents and asserts on both, and [`crate::render::forbidden_positions`] is the suite's one
|
||||
//! guard for it, which this family's Metal side calls before the setter.
|
||||
//! - **`sampleBufferAttachments` is not**: counter sample buffers are a runtime gap
|
||||
//! (`RuntimeGap::CounterSampleBuffers`), so the coverage map does not hold the item and there is
|
||||
//! nothing of ours to compare.
|
||||
//!
|
||||
//! # What the oracle answered
|
||||
//!
|
||||
//! Measured on an Apple M3 Max under macOS 27.0.1 (26A434), which is every recording here, and
|
||||
//! each of these was an open question in the tree before:
|
||||
//!
|
||||
//! - **The three attachment setters copy.** A colour attachment assigned into slot 3 with
|
||||
//! `setObject:atIndexedSubscript:`, and a depth and a stencil attachment assigned with their own
|
||||
//! setters, keep the values the object held **at assignment**: mutating that object afterwards
|
||||
//! does not reach the pass. The runtime's counterpart is an assignment into a value, which copies
|
||||
//! by construction, so the two agree — but that they agree is now a measurement rather than an
|
||||
//! assumption about `NSCopying`.
|
||||
//! - **An attachment set to nil answers a fresh descriptor**, not nil: every field of all eight
|
||||
//! colour attachments and of both aspects is back at Metal's default, and the pass's own eight
|
||||
//! numbers and its sample positions are untouched. This is also what makes the shape safe at all,
|
||||
//! since `objc2-metal` 0.3.2 would panic on a nil here.
|
||||
//! - **Nothing in the descriptor is normalized.** All 36 action triples, both resolve filters, all
|
||||
//! 262 stencil clear words, all 13 clear depths (both NaNs, both infinities, a denormal and the
|
||||
//! values outside `[0, 1]` among them), all 24 clear-colour channels and all 36 pass numbers came
|
||||
//! back exactly as they were set, the values past each documented limit included. A descriptor
|
||||
//! stores; the checking happens when an encoder opens.
|
||||
//! - **An index field is a full 64-bit `NSUInteger`.** `level`, `slice`, `depthPlane` and the three
|
||||
//! resolve indices keep `0xffff_ffff`, `0x1_0000_0000` and `u64::MAX`, so a side holding one in a
|
||||
//! `u32` answers a different number.
|
||||
//! - **`getSamplePositions:count:` answers the positions verbatim**, including coordinates that are
|
||||
//! not sixteenths (0.1 comes back as 0.1): the quantization the rasterizer applies is not applied
|
||||
//! to the descriptor. A count of 0 answers how many the pass holds, and setting an empty array
|
||||
//! takes the custom positions back off (a count of 0 afterwards).
|
||||
//!
|
||||
//! # Exactness
|
||||
//!
|
||||
//! Every value is a number, a bool, an ordinal or a float by its bits, so the family declares no
|
||||
//! tolerance and announces nothing. The clears and the sample positions are compared **by their
|
||||
//! bits**, which is why a NaN's payload and a signed zero are part of the sweep rather than a
|
||||
//! rounding question.
|
||||
//!
|
||||
//! # Why this family is safe
|
||||
//!
|
||||
//! No case makes a library, a texture, a pipeline, a command buffer or an encoder. Each makes
|
||||
//! descriptor objects, reads them and drops them, so nothing can fault the device, trip its
|
||||
//! watchdog or reach a queue. The two hazards in reach are named in
|
||||
//! [`crate::pass_descriptors`]: the sample-position assert, which the guard stops, and
|
||||
//! `objc2-metal` 0.3.2's non-null attachment accessors.
|
||||
|
||||
use crate::case::{Abort, Case, Input, MetalSource, Side};
|
||||
use crate::pass_descriptors::{
|
||||
action_rows, clear_stencils, filter_rows, PassSpec, Reads, Shape, CLEAR_COLORS, CLEAR_DEPTHS,
|
||||
INDEX_VALUES, NUMBER_SWEEPS, POSITION_ROWS, STATED_NUMBERS, STATED_POSITIONS,
|
||||
};
|
||||
use crate::transcript::{Node, Observed, Sites};
|
||||
|
||||
/// The site a whole-descriptor shape's answers sit at.
|
||||
const FACTS: &str = "facts";
|
||||
|
||||
/// What one case sweeps, and so which rows its `run` states.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
enum Sweep {
|
||||
/// One descriptor of the named shape, read whole.
|
||||
Whole(Shape),
|
||||
/// Every row of [`action_rows`].
|
||||
Actions,
|
||||
/// Every row of [`filter_rows`].
|
||||
Filters,
|
||||
/// Every value of [`INDEX_VALUES`], on all six index fields at once.
|
||||
Indices,
|
||||
/// Every row of [`CLEAR_COLORS`].
|
||||
ClearColors,
|
||||
/// Every value of [`CLEAR_DEPTHS`].
|
||||
ClearDepths,
|
||||
/// Every value of [`clear_stencils`].
|
||||
ClearStencils,
|
||||
/// Every value of [`NUMBER_SWEEPS`], one field of the pass at a time.
|
||||
Numbers,
|
||||
/// Every row of [`POSITION_ROWS`].
|
||||
Positions,
|
||||
}
|
||||
|
||||
/// A case over one render pass descriptor's own facts, or over one sweep of them.
|
||||
pub struct PassDescriptorCase {
|
||||
name: &'static str,
|
||||
sweep: Sweep,
|
||||
}
|
||||
|
||||
/// Every case of the family.
|
||||
pub fn all() -> Vec<PassDescriptorCase> {
|
||||
vec![
|
||||
PassDescriptorCase {
|
||||
name: "pass-descriptor-defaults",
|
||||
sweep: Sweep::Whole(Shape::Defaults),
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-descriptor-set",
|
||||
sweep: Sweep::Whole(Shape::Set),
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-descriptor-assigned",
|
||||
sweep: Sweep::Whole(Shape::Assigned),
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-descriptor-cleared",
|
||||
sweep: Sweep::Whole(Shape::Cleared),
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-attachment-actions",
|
||||
sweep: Sweep::Actions,
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-attachment-filters",
|
||||
sweep: Sweep::Filters,
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-attachment-indices",
|
||||
sweep: Sweep::Indices,
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-clear-colors",
|
||||
sweep: Sweep::ClearColors,
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-clear-depths",
|
||||
sweep: Sweep::ClearDepths,
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-clear-stencils",
|
||||
sweep: Sweep::ClearStencils,
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-numbers",
|
||||
sweep: Sweep::Numbers,
|
||||
},
|
||||
PassDescriptorCase {
|
||||
name: "pass-sample-positions",
|
||||
sweep: Sweep::Positions,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
impl Sweep {
|
||||
/// Every row the sweep states, each at the site it is recorded under.
|
||||
///
|
||||
/// The one place a case's rows are decided, so the fingerprint a case feeds and the rows its
|
||||
/// `run` states are the same list by construction.
|
||||
fn rows(self) -> Vec<(String, PassSpec)> {
|
||||
let base = crate::pass_descriptors::BASE;
|
||||
match self {
|
||||
Sweep::Whole(shape) => {
|
||||
let mut spec = PassSpec::new(shape, Reads::Whole);
|
||||
if shape.sets() || shape == Shape::Assigned {
|
||||
spec = spec
|
||||
.with_numbers(STATED_NUMBERS)
|
||||
.with_positions(&STATED_POSITIONS);
|
||||
}
|
||||
vec![(FACTS.to_owned(), spec)]
|
||||
}
|
||||
Sweep::Actions => action_rows()
|
||||
.into_iter()
|
||||
.map(|row| {
|
||||
(
|
||||
format!("load-{}-store-{}", row.actions.load, row.actions.store),
|
||||
PassSpec::new(Shape::Defaults, Reads::Attachments).at(row),
|
||||
)
|
||||
})
|
||||
.collect(),
|
||||
Sweep::Filters => filter_rows()
|
||||
.into_iter()
|
||||
.map(|row| {
|
||||
(
|
||||
format!(
|
||||
"depth-{}-stencil-{}",
|
||||
row.filters.depth, row.filters.stencil
|
||||
),
|
||||
PassSpec::new(Shape::Defaults, Reads::Attachments).at(row),
|
||||
)
|
||||
})
|
||||
.collect(),
|
||||
Sweep::Indices => INDEX_VALUES
|
||||
.iter()
|
||||
.map(|value| {
|
||||
(
|
||||
format!("index-{value:#x}"),
|
||||
PassSpec::new(Shape::Defaults, Reads::Attachments)
|
||||
.at(base.with_indices(*value)),
|
||||
)
|
||||
})
|
||||
.collect(),
|
||||
Sweep::ClearColors => CLEAR_COLORS
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(at, clear)| {
|
||||
(
|
||||
format!("color-{at}"),
|
||||
PassSpec::new(Shape::Defaults, Reads::ClearColor)
|
||||
.at(base.with_clear_color(*clear)),
|
||||
)
|
||||
})
|
||||
.collect(),
|
||||
Sweep::ClearDepths => CLEAR_DEPTHS
|
||||
.iter()
|
||||
.map(|clear| {
|
||||
(
|
||||
// The bits and not the value: a NaN and a negative NaN print alike, and
|
||||
// two sites of one name would be two rows the comparison cannot tell
|
||||
// apart.
|
||||
format!("depth-{:#018x}", clear.to_bits()),
|
||||
PassSpec::new(Shape::Defaults, Reads::ClearDepth)
|
||||
.at(base.with_clear_depth(*clear)),
|
||||
)
|
||||
})
|
||||
.collect(),
|
||||
Sweep::ClearStencils => clear_stencils()
|
||||
.into_iter()
|
||||
.map(|clear| {
|
||||
(
|
||||
format!("stencil-{clear}"),
|
||||
PassSpec::new(Shape::Defaults, Reads::ClearStencil)
|
||||
.at(base.with_clear_stencil(clear)),
|
||||
)
|
||||
})
|
||||
.collect(),
|
||||
Sweep::Numbers => NUMBER_SWEEPS
|
||||
.iter()
|
||||
.flat_map(|(field, values)| {
|
||||
values.iter().map(move |value| {
|
||||
// Every other number stays at the stated table's, so each row holds one
|
||||
// number away from eight others and a side answering one of them out of
|
||||
// another's field reads wrong.
|
||||
let mut numbers = STATED_NUMBERS;
|
||||
numbers.0[*field] = *value;
|
||||
(
|
||||
format!("number-{field}-{value}"),
|
||||
PassSpec::new(Shape::Defaults, Reads::Numbers).with_numbers(numbers),
|
||||
)
|
||||
})
|
||||
})
|
||||
.collect(),
|
||||
Sweep::Positions => POSITION_ROWS
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(at, positions)| {
|
||||
(
|
||||
format!("positions-{at}"),
|
||||
PassSpec::new(Shape::Defaults, Reads::Positions).with_positions(positions),
|
||||
)
|
||||
})
|
||||
.collect(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Case for PassDescriptorCase {
|
||||
fn name(&self) -> &'static str {
|
||||
self.name
|
||||
}
|
||||
|
||||
fn metal_source(&self) -> MetalSource {
|
||||
MetalSource::Run
|
||||
}
|
||||
|
||||
fn inputs(&self) -> Result<Vec<Input>, String> {
|
||||
// Every row the case states, in order, each by its site and its whole stated table: a row
|
||||
// that moves, is added or is dropped is a different observation.
|
||||
let mut words = Vec::new();
|
||||
for (at, spec) in self.sweep.rows() {
|
||||
words.extend(at.as_bytes());
|
||||
words.push(0);
|
||||
words.extend(spec.words());
|
||||
}
|
||||
Ok(vec![Input::bytes("rows", &words)])
|
||||
}
|
||||
|
||||
fn run(&self, side: &mut dyn Side, sites: &mut Sites) -> Result<(), Abort> {
|
||||
for (at, spec) in self.sweep.rows() {
|
||||
match side.pass_descriptor_facts(&spec) {
|
||||
Ok(facts) => sites.push(facts.node(at)),
|
||||
// A row the side refused is recorded at its own site and the sweep goes on: the
|
||||
// other rows' answers stay readable, and a refusal where Metal answered compares
|
||||
// as a refusal at that one row.
|
||||
Err(failure) => sites.push(Node::leaf(at, Observed::value(failure.recorded()))),
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
/// The properties the sweeps' arguments rest on: that the stated table is apart in every field, that
|
||||
/// the defaults shape provably cannot catch a crossing, and that each sweep covers the space its
|
||||
/// prose claims.
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::pass_descriptors::{
|
||||
stated_actions, stated_clear_color, stated_index, DEPTH_FILTERS, INDEX_FIELDS,
|
||||
LOAD_ACTIONS, STATED_ATTACHMENTS, STENCIL_FILTERS, STORE_ACTIONS, STORE_OPTIONS,
|
||||
};
|
||||
use std::collections::BTreeSet;
|
||||
|
||||
/// Every one of the sixty index fields the set shape states holds a different number, so a side
|
||||
/// answering one of them out of another field — of its own attachment or of another — reads
|
||||
/// wrong.
|
||||
#[test]
|
||||
fn the_stated_index_fields_are_all_different() {
|
||||
let mut seen: BTreeSet<u64> = BTreeSet::new();
|
||||
let mut count = 0;
|
||||
for at in 0..STATED_ATTACHMENTS {
|
||||
for field in 0..INDEX_FIELDS {
|
||||
seen.insert(stated_index(at, field));
|
||||
count += 1;
|
||||
}
|
||||
}
|
||||
assert_eq!(count, 60, "ten attachments of six index fields");
|
||||
assert_eq!(seen.len(), count, "two stated index fields hold one number");
|
||||
}
|
||||
|
||||
/// No two attachments the set shape states hold one (load, store) pair, so an attachment
|
||||
/// answered out of another attachment's fields reads wrong.
|
||||
#[test]
|
||||
fn no_two_stated_attachments_share_an_action_pair() {
|
||||
let pairs: BTreeSet<(u64, u64)> = (0..STATED_ATTACHMENTS)
|
||||
.map(|at| {
|
||||
let actions = stated_actions(at);
|
||||
(actions.load, actions.store)
|
||||
})
|
||||
.collect();
|
||||
assert_eq!(pairs.len(), STATED_ATTACHMENTS as usize);
|
||||
}
|
||||
|
||||
/// Every channel of every clear colour the set shape states is a different number.
|
||||
#[test]
|
||||
fn the_stated_clear_colors_are_all_different() {
|
||||
let channels: BTreeSet<u64> = (0..STATED_ATTACHMENTS)
|
||||
.flat_map(stated_clear_color)
|
||||
.map(f64::to_bits)
|
||||
.collect();
|
||||
assert_eq!(channels.len(), STATED_ATTACHMENTS as usize * 4);
|
||||
}
|
||||
|
||||
/// The defaults shape **cannot** catch a crossing among the index fields, and this is what says
|
||||
/// so: Metal's default for all six is one value, so the shape that measures the defaults is the
|
||||
/// wrong shape to measure field identity, and the set shape above is the right one.
|
||||
#[test]
|
||||
fn the_defaults_shape_cannot_catch_a_crossed_index_getter() {
|
||||
let base = crate::pass_descriptors::BASE;
|
||||
let fields: BTreeSet<u64> = base.indices.0.into_iter().collect();
|
||||
assert_eq!(
|
||||
fields.len(),
|
||||
1,
|
||||
"a default attachment's six index fields differ, so the claim in the module's prose \
|
||||
is wrong"
|
||||
);
|
||||
}
|
||||
|
||||
/// The action sweep compares the **whole** 3 x 6 x 2 product: each row states colour 0 at its
|
||||
/// own triple and the depth attachment one place on in all three spaces, so the eighteen rows
|
||||
/// hold all thirty-six.
|
||||
#[test]
|
||||
fn the_action_sweep_is_exhaustive() {
|
||||
let mut seen: BTreeSet<(u64, u64, u64)> = BTreeSet::new();
|
||||
for row in action_rows() {
|
||||
for shift in [0, 1, 2] {
|
||||
let actions = row.rotated(shift).actions;
|
||||
seen.insert((actions.load, actions.store, actions.options));
|
||||
}
|
||||
}
|
||||
let whole = (LOAD_ACTIONS * STORE_ACTIONS * STORE_OPTIONS) as usize;
|
||||
assert_eq!(seen.len(), whole, "the action sweep misses a triple");
|
||||
}
|
||||
|
||||
/// No row of the action sweep gives two attachments one value of any of the three axes, so a
|
||||
/// crossing between attachment kinds fails every row.
|
||||
#[test]
|
||||
fn no_action_row_repeats_a_value_across_the_attachments() {
|
||||
for row in action_rows() {
|
||||
let stated: Vec<_> = [0, 1, 2]
|
||||
.into_iter()
|
||||
.map(|shift| row.rotated(shift).actions)
|
||||
.collect();
|
||||
for (one, two) in [(0, 1), (0, 2), (1, 2)] {
|
||||
assert_ne!(stated[one].load, stated[two].load);
|
||||
assert_ne!(stated[one].store, stated[two].store);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Which rows of the action sweep cannot catch a load action answered out of the store action's
|
||||
/// field: exactly the three whose two ordinals are equal. Named rather than left implicit,
|
||||
/// because a row that cannot catch a crossing is a row whose pass means less.
|
||||
#[test]
|
||||
fn three_action_rows_cannot_catch_a_load_crossed_with_a_store() {
|
||||
let blind = action_rows()
|
||||
.into_iter()
|
||||
.filter(|row| row.actions.load == row.actions.store)
|
||||
.count();
|
||||
assert_eq!(blind, LOAD_ACTIONS as usize);
|
||||
}
|
||||
|
||||
/// The filter sweep compares every pair of the two resolve filters.
|
||||
#[test]
|
||||
fn the_filter_sweep_is_exhaustive() {
|
||||
let depth: BTreeSet<u64> = filter_rows()
|
||||
.iter()
|
||||
.map(|row| row.rotated(1).filters.depth)
|
||||
.collect();
|
||||
let stencil: BTreeSet<u64> = filter_rows()
|
||||
.iter()
|
||||
.map(|row| row.rotated(2).filters.stencil)
|
||||
.collect();
|
||||
assert_eq!(depth.len(), DEPTH_FILTERS as usize);
|
||||
assert_eq!(stencil.len(), STENCIL_FILTERS as usize);
|
||||
assert_eq!(
|
||||
filter_rows().len(),
|
||||
(DEPTH_FILTERS * STENCIL_FILTERS) as usize
|
||||
);
|
||||
}
|
||||
|
||||
/// The stencil clear sweep is exhaustive over the byte, which is the claim its prose makes.
|
||||
#[test]
|
||||
fn the_stencil_clear_sweep_covers_every_byte() {
|
||||
let swept: BTreeSet<u32> = clear_stencils().into_iter().collect();
|
||||
for byte in 0..=255u32 {
|
||||
assert!(
|
||||
swept.contains(&byte),
|
||||
"stencil clear {byte} is never stated"
|
||||
);
|
||||
}
|
||||
assert_eq!(swept.len(), clear_stencils().len(), "a row is stated twice");
|
||||
}
|
||||
|
||||
/// Every clear the sweeps state is a different bit pattern, so no two rows of one sweep are one
|
||||
/// observation under two names.
|
||||
#[test]
|
||||
fn the_swept_clears_are_all_distinct() {
|
||||
let depths: BTreeSet<u64> = CLEAR_DEPTHS.iter().map(|clear| clear.to_bits()).collect();
|
||||
assert_eq!(depths.len(), CLEAR_DEPTHS.len());
|
||||
let colors: BTreeSet<[u64; 4]> = CLEAR_COLORS
|
||||
.iter()
|
||||
.map(|clear| std::array::from_fn(|at| clear[at].to_bits()))
|
||||
.collect();
|
||||
assert_eq!(colors.len(), CLEAR_COLORS.len());
|
||||
}
|
||||
|
||||
/// Which rows of the clear-colour sweep cannot catch a channel answered out of another
|
||||
/// channel's field: exactly the three whose channels are not all different, which are Metal's
|
||||
/// own default and the two unit corners. They are in the sweep because they are the values a
|
||||
/// program is likeliest to state, and the other three rows are what catches a crossed channel.
|
||||
#[test]
|
||||
fn three_clear_color_rows_cannot_catch_a_crossed_channel() {
|
||||
let blind = CLEAR_COLORS
|
||||
.iter()
|
||||
.filter(|clear| {
|
||||
clear
|
||||
.iter()
|
||||
.map(|value| value.to_bits())
|
||||
.collect::<BTreeSet<u64>>()
|
||||
.len()
|
||||
< 4
|
||||
})
|
||||
.count();
|
||||
assert_eq!(blind, 3);
|
||||
assert_eq!(CLEAR_COLORS.len() - blind, 3, "no row catches a crossing");
|
||||
}
|
||||
|
||||
/// No value the number sweep states for a field is that field's own number in the stated
|
||||
/// table, so every row of the sweep is its own observation.
|
||||
#[test]
|
||||
fn no_swept_number_is_its_fields_stated_number() {
|
||||
for (field, values) in NUMBER_SWEEPS {
|
||||
assert!(
|
||||
!values.contains(&STATED_NUMBERS.0[field]),
|
||||
"number {field} is swept at the value the stated table already holds"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Every row of every sweep sits at its own site, so no recording holds one name twice.
|
||||
#[test]
|
||||
fn every_row_has_its_own_site() {
|
||||
for case in all() {
|
||||
let rows = case.sweep.rows();
|
||||
let sites: BTreeSet<String> = rows.iter().map(|(at, _)| at.clone()).collect();
|
||||
assert_eq!(sites.len(), rows.len(), "{} repeats a site", case.name);
|
||||
}
|
||||
}
|
||||
|
||||
/// Every row of every sweep states a different table, so two sites of one case are two
|
||||
/// observations rather than one asked twice.
|
||||
#[test]
|
||||
fn every_row_states_its_own_table() {
|
||||
for case in all() {
|
||||
let rows = case.sweep.rows();
|
||||
let tables: BTreeSet<Vec<u8>> = rows.iter().map(|(_, spec)| spec.words()).collect();
|
||||
assert_eq!(
|
||||
tables.len(),
|
||||
rows.len(),
|
||||
"{} states a table twice",
|
||||
case.name
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Each case's rows are the list its fingerprint covers, so a sweep cannot grow a row the
|
||||
/// inputs do not name.
|
||||
#[test]
|
||||
fn the_numbers_sweep_states_every_field() {
|
||||
let fields: BTreeSet<usize> = NUMBER_SWEEPS.iter().map(|(field, _)| *field).collect();
|
||||
assert_eq!(fields.len(), STATED_NUMBERS.0.len());
|
||||
for (field, values) in NUMBER_SWEEPS {
|
||||
assert!(values.contains(&0), "field {field} is never stated at 0");
|
||||
assert!(
|
||||
values.len() >= 4,
|
||||
"field {field} is swept at fewer than four values"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// The position sweep states no row Metal asserts on: every coordinate inside `[0, 1)`, and no
|
||||
/// row longer than the sample counts an Apple GPU takes custom positions at.
|
||||
#[test]
|
||||
fn no_position_row_is_one_metal_asserts_on() {
|
||||
for positions in POSITION_ROWS {
|
||||
assert!(
|
||||
matches!(positions.len(), 0 | 2 | 4),
|
||||
"a row of {} positions is not a sample count Metal takes",
|
||||
positions.len()
|
||||
);
|
||||
for (x, y) in positions {
|
||||
assert!(
|
||||
(0.0..1.0).contains(x),
|
||||
"sample position x {x} is outside [0, 1)"
|
||||
);
|
||||
assert!(
|
||||
(0.0..1.0).contains(y),
|
||||
"sample position y {y} is outside [0, 1)"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -68,6 +68,7 @@ pub mod known_gaps;
|
||||
pub mod library_facts;
|
||||
pub mod measured;
|
||||
pub mod mesh_descriptors;
|
||||
pub mod pass_descriptors;
|
||||
pub mod pipeline_facts;
|
||||
pub mod queue_slots;
|
||||
pub mod record;
|
||||
|
||||
@@ -42,6 +42,10 @@ use crate::mesh_descriptors::{
|
||||
DescriptorSpec as MeshDescriptorSpec, MeshDescriptorFacts, SuppliedLists as MeshSuppliedLists,
|
||||
AWAY as MESH_AWAY,
|
||||
};
|
||||
use crate::pass_descriptors::{
|
||||
AttachmentFacts, Indices, Numbers, PassDescriptorFacts, PassSpec, Reads, Row, Shape,
|
||||
ASSIGNED_COLOR, DEPTH_AT, MUTATED_AFTER, READ_COLORS as PASS_COLORS, STENCIL_AT, SWEPT_COLOR,
|
||||
};
|
||||
use crate::pipeline_facts::{ComputeStateFacts, ComputeStateSpec, RenderStateFacts};
|
||||
use crate::queue_slots::QueueSlots;
|
||||
use crate::render::{
|
||||
@@ -91,15 +95,17 @@ use objc2_metal::{
|
||||
MTLPipelineBufferDescriptorArray, MTLPipelineOption, MTLPixelFormat, MTLPointerType,
|
||||
MTLPrimitiveTopologyClass, MTLPrimitiveType, MTLRasterizationRateLayerDescriptor,
|
||||
MTLRasterizationRateMap, MTLRasterizationRateMapDescriptor, MTLRegion, MTLRenderCommandEncoder,
|
||||
MTLRenderPassDescriptor, MTLRenderPipelineColorAttachmentDescriptor,
|
||||
MTLRenderPipelineColorAttachmentDescriptorArray, MTLRenderPipelineDescriptor,
|
||||
MTLRenderPipelineReflection, MTLRenderPipelineState, MTLRenderStages, MTLResource,
|
||||
MTLResourceOptions, MTLResourceUsage, MTLSamplePosition, MTLSamplerAddressMode,
|
||||
MTLSamplerBorderColor, MTLSamplerDescriptor, MTLSamplerMinMagFilter, MTLSamplerState,
|
||||
MTLScissorRect, MTLSharedEvent, MTLSharedEventHandle, MTLSize, MTLSparsePageSize,
|
||||
MTLSparseTextureRegionAlignmentMode, MTLStageInputOutputDescriptor, MTLStencilDescriptor,
|
||||
MTLStencilOperation, MTLStepFunction, MTLStorageMode, MTLStoreAction, MTLStoreActionOptions,
|
||||
MTLStructMember, MTLStructType, MTLTessellationControlPointIndexType,
|
||||
MTLRenderPassAttachmentDescriptor, MTLRenderPassColorAttachmentDescriptor,
|
||||
MTLRenderPassColorAttachmentDescriptorArray, MTLRenderPassDepthAttachmentDescriptor,
|
||||
MTLRenderPassDescriptor, MTLRenderPassStencilAttachmentDescriptor,
|
||||
MTLRenderPipelineColorAttachmentDescriptor, MTLRenderPipelineColorAttachmentDescriptorArray,
|
||||
MTLRenderPipelineDescriptor, MTLRenderPipelineReflection, MTLRenderPipelineState,
|
||||
MTLRenderStages, MTLResource, MTLResourceOptions, MTLResourceUsage, MTLSamplePosition,
|
||||
MTLSamplerAddressMode, MTLSamplerBorderColor, MTLSamplerDescriptor, MTLSamplerMinMagFilter,
|
||||
MTLSamplerState, MTLScissorRect, MTLSharedEvent, MTLSharedEventHandle, MTLSize,
|
||||
MTLSparsePageSize, MTLSparseTextureRegionAlignmentMode, MTLStageInputOutputDescriptor,
|
||||
MTLStencilDescriptor, MTLStencilOperation, MTLStepFunction, MTLStorageMode, MTLStoreAction,
|
||||
MTLStoreActionOptions, MTLStructMember, MTLStructType, MTLTessellationControlPointIndexType,
|
||||
MTLTessellationFactorFormat, MTLTessellationFactorStepFunction, MTLTessellationPartitionMode,
|
||||
MTLTexture, MTLTextureBinding, MTLTextureDescriptor, MTLTextureReferenceType,
|
||||
MTLTextureSwizzle, MTLTextureSwizzleChannels, MTLTextureType, MTLTextureUsage,
|
||||
@@ -2822,6 +2828,104 @@ impl Side for MetalSide {
|
||||
Ok(read_mesh_descriptor(&descriptor, !spec.shape.resets()))
|
||||
}
|
||||
|
||||
fn pass_descriptor_facts(&mut self, spec: &PassSpec) -> Answer<PassDescriptorFacts> {
|
||||
let descriptor: Retained<MTLRenderPassDescriptor> =
|
||||
MTLRenderPassDescriptor::renderPassDescriptor();
|
||||
if spec.shape.sets() {
|
||||
for index in 0..PASS_COLORS {
|
||||
let color: Retained<MTLRenderPassColorAttachmentDescriptor> =
|
||||
pass_color(&descriptor, index);
|
||||
let stated = crate::pass_descriptors::stated_row(index);
|
||||
state_pass_attachment(&color, &stated);
|
||||
color.setClearColor(clear_color_of(&stated));
|
||||
}
|
||||
let depth: Retained<MTLRenderPassDepthAttachmentDescriptor> =
|
||||
descriptor.depthAttachment();
|
||||
let stated = crate::pass_descriptors::stated_row(DEPTH_AT);
|
||||
state_pass_attachment(&depth, &stated);
|
||||
depth.setClearDepth(stated.clear_depth);
|
||||
depth.setDepthResolveFilter(MTLMultisampleDepthResolveFilter(
|
||||
stated.filters.depth as usize,
|
||||
));
|
||||
let stencil: Retained<MTLRenderPassStencilAttachmentDescriptor> =
|
||||
descriptor.stencilAttachment();
|
||||
let stated = crate::pass_descriptors::stated_row(STENCIL_AT);
|
||||
state_pass_attachment(&stencil, &stated);
|
||||
stencil.setClearStencil(stated.clear_stencil);
|
||||
stencil.setStencilResolveFilter(MTLMultisampleStencilResolveFilter(
|
||||
stated.filters.stencil as usize,
|
||||
));
|
||||
}
|
||||
if spec.shape == Shape::Assigned {
|
||||
assign_pass_attachments(&descriptor);
|
||||
}
|
||||
if let Some(row) = spec.row {
|
||||
let shifted = |shift: u64| match spec.reads.rotates() {
|
||||
true => row.rotated(shift),
|
||||
false => row,
|
||||
};
|
||||
let color: Retained<MTLRenderPassColorAttachmentDescriptor> =
|
||||
pass_color(&descriptor, SWEPT_COLOR);
|
||||
let stated = shifted(0);
|
||||
state_pass_attachment(&color, &stated);
|
||||
color.setClearColor(clear_color_of(&stated));
|
||||
let depth: Retained<MTLRenderPassDepthAttachmentDescriptor> =
|
||||
descriptor.depthAttachment();
|
||||
let stated = shifted(1);
|
||||
state_pass_attachment(&depth, &stated);
|
||||
depth.setClearDepth(stated.clear_depth);
|
||||
depth.setDepthResolveFilter(MTLMultisampleDepthResolveFilter(
|
||||
stated.filters.depth as usize,
|
||||
));
|
||||
let stencil: Retained<MTLRenderPassStencilAttachmentDescriptor> =
|
||||
descriptor.stencilAttachment();
|
||||
let stated = shifted(2);
|
||||
state_pass_attachment(&stencil, &stated);
|
||||
stencil.setClearStencil(stated.clear_stencil);
|
||||
stencil.setStencilResolveFilter(MTLMultisampleStencilResolveFilter(
|
||||
stated.filters.stencil as usize,
|
||||
));
|
||||
}
|
||||
if let Some(numbers) = spec.numbers {
|
||||
descriptor.setRenderTargetArrayLength(numbers.0[0] as usize);
|
||||
descriptor.setRenderTargetWidth(numbers.0[1] as usize);
|
||||
descriptor.setRenderTargetHeight(numbers.0[2] as usize);
|
||||
descriptor.setDefaultRasterSampleCount(numbers.0[3] as usize);
|
||||
descriptor.setTileWidth(numbers.0[4] as usize);
|
||||
descriptor.setTileHeight(numbers.0[5] as usize);
|
||||
descriptor.setImageblockSampleLength(numbers.0[6] as usize);
|
||||
descriptor.setThreadgroupMemoryLength(numbers.0[7] as usize);
|
||||
}
|
||||
if let Some(stated) = spec.positions {
|
||||
let positions: Vec<metal2vulkan_runtime::SamplePosition> = stated
|
||||
.iter()
|
||||
.map(|(x, y)| metal2vulkan_runtime::SamplePosition::new(*x, *y))
|
||||
.collect();
|
||||
// The suite's one guard for the shapes Metal asserts on, which every family that sets
|
||||
// sample positions goes through. The count is held against the row's own length: this
|
||||
// descriptor has no attachment, so Metal counts the positions against nothing until an
|
||||
// encoder opens, and the coordinate rule is the one the setter itself asserts on.
|
||||
if let Some(refusal) =
|
||||
crate::render::forbidden_positions(&positions, positions.len() as u32)
|
||||
{
|
||||
return Err(refusal);
|
||||
}
|
||||
let held: Vec<MTLSamplePosition> = stated
|
||||
.iter()
|
||||
.map(|(x, y)| MTLSamplePosition { x: *x, y: *y })
|
||||
.collect();
|
||||
// SAFETY: the pointer is to `held.len()` positions that live for the call, and the
|
||||
// guard above has just held the count and every coordinate.
|
||||
unsafe {
|
||||
descriptor.setSamplePositions_count(held.as_ptr(), held.len());
|
||||
}
|
||||
}
|
||||
if spec.shape == Shape::Cleared {
|
||||
clear_pass_attachments(&descriptor);
|
||||
}
|
||||
Ok(read_pass_descriptor(&descriptor, spec.reads))
|
||||
}
|
||||
|
||||
fn function_facts(
|
||||
&mut self,
|
||||
library: Handle,
|
||||
@@ -7364,3 +7468,221 @@ pub(crate) fn status_word(status: MTLCommandBufferStatus) -> &'static str {
|
||||
_ => "Unknown",
|
||||
}
|
||||
}
|
||||
|
||||
/// State every field of one attachment descriptor from `row`: the three actions and the six index
|
||||
/// fields, which `MTLRenderPassAttachmentDescriptor` declares for all three kinds.
|
||||
///
|
||||
/// The parameter is the superclass the kinds share, so the calls here are the superclass's items
|
||||
/// once rather than three times over its subclasses.
|
||||
fn state_pass_attachment(attachment: &MTLRenderPassAttachmentDescriptor, row: &Row) {
|
||||
attachment.setLoadAction(MTLLoadAction(row.actions.load as usize));
|
||||
attachment.setStoreAction(MTLStoreAction(row.actions.store as usize));
|
||||
attachment.setStoreActionOptions(MTLStoreActionOptions::from_bits_retain(
|
||||
row.actions.options as usize,
|
||||
));
|
||||
attachment.setLevel(row.indices.0[0] as usize);
|
||||
attachment.setSlice(row.indices.0[1] as usize);
|
||||
attachment.setDepthPlane(row.indices.0[2] as usize);
|
||||
attachment.setResolveLevel(row.indices.0[3] as usize);
|
||||
attachment.setResolveSlice(row.indices.0[4] as usize);
|
||||
attachment.setResolveDepthPlane(row.indices.0[5] as usize);
|
||||
}
|
||||
|
||||
/// What one attachment descriptor answers, through the superclass all three kinds share.
|
||||
fn read_pass_attachment(attachment: &MTLRenderPassAttachmentDescriptor) -> AttachmentFacts {
|
||||
// Each getter's answer is bound to a local of its declared type, as the other facts walks do:
|
||||
// the coverage derivation types a receiver from what bound it.
|
||||
let texture: Option<Retained<ProtocolObject<dyn MTLTexture>>> = attachment.texture();
|
||||
let resolve: Option<Retained<ProtocolObject<dyn MTLTexture>>> = attachment.resolveTexture();
|
||||
AttachmentFacts {
|
||||
has_texture: texture.is_some(),
|
||||
has_resolve_texture: resolve.is_some(),
|
||||
indices: Indices([
|
||||
attachment.level() as u64,
|
||||
attachment.slice() as u64,
|
||||
attachment.depthPlane() as u64,
|
||||
attachment.resolveLevel() as u64,
|
||||
attachment.resolveSlice() as u64,
|
||||
attachment.resolveDepthPlane() as u64,
|
||||
]),
|
||||
actions: crate::pass_descriptors::Actions {
|
||||
load: attachment.loadAction().0 as u64,
|
||||
store: attachment.storeAction().0 as u64,
|
||||
options: attachment.storeActionOptions().bits() as u64,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/// The colour attachment at `index` of `descriptor`'s array.
|
||||
fn pass_color(
|
||||
descriptor: &MTLRenderPassDescriptor,
|
||||
index: u32,
|
||||
) -> Retained<MTLRenderPassColorAttachmentDescriptor> {
|
||||
let array: Retained<MTLRenderPassColorAttachmentDescriptorArray> =
|
||||
descriptor.colorAttachments();
|
||||
// SAFETY: `index` is below `READ_COLORS`, the eight attachments Metal's array holds, which
|
||||
// every caller here keeps it to.
|
||||
unsafe { array.objectAtIndexedSubscript(index as usize) }
|
||||
}
|
||||
|
||||
/// Metal's number of sample positions, and the positions themselves.
|
||||
///
|
||||
/// `getSamplePositions:count:` answers the count for a count of 0 and writes the array for a count
|
||||
/// long enough, which is the only way to ask Metal how many the descriptor holds.
|
||||
fn pass_positions(descriptor: &MTLRenderPassDescriptor) -> (u64, Vec<(u32, u32)>) {
|
||||
// SAFETY: a count of 0 with a null pointer is the documented way to ask for the count alone,
|
||||
// and nothing is written.
|
||||
let count = unsafe { descriptor.getSamplePositions_count(std::ptr::null_mut(), 0) };
|
||||
let mut held: Vec<MTLSamplePosition> = vec![MTLSamplePosition { x: 0.0, y: 0.0 }; count];
|
||||
if count > 0 {
|
||||
// SAFETY: the pointer is to `count` positions that live for the call, and the count is the
|
||||
// one Metal has just answered.
|
||||
unsafe {
|
||||
descriptor.getSamplePositions_count(held.as_mut_ptr(), count);
|
||||
}
|
||||
}
|
||||
(
|
||||
count as u64,
|
||||
held.iter()
|
||||
.map(|position| (position.x.to_bits(), position.y.to_bits()))
|
||||
.collect(),
|
||||
)
|
||||
}
|
||||
|
||||
/// The pass's own eight numbers, in [`Numbers`]' order.
|
||||
fn pass_numbers(descriptor: &MTLRenderPassDescriptor) -> Numbers {
|
||||
Numbers([
|
||||
descriptor.renderTargetArrayLength() as u64,
|
||||
descriptor.renderTargetWidth() as u64,
|
||||
descriptor.renderTargetHeight() as u64,
|
||||
descriptor.defaultRasterSampleCount() as u64,
|
||||
descriptor.tileWidth() as u64,
|
||||
descriptor.tileHeight() as u64,
|
||||
descriptor.imageblockSampleLength() as u64,
|
||||
descriptor.threadgroupMemoryLength() as u64,
|
||||
])
|
||||
}
|
||||
|
||||
/// What `descriptor` answers under `reads`.
|
||||
fn read_pass_descriptor(descriptor: &MTLRenderPassDescriptor, reads: Reads) -> PassDescriptorFacts {
|
||||
let mut facts = PassDescriptorFacts::empty();
|
||||
for index in 0..reads.colors() {
|
||||
let color: Retained<MTLRenderPassColorAttachmentDescriptor> = pass_color(descriptor, index);
|
||||
let clear: MTLClearColor = color.clearColor();
|
||||
if matches!(reads, Reads::Whole | Reads::Attachments) {
|
||||
facts.colors.push(read_pass_attachment(&color));
|
||||
}
|
||||
facts.color_clears.push([
|
||||
clear.red.to_bits(),
|
||||
clear.green.to_bits(),
|
||||
clear.blue.to_bits(),
|
||||
clear.alpha.to_bits(),
|
||||
]);
|
||||
}
|
||||
if matches!(reads, Reads::Whole | Reads::Attachments | Reads::ClearDepth) {
|
||||
let depth: Retained<MTLRenderPassDepthAttachmentDescriptor> = descriptor.depthAttachment();
|
||||
facts.clear_depth = Some(depth.clearDepth().to_bits());
|
||||
if reads != Reads::ClearDepth {
|
||||
facts.depth = Some(read_pass_attachment(&depth));
|
||||
facts.depth_resolve_filter = Some(depth.depthResolveFilter().0 as u64);
|
||||
}
|
||||
}
|
||||
if matches!(
|
||||
reads,
|
||||
Reads::Whole | Reads::Attachments | Reads::ClearStencil
|
||||
) {
|
||||
let stencil: Retained<MTLRenderPassStencilAttachmentDescriptor> =
|
||||
descriptor.stencilAttachment();
|
||||
facts.clear_stencil = Some(stencil.clearStencil());
|
||||
if reads != Reads::ClearStencil {
|
||||
facts.stencil = Some(read_pass_attachment(&stencil));
|
||||
facts.stencil_resolve_filter = Some(stencil.stencilResolveFilter().0 as u64);
|
||||
}
|
||||
}
|
||||
if matches!(reads, Reads::Whole | Reads::Numbers) {
|
||||
facts.numbers = Some(pass_numbers(descriptor));
|
||||
let visibility: Option<Retained<ProtocolObject<dyn MTLBuffer>>> =
|
||||
descriptor.visibilityResultBuffer();
|
||||
let map: Option<Retained<ProtocolObject<dyn MTLRasterizationRateMap>>> =
|
||||
descriptor.rasterizationRateMap();
|
||||
facts.has_visibility_buffer = Some(visibility.is_some());
|
||||
facts.has_rate_map = Some(map.is_some());
|
||||
}
|
||||
if matches!(reads, Reads::Whole | Reads::Positions) {
|
||||
let (count, positions) = pass_positions(descriptor);
|
||||
facts.position_count = Some(count);
|
||||
facts.positions = Some(positions);
|
||||
}
|
||||
facts
|
||||
}
|
||||
|
||||
/// `row`'s clear colour as Metal's structure.
|
||||
fn clear_color_of(row: &Row) -> MTLClearColor {
|
||||
MTLClearColor {
|
||||
red: row.clear_color[0],
|
||||
green: row.clear_color[1],
|
||||
blue: row.clear_color[2],
|
||||
alpha: row.clear_color[3],
|
||||
}
|
||||
}
|
||||
|
||||
/// [`Shape::Assigned`]: build each attachment apart from the pass, state it, assign it in, and
|
||||
/// then mutate it **through the object that was assigned**.
|
||||
///
|
||||
/// What the pass answers afterwards says whether the assignment copied the descriptor. The
|
||||
/// mutation states the values of another attachment of the stated table, so the two answers are
|
||||
/// values the record already holds elsewhere and a reader can tell which one came back.
|
||||
fn assign_pass_attachments(descriptor: &MTLRenderPassDescriptor) {
|
||||
let array: Retained<MTLRenderPassColorAttachmentDescriptorArray> =
|
||||
descriptor.colorAttachments();
|
||||
let color: Retained<MTLRenderPassColorAttachmentDescriptor> =
|
||||
MTLRenderPassColorAttachmentDescriptor::new();
|
||||
let assigned = crate::pass_descriptors::stated_row(ASSIGNED_COLOR);
|
||||
state_pass_attachment(&color, &assigned);
|
||||
color.setClearColor(clear_color_of(&assigned));
|
||||
// SAFETY: the slot is below the eight attachments the array holds.
|
||||
unsafe { array.setObject_atIndexedSubscript(Some(&color), ASSIGNED_COLOR as usize) };
|
||||
let after = crate::pass_descriptors::stated_row(MUTATED_AFTER);
|
||||
state_pass_attachment(&color, &after);
|
||||
color.setClearColor(clear_color_of(&after));
|
||||
|
||||
let depth: Retained<MTLRenderPassDepthAttachmentDescriptor> =
|
||||
MTLRenderPassDepthAttachmentDescriptor::new();
|
||||
let assigned = crate::pass_descriptors::stated_row(DEPTH_AT);
|
||||
state_pass_attachment(&depth, &assigned);
|
||||
depth.setClearDepth(assigned.clear_depth);
|
||||
depth.setDepthResolveFilter(MTLMultisampleDepthResolveFilter(
|
||||
assigned.filters.depth as usize,
|
||||
));
|
||||
descriptor.setDepthAttachment(Some(&depth));
|
||||
state_pass_attachment(&depth, &after);
|
||||
depth.setClearDepth(crate::pass_descriptors::BASE.clear_depth);
|
||||
|
||||
let stencil: Retained<MTLRenderPassStencilAttachmentDescriptor> =
|
||||
MTLRenderPassStencilAttachmentDescriptor::new();
|
||||
let assigned = crate::pass_descriptors::stated_row(STENCIL_AT);
|
||||
state_pass_attachment(&stencil, &assigned);
|
||||
stencil.setClearStencil(assigned.clear_stencil);
|
||||
stencil.setStencilResolveFilter(MTLMultisampleStencilResolveFilter(
|
||||
assigned.filters.stencil as usize,
|
||||
));
|
||||
descriptor.setStencilAttachment(Some(&stencil));
|
||||
state_pass_attachment(&stencil, &after);
|
||||
stencil.setClearStencil(crate::pass_descriptors::BASE.clear_stencil);
|
||||
}
|
||||
|
||||
/// [`Shape::Cleared`]: set every attachment of the pass to nil.
|
||||
///
|
||||
/// `objc2-metal` 0.3.2 declares the three getters non-null, so a nil answered here would panic
|
||||
/// rather than compare. That it does not is this shape's measurement: Metal answers a fresh
|
||||
/// descriptor, which the read then records field by field.
|
||||
fn clear_pass_attachments(descriptor: &MTLRenderPassDescriptor) {
|
||||
let array: Retained<MTLRenderPassColorAttachmentDescriptorArray> =
|
||||
descriptor.colorAttachments();
|
||||
for index in 0..PASS_COLORS {
|
||||
// SAFETY: the slot is below the eight attachments the array holds.
|
||||
unsafe { array.setObject_atIndexedSubscript(None, index as usize) };
|
||||
}
|
||||
descriptor.setDepthAttachment(None);
|
||||
descriptor.setStencilAttachment(None);
|
||||
}
|
||||
@@ -0,0 +1,936 @@
|
||||
//! What a **render pass descriptor** answers of itself: `MTLRenderPassDescriptor`, its three
|
||||
//! attachment descriptors and its colour-attachment array, before any encoder exists.
|
||||
//!
|
||||
//! Every render family of the suite hands Metal a pass descriptor and compares what the pass
|
||||
//! *drew*. None of them reads one back, so the descriptor's own surface — Metal's defaults, and
|
||||
//! what each setter then answers — was reached by nothing. The runtime holds those defaults as
|
||||
//! literals in `RenderPassDescriptor::default()` and its three attachments' `Default`
|
||||
//! implementations, with "measured on an Apple M4" beside them in prose and no run in the tree
|
||||
//! behind one. This is the family that holds them to Metal.
|
||||
//!
|
||||
//! # Depth, not one representative each
|
||||
//!
|
||||
//! An attachment descriptor is almost pure option space, and a suite that compares one load action
|
||||
//! and one store action says nothing about the other sixteen pairs. So the shapes here **sweep**:
|
||||
//!
|
||||
//! - every `MTLLoadAction` against every `MTLStoreAction` **against** every
|
||||
//! `MTLStoreActionOptions` — the whole 3 × 6 × 2 product, all 36 triples, in the 18 rows of
|
||||
//! [`action_rows`], because each row states three attachments at three places of the space;
|
||||
//! - every `MTLMultisampleDepthResolveFilter` against every stencil one ([`filter_rows`], all 6);
|
||||
//! - the clear values at their edges: four-channel colours including NaN, the infinities and a
|
||||
//! denormal ([`CLEAR_COLORS`]); every documented depth edge ([`CLEAR_DEPTHS`]); and **every**
|
||||
//! stencil byte, which is a space small enough to be exhaustive, with the words above it
|
||||
//! ([`clear_stencils`]);
|
||||
//! - the level, slice and depth-plane selections at 0, 1, the last index of an eight-slice array,
|
||||
//! the last 32-bit index and the first value past it ([`INDEX_VALUES`]);
|
||||
//! - each of the pass's own eight numbers at 0, 1, its documented limit and the value either side
|
||||
//! of it ([`NUMBER_SWEEPS`]);
|
||||
//! - the sample positions a program sets and takes back off ([`POSITION_ROWS`]).
|
||||
//!
|
||||
//! [`crate::cases::render_pass_descriptors`] says what each case is. The ratio of values compared
|
||||
//! to values the type has is in that module's prose, per parameter.
|
||||
//!
|
||||
//! # What a sweep can catch, and what it provably cannot
|
||||
//!
|
||||
//! A descriptor case reads back what it has just set, so a case whose stated values are equal
|
||||
//! compares nothing: a side answering one getter out of another's field would pass. Each shape
|
||||
//! therefore says which crossing it catches.
|
||||
//!
|
||||
//! - **[`Shape::Set`]** states every field of every attachment at once, each away from its default,
|
||||
//! through [`stated_actions`] and [`stated_index`]. No two attachments share a (load, store)
|
||||
//! pair and no two of the sixty index fields hold one number, so it catches a getter crossed with
|
||||
//! another getter, and an attachment crossed with another attachment. The tests of
|
||||
//! [`crate::cases::render_pass_descriptors`] hold both properties.
|
||||
//! - **[`Shape::Defaults`]** provably cannot catch either: Metal's default for `level`, `slice`,
|
||||
//! `depthPlane`, `resolveLevel`, `resolveSlice` and `resolveDepthPlane` is 0 on every attachment,
|
||||
//! so all sixty fields are one value, and the three attachments' defaults differ only in the load
|
||||
//! and store actions. It is the one shape that can say what a program gets for free, and it is
|
||||
//! the wrong shape to catch a crossing. Its test asserts the defaults are equal, so the claim is
|
||||
//! measured rather than asserted in prose.
|
||||
//! - **A sweep row** gives the three attachment kinds three *different* values of the swept
|
||||
//! parameter — colour 0 takes row `k`, the depth attachment the next row and the stencil
|
||||
//! attachment the one after ([`Row::rotated`]) — so no two of them ever hold one value and a
|
||||
//! crossing between attachment kinds fails every row. Within one attachment a crossing of the
|
||||
//! load action with the store action is caught wherever the two ordinals differ, which is 15 of
|
||||
//! the 18 action rows: `(DontCare, DontCare)`, `(Load, Store)` and `(Clear, MultisampleResolve)`
|
||||
//! are the three rows whose two ordinals are 0, 1 and 2 on both sides, and those three rows
|
||||
//! cannot catch it. The index sweep sets an attachment's six index fields to one value, so it
|
||||
//! cannot catch a crossing among the six at all; that is [`Shape::Set`]'s job, and the two shapes
|
||||
//! are kept apart for it.
|
||||
//! - **A narrow read** ([`Reads`]) cannot catch a crossing with a field it does not read. The
|
||||
//! stencil-clear sweep reads the clear stencil alone, so a side answering it out of the clear
|
||||
//! depth passes all 262 rows; [`Shape::Set`] reads all three clears at once, states them apart,
|
||||
//! and is what catches that.
|
||||
//!
|
||||
//! # What no shape here states, and why
|
||||
//!
|
||||
//! - **An attachment's texture and resolve texture.** A descriptor holds them, and what Metal then
|
||||
//! renders through them is every other render family's subject. The indices are the descriptor's
|
||||
//! own fields and Metal checks none of them until an encoder opens, so a shape that states a
|
||||
//! level of 2^32 on an attachment with no texture is reading the descriptor rather than the
|
||||
//! validation. Each attachment's `texture` and `resolveTexture` is still read, as whether the
|
||||
//! descriptor holds one.
|
||||
//! - **A rasterization rate map and a visibility result buffer**, for the same reason from the
|
||||
//! other end: each is an object whose identity nothing here compares, and
|
||||
//! [`crate::cases::rate_maps`] and [`crate::cases::visibility`] are the families that make one.
|
||||
//! Both getters are read, as whether the descriptor holds one.
|
||||
//! - **A sample position outside `[0, 1)`**, and more positions than the pass has samples: Metal
|
||||
//! documents and asserts on both, and [`crate::render::forbidden_positions`] is the suite's one
|
||||
//! guard for it, which this family's Metal side calls as the render families do.
|
||||
//! - **A store action Metal's own validation stops at an encoder** —
|
||||
//! `CustomSampleDepthStore` on a colour attachment, among others — **is swept here all the
|
||||
//! same**, because the descriptor is not the encoder: no shape of this family makes a command
|
||||
//! buffer, an encoder or a resource, so nothing checks what the descriptor holds and the question
|
||||
//! is only what it answers.
|
||||
//!
|
||||
//! # Why every case of this family is safe
|
||||
//!
|
||||
//! Nothing is allocated, compiled or submitted: a case makes descriptor objects, reads them and
|
||||
//! drops them. No library, no texture, no command buffer, no queue, so no shape can fault the
|
||||
//! device, trip its watchdog or reach a GPU at all. Two hazards are named and avoided: the sample
|
||||
//! positions above, and `objc2-metal` 0.3.2's non-null `depthAttachment`, `stencilAttachment` and
|
||||
//! `objectAtIndexedSubscript:` accessors, which panic rather than answering a nil. [`Shape::Cleared`]
|
||||
//! is the one shape that asks Metal for an attachment after setting nil, and it is safe because
|
||||
//! Metal answers a **fresh descriptor** there rather than a nil — measured on this family's oracle,
|
||||
//! one shape in one process, before the shape was committed.
|
||||
|
||||
use crate::transcript::{FloatWidth, Node, NodeName, Observed, Value};
|
||||
|
||||
/// The colour attachments a whole read covers: all eight of Metal's array, so the last valid index
|
||||
/// is in every record and no bound is a case's choice. `objectAtIndexedSubscript:` past the last
|
||||
/// asserts, which is why the constant is the array's length and not a number somebody picked.
|
||||
pub const READ_COLORS: u32 = 8;
|
||||
|
||||
/// The colour attachments a sweep's row reads: the swept one and two left at Metal's default
|
||||
/// beside it, so a row records what it stated next to what it did not.
|
||||
pub const SWEPT_COLORS: u32 = 3;
|
||||
|
||||
/// The attachment a sweep's row states: colour 0, which is [`SWEPT_COLORS`]' first.
|
||||
pub const SWEPT_COLOR: u32 = 0;
|
||||
|
||||
/// How the attachments are numbered where a stated value is derived from the attachment:
|
||||
/// `0..READ_COLORS` are the colour attachments, then the depth and the stencil attachment.
|
||||
pub const DEPTH_AT: u32 = READ_COLORS;
|
||||
|
||||
/// The stencil attachment's number ([`DEPTH_AT`]).
|
||||
pub const STENCIL_AT: u32 = READ_COLORS + 1;
|
||||
|
||||
/// The attachments a stated table covers: the eight colour attachments, the depth and the stencil.
|
||||
pub const STATED_ATTACHMENTS: u32 = READ_COLORS + 2;
|
||||
|
||||
/// The index fields each attachment has: `level`, `slice`, `depthPlane`, `resolveLevel`,
|
||||
/// `resolveSlice` and `resolveDepthPlane`, in that order.
|
||||
pub const INDEX_FIELDS: u32 = 6;
|
||||
|
||||
/// Which of the shapes a case states.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum Shape {
|
||||
/// A fresh descriptor and nothing else: Metal's default for every field of it.
|
||||
Defaults,
|
||||
/// Every field of every attachment and every number of the pass stated, each away from its
|
||||
/// default and no two alike, read straight back.
|
||||
Set,
|
||||
/// Attachment descriptors built apart from the pass, stated, assigned into it
|
||||
/// (`setObject:atIndexedSubscript:`, `setDepthAttachment:`, `setStencilAttachment:`) and then
|
||||
/// **mutated through the object that was assigned**: what the pass answers says whether the
|
||||
/// assignment copied the descriptor or kept the caller's.
|
||||
Assigned,
|
||||
/// [`Shape::Set`], then every attachment set to nil: what a pass answers for an attachment a
|
||||
/// program has cleared.
|
||||
Cleared,
|
||||
}
|
||||
|
||||
impl Shape {
|
||||
/// The ordinal a case's input fingerprint carries.
|
||||
pub const fn word(self) -> u8 {
|
||||
match self {
|
||||
Shape::Defaults => 0,
|
||||
Shape::Set => 1,
|
||||
Shape::Assigned => 2,
|
||||
Shape::Cleared => 3,
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether the shape states [`stated_actions`] and [`stated_index`] on the pass's own
|
||||
/// attachments before reading.
|
||||
pub const fn sets(self) -> bool {
|
||||
matches!(self, Shape::Set | Shape::Cleared)
|
||||
}
|
||||
}
|
||||
|
||||
/// How much of the descriptor a case reads back.
|
||||
///
|
||||
/// A sweep over one parameter reads that parameter, so its recording holds its own values and a
|
||||
/// row is a row rather than a copy of the whole descriptor. What a narrow read cannot catch is in
|
||||
/// the module's prose.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum Reads {
|
||||
/// All eight colour attachments, the depth and stencil attachments, the pass's own numbers and
|
||||
/// its sample positions.
|
||||
Whole,
|
||||
/// [`SWEPT_COLORS`] colour attachments, the depth and the stencil attachment; no number of the
|
||||
/// pass itself.
|
||||
Attachments,
|
||||
/// Colour [`SWEPT_COLOR`]'s `clearColor`, by its four channels' bits.
|
||||
ClearColor,
|
||||
/// The depth attachment's `clearDepth`, by its bits.
|
||||
ClearDepth,
|
||||
/// The stencil attachment's `clearStencil`.
|
||||
ClearStencil,
|
||||
/// The pass's own numbers.
|
||||
Numbers,
|
||||
/// The pass's sample positions, and how many `getSamplePositions:count:` answers.
|
||||
Positions,
|
||||
}
|
||||
|
||||
impl Reads {
|
||||
/// The ordinal a case's input fingerprint carries.
|
||||
pub const fn word(self) -> u8 {
|
||||
match self {
|
||||
Reads::Whole => 0,
|
||||
Reads::Attachments => 1,
|
||||
Reads::ClearColor => 2,
|
||||
Reads::ClearDepth => 3,
|
||||
Reads::ClearStencil => 4,
|
||||
Reads::Numbers => 5,
|
||||
Reads::Positions => 6,
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether a row is [`Row::rotated`] onto the depth and stencil attachments, or stated on all
|
||||
/// three verbatim.
|
||||
///
|
||||
/// A read that covers more than one attachment rotates, so no two attachments hold one value
|
||||
/// of a swept parameter and a crossing between attachment kinds fails every row. A read that
|
||||
/// covers **one** field of one attachment does not: there is no second attachment in the
|
||||
/// record to cross with, and rotating would move the swept value off the attachment being
|
||||
/// read — an exhaustive sweep of the stencil clear would then compare 255 and 1 rather than
|
||||
/// 255.
|
||||
pub const fn rotates(self) -> bool {
|
||||
matches!(self, Reads::Whole | Reads::Attachments)
|
||||
}
|
||||
|
||||
/// How many colour attachments the read covers.
|
||||
pub const fn colors(self) -> u32 {
|
||||
match self {
|
||||
Reads::Whole => READ_COLORS,
|
||||
Reads::Attachments => SWEPT_COLORS,
|
||||
Reads::ClearColor => 1,
|
||||
Reads::ClearDepth | Reads::ClearStencil | Reads::Numbers | Reads::Positions => 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// One attachment's three action fields, by Metal's raw values.
|
||||
///
|
||||
/// Raw values and not this suite's enumerations: the whole of what an action means is its ordinal,
|
||||
/// the runtime's own `LoadAction::from_raw` is what turns one into its value, and a sweep that
|
||||
/// named each value would state a vocabulary beside the two the sides already have.
|
||||
///
|
||||
/// The sweeps state only the values and bits Metal **defines**. An undefined store-action option
|
||||
/// bit is not swept because the runtime refuses one by design — `StoreActionOptions::from_raw`
|
||||
/// answers a typed error rather than casting — so a row stating bit 1 would compare our refusal
|
||||
/// against whatever Metal's setter stored, which is a refusal case and a different question from
|
||||
/// this family's. What Metal does with such a bit is unmeasured.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub struct Actions {
|
||||
/// `loadAction`: `MTLLoadAction`'s raw value, 0 to 2.
|
||||
pub load: u64,
|
||||
/// `storeAction`: `MTLStoreAction`'s raw value, 0 to 5.
|
||||
pub store: u64,
|
||||
/// `storeActionOptions`: `MTLStoreActionOptions`' bits, of which bit 0 is defined.
|
||||
pub options: u64,
|
||||
}
|
||||
|
||||
/// How many values `MTLLoadAction` has.
|
||||
pub const LOAD_ACTIONS: u64 = 3;
|
||||
|
||||
/// How many values `MTLStoreAction` has.
|
||||
pub const STORE_ACTIONS: u64 = 6;
|
||||
|
||||
/// How many values `MTLStoreActionOptions` has: none and `CustomSamplePositions`.
|
||||
pub const STORE_OPTIONS: u64 = 2;
|
||||
|
||||
/// How many values `MTLMultisampleDepthResolveFilter` has.
|
||||
pub const DEPTH_FILTERS: u64 = 3;
|
||||
|
||||
/// How many values `MTLMultisampleStencilResolveFilter` has.
|
||||
pub const STENCIL_FILTERS: u64 = 2;
|
||||
|
||||
/// One attachment's two resolve filters, by Metal's raw values. The depth attachment reads the
|
||||
/// first and the stencil attachment the second; a colour attachment has neither.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub struct Filters {
|
||||
/// `depthResolveFilter`'s raw value, 0 to 2.
|
||||
pub depth: u64,
|
||||
/// `stencilResolveFilter`'s raw value, 0 or 1.
|
||||
pub stencil: u64,
|
||||
}
|
||||
|
||||
/// One attachment's six index fields, in [`INDEX_FIELDS`]' order.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub struct Indices(pub [u64; INDEX_FIELDS as usize]);
|
||||
|
||||
impl Indices {
|
||||
/// Every field at `value`: what an index sweep's row states.
|
||||
pub const fn all(value: u64) -> Indices {
|
||||
Indices([value; INDEX_FIELDS as usize])
|
||||
}
|
||||
}
|
||||
|
||||
/// What one row of a sweep states on the attachment it names, over the shape's own setting.
|
||||
///
|
||||
/// A row states **all** of an attachment's own fields, so a row is the whole of what its case
|
||||
/// feeds: a parameter left at its base is left there on purpose rather than by omission.
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct Row {
|
||||
pub actions: Actions,
|
||||
pub filters: Filters,
|
||||
pub indices: Indices,
|
||||
/// `clearColor`'s four channels.
|
||||
pub clear_color: [f64; 4],
|
||||
/// `clearDepth`.
|
||||
pub clear_depth: f64,
|
||||
/// `clearStencil`.
|
||||
pub clear_stencil: u32,
|
||||
}
|
||||
|
||||
/// The row every sweep starts from: Metal's own defaults for a colour attachment, so a row that
|
||||
/// states one parameter away from it differs from the defaults case in that parameter alone.
|
||||
pub const BASE: Row = Row {
|
||||
actions: Actions {
|
||||
load: 0,
|
||||
store: 1,
|
||||
options: 0,
|
||||
},
|
||||
filters: Filters {
|
||||
depth: 0,
|
||||
stencil: 0,
|
||||
},
|
||||
indices: Indices::all(0),
|
||||
clear_color: [0.0, 0.0, 0.0, 1.0],
|
||||
clear_depth: 1.0,
|
||||
clear_stencil: 0,
|
||||
};
|
||||
|
||||
impl Row {
|
||||
/// The row with `actions` stated.
|
||||
#[must_use]
|
||||
pub const fn with_actions(mut self, load: u64, store: u64, options: u64) -> Row {
|
||||
self.actions = Actions {
|
||||
load,
|
||||
store,
|
||||
options,
|
||||
};
|
||||
self
|
||||
}
|
||||
|
||||
/// The row with both resolve filters stated.
|
||||
#[must_use]
|
||||
pub const fn with_filters(mut self, depth: u64, stencil: u64) -> Row {
|
||||
self.filters = Filters { depth, stencil };
|
||||
self
|
||||
}
|
||||
|
||||
/// The row with every index field at `value`.
|
||||
#[must_use]
|
||||
pub const fn with_indices(mut self, value: u64) -> Row {
|
||||
self.indices = Indices::all(value);
|
||||
self
|
||||
}
|
||||
|
||||
/// The row with `clearColor` stated.
|
||||
#[must_use]
|
||||
pub const fn with_clear_color(mut self, clear: [f64; 4]) -> Row {
|
||||
self.clear_color = clear;
|
||||
self
|
||||
}
|
||||
|
||||
/// The row with `clearDepth` stated.
|
||||
#[must_use]
|
||||
pub const fn with_clear_depth(mut self, clear: f64) -> Row {
|
||||
self.clear_depth = clear;
|
||||
self
|
||||
}
|
||||
|
||||
/// The row with `clearStencil` stated.
|
||||
#[must_use]
|
||||
pub const fn with_clear_stencil(mut self, clear: u32) -> Row {
|
||||
self.clear_stencil = clear;
|
||||
self
|
||||
}
|
||||
|
||||
/// The row `shift` places on in every swept space at once: each action, each filter and each
|
||||
/// index moved by `shift` within its own range.
|
||||
///
|
||||
/// This is what gives one row's three attachments three different values: colour
|
||||
/// [`SWEPT_COLOR`] takes the row, the depth attachment `rotated(1)` and the stencil attachment
|
||||
/// `rotated(2)`. No two of the three then hold one value of any swept parameter, so a side that
|
||||
/// answered one attachment's getter out of another's reads wrong in every row.
|
||||
#[must_use]
|
||||
pub fn rotated(self, shift: u64) -> Row {
|
||||
let Row {
|
||||
actions,
|
||||
filters,
|
||||
indices,
|
||||
clear_color,
|
||||
clear_depth,
|
||||
clear_stencil,
|
||||
} = self;
|
||||
Row {
|
||||
actions: Actions {
|
||||
load: (actions.load + shift) % LOAD_ACTIONS,
|
||||
store: (actions.store + shift) % STORE_ACTIONS,
|
||||
options: (actions.options + shift) % STORE_OPTIONS,
|
||||
},
|
||||
filters: Filters {
|
||||
depth: (filters.depth + shift) % DEPTH_FILTERS,
|
||||
stencil: (filters.stencil + shift) % STENCIL_FILTERS,
|
||||
},
|
||||
// The indices move by a stride wider than the six fields, so a rotated attachment's
|
||||
// six values never meet another attachment's.
|
||||
indices: Indices::all(indices.0[0].wrapping_add(shift.wrapping_mul(INDEX_STRIDE))),
|
||||
// A clear is rotated by the channel, not by a modulus: the values are a sweep's own
|
||||
// and the rotation only has to make the three attachments differ.
|
||||
clear_color: [
|
||||
clear_color[(shift as usize) % 4],
|
||||
clear_color[(shift as usize + 1) % 4],
|
||||
clear_color[(shift as usize + 2) % 4],
|
||||
clear_color[(shift as usize + 3) % 4],
|
||||
],
|
||||
clear_depth: clear_depth + shift as f64,
|
||||
clear_stencil: clear_stencil.wrapping_add(shift as u32),
|
||||
}
|
||||
}
|
||||
|
||||
/// The words a case's input fingerprint covers: every field the row states.
|
||||
pub fn words(&self) -> Vec<u8> {
|
||||
let mut out = Vec::new();
|
||||
for word in [
|
||||
self.actions.load,
|
||||
self.actions.store,
|
||||
self.actions.options,
|
||||
self.filters.depth,
|
||||
self.filters.stencil,
|
||||
u64::from(self.clear_stencil),
|
||||
] {
|
||||
out.extend(word.to_le_bytes());
|
||||
}
|
||||
for index in self.indices.0 {
|
||||
out.extend(index.to_le_bytes());
|
||||
}
|
||||
for channel in self.clear_color {
|
||||
out.extend(channel.to_bits().to_le_bytes());
|
||||
}
|
||||
out.extend(self.clear_depth.to_bits().to_le_bytes());
|
||||
out
|
||||
}
|
||||
}
|
||||
|
||||
/// How far apart two attachments' stated index fields are kept, which is wider than
|
||||
/// [`INDEX_FIELDS`] so no two of them can meet.
|
||||
pub const INDEX_STRIDE: u64 = 7;
|
||||
|
||||
/// Where the stated index fields start, above every value a default could be.
|
||||
const INDEX_FLOOR: u64 = 11;
|
||||
|
||||
/// The value [`Shape::Set`] states for index field `field` of attachment `at`.
|
||||
///
|
||||
/// Distinct over every pair, because the stride is wider than the fields: field `f` of attachment
|
||||
/// `a` is `11 + 7a + f`, and `f` is below 7.
|
||||
pub fn stated_index(at: u32, field: u32) -> u64 {
|
||||
INDEX_FLOOR + u64::from(at) * INDEX_STRIDE + u64::from(field)
|
||||
}
|
||||
|
||||
/// The six index fields [`Shape::Set`] states for attachment `at`.
|
||||
pub fn stated_indices(at: u32) -> Indices {
|
||||
Indices(std::array::from_fn(|field| stated_index(at, field as u32)))
|
||||
}
|
||||
|
||||
/// The actions [`Shape::Set`] states for attachment `at`.
|
||||
///
|
||||
/// The (load, store) pair is the `at`-th of the 18, counted so that all ten attachments hold ten
|
||||
/// different pairs: the load cycles every attachment and the store every three.
|
||||
pub fn stated_actions(at: u32) -> Actions {
|
||||
Actions {
|
||||
load: u64::from(at) % LOAD_ACTIONS,
|
||||
store: (u64::from(at) / LOAD_ACTIONS) % STORE_ACTIONS,
|
||||
options: u64::from(at) % STORE_OPTIONS,
|
||||
}
|
||||
}
|
||||
|
||||
/// The colour slot [`Shape::Assigned`] assigns an attachment object into: one in the middle of
|
||||
/// the array, so the slots either side of it answer Metal's defaults beside it.
|
||||
pub const ASSIGNED_COLOR: u32 = 3;
|
||||
|
||||
/// The attachment whose stated values [`Shape::Assigned`] mutates an assigned object to **after**
|
||||
/// assigning it: another attachment of the stated table, so whichever answer comes back is a value
|
||||
/// the record holds elsewhere and a reader can tell which one it is.
|
||||
pub const MUTATED_AFTER: u32 = 5;
|
||||
|
||||
/// The clear depth [`Shape::Set`] states: inside Metal's documented `[0, 1]`, away from the
|
||||
/// default of 1, and equal to no other number of the stated table.
|
||||
pub const STATED_CLEAR_DEPTH: f64 = 0.25;
|
||||
|
||||
/// The clear stencil [`Shape::Set`] states: a byte with both halves set, away from the default of
|
||||
/// 0.
|
||||
pub const STATED_CLEAR_STENCIL: u32 = 0xab;
|
||||
|
||||
/// Everything [`Shape::Set`] states on attachment `at`: its actions, its six index fields, its
|
||||
/// clear colour, and the one clear and filter its kind has.
|
||||
///
|
||||
/// The filters and the two scalar clears are the same on every attachment, because only the depth
|
||||
/// attachment reads a depth clear and a depth filter and only the stencil attachment reads theirs:
|
||||
/// there is no second attachment to tell them apart from.
|
||||
pub fn stated_row(at: u32) -> Row {
|
||||
Row {
|
||||
actions: stated_actions(at),
|
||||
filters: STATED_FILTERS,
|
||||
indices: stated_indices(at),
|
||||
clear_color: stated_clear_color(at),
|
||||
clear_depth: STATED_CLEAR_DEPTH,
|
||||
clear_stencil: STATED_CLEAR_STENCIL,
|
||||
}
|
||||
}
|
||||
|
||||
/// The resolve filters [`Shape::Set`] states: the depth attachment's and the stencil
|
||||
/// attachment's, each away from its default.
|
||||
pub const STATED_FILTERS: Filters = Filters {
|
||||
depth: 2,
|
||||
stencil: 1,
|
||||
};
|
||||
|
||||
/// The clear colour [`Shape::Set`] states for attachment `at`: four channels no two of which are
|
||||
/// equal, and no two attachments' alike.
|
||||
pub fn stated_clear_color(at: u32) -> [f64; 4] {
|
||||
let base = f64::from(at) * 16.0;
|
||||
[base + 1.0, base + 2.0, base + 4.0, base + 8.0]
|
||||
}
|
||||
|
||||
/// The eight numbers of the pass itself, in the order [`Numbers`] holds them.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub struct Numbers(pub [u64; 8]);
|
||||
|
||||
/// Metal's defaults for the pass's own numbers: every one of them 0.
|
||||
pub const DEFAULT_NUMBERS: Numbers = Numbers([0; 8]);
|
||||
|
||||
/// What [`Shape::Set`] states for the pass's own numbers: no two equal, each away from 0, and none
|
||||
/// of them a value [`NUMBER_SWEEPS`] states for its own field.
|
||||
///
|
||||
/// The last of those is what keeps the number sweep's rows apart: every row of it holds one field
|
||||
/// at a swept value and the other seven here, so a row whose swept value was its field's own
|
||||
/// number here would be the stated table under a second name.
|
||||
pub const STATED_NUMBERS: Numbers = Numbers([3, 128, 96, 5, 48, 24, 40, 1000]);
|
||||
|
||||
/// The sample positions [`Shape::Set`] states: four, which is a sample count every Apple GPU takes
|
||||
/// custom positions at, each coordinate an exact sixteenth so Metal's own quantization cannot be
|
||||
/// mistaken for a side's rounding, and all eight coordinates different.
|
||||
pub const STATED_POSITIONS: [(f32, f32); 4] = [
|
||||
(0.0625, 0.1875),
|
||||
(0.3125, 0.4375),
|
||||
(0.5625, 0.6875),
|
||||
(0.8125, 0.9375),
|
||||
];
|
||||
|
||||
/// What one case makes and reads.
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct PassSpec {
|
||||
pub shape: Shape,
|
||||
pub reads: Reads,
|
||||
/// The row this case states on colour [`SWEPT_COLOR`], the depth and the stencil attachment
|
||||
/// (each [`Row::rotated`] by its place), over whatever the shape stated. `None` leaves the
|
||||
/// shape's own setting alone.
|
||||
pub row: Option<Row>,
|
||||
/// The pass's own numbers, where the case states them over the shape's.
|
||||
pub numbers: Option<Numbers>,
|
||||
/// The sample positions, where the case states them over the shape's. Empty is a case: it is
|
||||
/// how a program takes the custom positions back off.
|
||||
pub positions: Option<&'static [(f32, f32)]>,
|
||||
}
|
||||
|
||||
impl PassSpec {
|
||||
/// The descriptor of `shape`, read by `reads`, stating no row of its own.
|
||||
pub const fn new(shape: Shape, reads: Reads) -> PassSpec {
|
||||
PassSpec {
|
||||
shape,
|
||||
reads,
|
||||
row: None,
|
||||
numbers: None,
|
||||
positions: None,
|
||||
}
|
||||
}
|
||||
|
||||
/// The same, stating `row`.
|
||||
#[must_use]
|
||||
pub const fn at(mut self, row: Row) -> PassSpec {
|
||||
self.row = Some(row);
|
||||
self
|
||||
}
|
||||
|
||||
/// The same, stating the pass's own numbers.
|
||||
#[must_use]
|
||||
pub const fn with_numbers(mut self, numbers: Numbers) -> PassSpec {
|
||||
self.numbers = Some(numbers);
|
||||
self
|
||||
}
|
||||
|
||||
/// The same, stating sample positions.
|
||||
#[must_use]
|
||||
pub const fn with_positions(mut self, positions: &'static [(f32, f32)]) -> PassSpec {
|
||||
self.positions = Some(positions);
|
||||
self
|
||||
}
|
||||
|
||||
/// The words a case's input fingerprint covers: the shape, the read, and every value the case
|
||||
/// states, so two cases that state different values can never read one recording.
|
||||
pub fn words(&self) -> Vec<u8> {
|
||||
let mut out = vec![self.shape.word(), self.reads.word()];
|
||||
if let Some(row) = &self.row {
|
||||
out.push(1);
|
||||
out.extend(row.words());
|
||||
} else {
|
||||
out.push(0);
|
||||
}
|
||||
if let Some(numbers) = &self.numbers {
|
||||
out.push(1);
|
||||
for number in numbers.0 {
|
||||
out.extend(number.to_le_bytes());
|
||||
}
|
||||
} else {
|
||||
out.push(0);
|
||||
}
|
||||
if let Some(positions) = self.positions {
|
||||
out.push(1);
|
||||
for (x, y) in positions {
|
||||
out.extend(x.to_bits().to_le_bytes());
|
||||
out.extend(y.to_bits().to_le_bytes());
|
||||
}
|
||||
} else {
|
||||
out.push(0);
|
||||
}
|
||||
out
|
||||
}
|
||||
}
|
||||
|
||||
/// What one attachment descriptor answers of itself, whichever of the three kinds it is.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub struct AttachmentFacts {
|
||||
/// Whether `texture` answers a texture at all; no shape of this family states one.
|
||||
pub has_texture: bool,
|
||||
/// Whether `resolveTexture` answers one.
|
||||
pub has_resolve_texture: bool,
|
||||
/// The six index fields in [`INDEX_FIELDS`]' order.
|
||||
pub indices: Indices,
|
||||
pub actions: Actions,
|
||||
}
|
||||
|
||||
/// What a render pass descriptor answers of itself, by the read the case asked for: a field is
|
||||
/// `None` where the read does not cover it, and a site a read leaves out is a site the recording
|
||||
/// does not hold.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct PassDescriptorFacts {
|
||||
/// `colorAttachments[i]` for `i` below [`Reads::colors`].
|
||||
pub colors: Vec<AttachmentFacts>,
|
||||
/// Each read colour attachment's `clearColor`, by its four channels' bits.
|
||||
pub color_clears: Vec<[u64; 4]>,
|
||||
/// `depthAttachment`, where the read covers it.
|
||||
pub depth: Option<AttachmentFacts>,
|
||||
/// `clearDepth`'s bits.
|
||||
pub clear_depth: Option<u64>,
|
||||
/// `depthResolveFilter`'s raw value.
|
||||
pub depth_resolve_filter: Option<u64>,
|
||||
/// `stencilAttachment`, where the read covers it.
|
||||
pub stencil: Option<AttachmentFacts>,
|
||||
/// `clearStencil`.
|
||||
pub clear_stencil: Option<u32>,
|
||||
/// `stencilResolveFilter`'s raw value.
|
||||
pub stencil_resolve_filter: Option<u64>,
|
||||
/// The pass's own eight numbers, where the read covers them.
|
||||
pub numbers: Option<Numbers>,
|
||||
/// Whether `visibilityResultBuffer` answers a buffer.
|
||||
pub has_visibility_buffer: Option<bool>,
|
||||
/// Whether `rasterizationRateMap` answers a map.
|
||||
pub has_rate_map: Option<bool>,
|
||||
/// What `getSamplePositions:count:` answers for a count of 0: how many positions the pass
|
||||
/// holds, which is the only way to ask Metal how long the array is.
|
||||
pub position_count: Option<u64>,
|
||||
/// The positions `getSamplePositions:count:` wrote, by their coordinates' bits.
|
||||
pub positions: Option<Vec<(u32, u32)>>,
|
||||
}
|
||||
|
||||
impl PassDescriptorFacts {
|
||||
/// The facts of a read that covers nothing yet: what each side fills.
|
||||
pub fn empty() -> PassDescriptorFacts {
|
||||
PassDescriptorFacts {
|
||||
colors: Vec::new(),
|
||||
color_clears: Vec::new(),
|
||||
depth: None,
|
||||
clear_depth: None,
|
||||
depth_resolve_filter: None,
|
||||
stencil: None,
|
||||
clear_stencil: None,
|
||||
stencil_resolve_filter: None,
|
||||
numbers: None,
|
||||
has_visibility_buffer: None,
|
||||
has_rate_map: None,
|
||||
position_count: None,
|
||||
positions: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Every row of the action sweep: the 18 (load, store) pairs in order.
|
||||
///
|
||||
/// Each row states colour [`SWEPT_COLOR`] at the pair with no options, the depth attachment one
|
||||
/// place on in all three spaces — which is the next load, the next store **and** the
|
||||
/// `CustomSamplePositions` option — and the stencil attachment two places on. So the 18 rows hold
|
||||
/// all 18 pairs at options none (the colour attachment's), all 18 at
|
||||
/// `CustomSamplePositions` (the depth attachment's), and the whole 3 × 6 × 2 product between them.
|
||||
pub fn action_rows() -> Vec<Row> {
|
||||
(0..LOAD_ACTIONS * STORE_ACTIONS)
|
||||
.map(|at| BASE.with_actions(at / STORE_ACTIONS, at % STORE_ACTIONS, 0))
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Every row of the resolve-filter sweep: all 3 × 2 pairs of the two filters.
|
||||
///
|
||||
/// The depth attachment reads the depth filter and the stencil attachment the stencil one, so a
|
||||
/// row's rotation moves the depth filter by one and leaves the stencil filter where it is (two
|
||||
/// places on in a space of two is where it started). Over the six rows the depth attachment
|
||||
/// therefore holds each of its three values and the stencil attachment each of its two.
|
||||
pub fn filter_rows() -> Vec<Row> {
|
||||
(0..DEPTH_FILTERS * STENCIL_FILTERS)
|
||||
.map(|at| BASE.with_filters(at / STENCIL_FILTERS, at % STENCIL_FILTERS))
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Every clear colour the sweep states: Metal's default, the two unit corners, a channel-ordered
|
||||
/// ramp, and the floats a converter is most likely to mishandle — a quiet NaN with a payload, both
|
||||
/// infinities, a denormal, and the largest and smallest doubles.
|
||||
///
|
||||
/// No two channels of a row are equal, so a side that answered one channel out of another's reads
|
||||
/// wrong.
|
||||
pub const CLEAR_COLORS: [[f64; 4]; 6] = [
|
||||
[0.0, 0.0, 0.0, 1.0],
|
||||
[1.0, 1.0, 1.0, 1.0],
|
||||
[0.0, 0.0, 0.0, 0.0],
|
||||
[0.25, 0.5, 0.75, -1.0],
|
||||
[f64::NAN, f64::INFINITY, f64::NEG_INFINITY, -0.0],
|
||||
[f64::MAX, f64::MIN, f64::MIN_POSITIVE, f64::EPSILON],
|
||||
];
|
||||
|
||||
/// Every clear depth the sweep states: both ends of Metal's documented `[0, 1]`, the middle, a
|
||||
/// value either side of each end, both zeros, a NaN of each sign, both infinities, a denormal and
|
||||
/// the double just below 1.
|
||||
pub const CLEAR_DEPTHS: [f64; 13] = [
|
||||
0.0,
|
||||
1.0,
|
||||
0.5,
|
||||
-0.0,
|
||||
2.0,
|
||||
-1.0,
|
||||
f64::NAN,
|
||||
-f64::NAN,
|
||||
f64::INFINITY,
|
||||
f64::NEG_INFINITY,
|
||||
f64::MIN_POSITIVE,
|
||||
f64::EPSILON,
|
||||
0.999_999_999_999_999_9,
|
||||
];
|
||||
|
||||
/// Every clear stencil the sweep states: **every** byte, which is a space small enough to be
|
||||
/// exhaustive, then the first words above a byte, the 16-bit edge and the last two words of the
|
||||
/// `uint32_t` the property is.
|
||||
///
|
||||
/// What this measures is the **store**: whether the descriptor keeps the word a program gave it,
|
||||
/// masked or not. The masking Metal does of a clear is `buffer_target_clears`' subject, where a
|
||||
/// pass runs.
|
||||
pub fn clear_stencils() -> Vec<u32> {
|
||||
(0..=255u32)
|
||||
.chain([256, 257, 0xffff, 0x1_0000, 0xffff_fffe, 0xffff_ffff])
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Every value the index sweep states on all six of an attachment's index fields: 0, the first two
|
||||
/// above it, the last and first index of an eight-slice array, the last 32-bit index, the first
|
||||
/// value past 32 bits, and the last value a `NSUInteger` holds.
|
||||
///
|
||||
/// The two above 32 bits are the point: `NSUInteger` is 64 bits on this platform and the runtime's
|
||||
/// fields are `u64`, so a side that kept an index in a `u32` answers a different number.
|
||||
pub const INDEX_VALUES: [u64; 8] = [0, 1, 2, 7, 8, 0xffff_ffff, 0x1_0000_0000, u64::MAX];
|
||||
|
||||
/// Each of the pass's own numbers, and the values the sweep states it at: 0, 1, the limit Metal
|
||||
/// documents or the runtime measured, and the value either side of that limit.
|
||||
///
|
||||
/// The limits are all **encoder-time** checks — a render encoder refuses a tile of 8 × 8, a target
|
||||
/// side past 16384, per-sample storage past 64 bytes and threadgroup memory past 32768 — so what a
|
||||
/// row past one of them measures is that the descriptor stores it anyway, which is the only claim a
|
||||
/// descriptor can make about it.
|
||||
pub const NUMBER_SWEEPS: [(usize, &[u64]); 8] = [
|
||||
// `renderTargetArrayLength`: 0 and 1 render the slice alone, 2 and up are a layered pass, and
|
||||
// 2048 is Metal's largest array length.
|
||||
(0, &[0, 1, 2, 2048, 2049, 0xffff_ffff, 0x1_0000_0000]),
|
||||
// `renderTargetWidth` and `renderTargetHeight`: 16384 is the largest side.
|
||||
(1, &[0, 1, 16384, 16385]),
|
||||
(2, &[0, 1, 16384, 16385]),
|
||||
// `defaultRasterSampleCount`: 1, 2 and 4 on every device; 0 ends Metal's process at an encoder
|
||||
// of a pass without attachments, and 8 is a count this device has no attachments for.
|
||||
(3, &[0, 1, 2, 4, 8]),
|
||||
// `tileWidth` and `tileHeight`: 16 and 32 are the two sides a tile dispatch takes.
|
||||
(4, &[0, 16, 32, 33]),
|
||||
(5, &[0, 16, 32, 33]),
|
||||
// `imageblockSampleLength`: per-sample storage is this rounded up to 8 bytes, at most 64.
|
||||
(6, &[0, 1, 64, 65]),
|
||||
// `threadgroupMemoryLength`: at most 32768 bytes.
|
||||
(7, &[0, 1, 32768, 32769]),
|
||||
];
|
||||
|
||||
/// Every sample-position row the sweep states: none at all, which is how a program takes custom
|
||||
/// positions back off; the four exact sixteenths [`STATED_POSITIONS`] holds; two positions, which
|
||||
/// is the other count an Apple GPU takes; and four coordinates that are **not** sixteenths, which
|
||||
/// is what says whether `getSamplePositions:count:` answers the value a program gave or the one the
|
||||
/// rasterizer would use.
|
||||
///
|
||||
/// Every coordinate is inside the `[0, 1)` Metal asserts on leaving, and no row holds more
|
||||
/// positions than the sample count it names: [`crate::render::forbidden_positions`] is the guard,
|
||||
/// and the Metal side calls it before the setter as every render family does.
|
||||
pub const POSITION_ROWS: [&[(f32, f32)]; 4] = [
|
||||
&[],
|
||||
&STATED_POSITIONS,
|
||||
&[(0.0, 0.5), (0.9375, 0.0625)],
|
||||
&[(0.1, 0.2), (0.3, 0.7), (0.55, 0.45), (0.999, 0.001)],
|
||||
];
|
||||
|
||||
/// A `double` as a site records it: by its bits, so a NaN's payload and a signed zero compare
|
||||
/// exactly.
|
||||
fn double(bits: u64) -> Value {
|
||||
Value::Float {
|
||||
bits,
|
||||
width: FloatWidth::Double,
|
||||
}
|
||||
}
|
||||
|
||||
/// A `float` as a site records it, for the same reason.
|
||||
fn single(bits: u32) -> Value {
|
||||
Value::Float {
|
||||
bits: u64::from(bits),
|
||||
width: FloatWidth::Single,
|
||||
}
|
||||
}
|
||||
|
||||
impl AttachmentFacts {
|
||||
/// One attachment's answers as a site records them.
|
||||
fn value(&self) -> Value {
|
||||
Value::fields([
|
||||
("has_texture", Value::Bool(self.has_texture)),
|
||||
("has_resolve_texture", Value::Bool(self.has_resolve_texture)),
|
||||
("level", Value::Uint(self.indices.0[0])),
|
||||
("slice", Value::Uint(self.indices.0[1])),
|
||||
("depth_plane", Value::Uint(self.indices.0[2])),
|
||||
("resolve_level", Value::Uint(self.indices.0[3])),
|
||||
("resolve_slice", Value::Uint(self.indices.0[4])),
|
||||
("resolve_depth_plane", Value::Uint(self.indices.0[5])),
|
||||
("load_action", Value::Uint(self.actions.load)),
|
||||
("store_action", Value::Uint(self.actions.store)),
|
||||
("store_action_options", Value::Uint(self.actions.options)),
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
/// The names the pass's own numbers are recorded under, in [`Numbers`]' order.
|
||||
const NUMBER_NAMES: [&str; 8] = [
|
||||
"render_target_array_length",
|
||||
"render_target_width",
|
||||
"render_target_height",
|
||||
"default_raster_sample_count",
|
||||
"tile_width",
|
||||
"tile_height",
|
||||
"imageblock_sample_length",
|
||||
"threadgroup_memory_length",
|
||||
];
|
||||
|
||||
impl PassDescriptorFacts {
|
||||
/// The facts as the sites a case emits under one node, so both sides emit one shape.
|
||||
pub fn node(&self, name: impl Into<NodeName>) -> Node {
|
||||
let value = Observed::value;
|
||||
let mut node = Node::branch(name, Vec::new());
|
||||
if !self.colors.is_empty() {
|
||||
node = node.with(Node::leaf(
|
||||
"color_attachments",
|
||||
value(Value::List(
|
||||
self.colors.iter().map(AttachmentFacts::value).collect(),
|
||||
)),
|
||||
));
|
||||
}
|
||||
if !self.color_clears.is_empty() {
|
||||
node = node.with(Node::leaf(
|
||||
"color_clears",
|
||||
value(Value::List(
|
||||
self.color_clears
|
||||
.iter()
|
||||
.map(|clear| Value::List(clear.iter().map(|bits| double(*bits)).collect()))
|
||||
.collect(),
|
||||
)),
|
||||
));
|
||||
}
|
||||
if let Some(depth) = &self.depth {
|
||||
node = node.with(Node::leaf("depth_attachment", value(depth.value())));
|
||||
}
|
||||
if let Some(bits) = self.clear_depth {
|
||||
node = node.with(Node::leaf("clear_depth", value(double(bits))));
|
||||
}
|
||||
if let Some(raw) = self.depth_resolve_filter {
|
||||
node = node.with(Node::leaf("depth_resolve_filter", value(Value::Uint(raw))));
|
||||
}
|
||||
if let Some(stencil) = &self.stencil {
|
||||
node = node.with(Node::leaf("stencil_attachment", value(stencil.value())));
|
||||
}
|
||||
if let Some(clear) = self.clear_stencil {
|
||||
node = node.with(Node::leaf(
|
||||
"clear_stencil",
|
||||
value(Value::Uint(u64::from(clear))),
|
||||
));
|
||||
}
|
||||
if let Some(raw) = self.stencil_resolve_filter {
|
||||
node = node.with(Node::leaf(
|
||||
"stencil_resolve_filter",
|
||||
value(Value::Uint(raw)),
|
||||
));
|
||||
}
|
||||
if let Some(numbers) = &self.numbers {
|
||||
for (name, number) in NUMBER_NAMES.iter().zip(numbers.0) {
|
||||
node = node.with(Node::leaf(*name, value(Value::Uint(number))));
|
||||
}
|
||||
}
|
||||
if let Some(held) = self.has_visibility_buffer {
|
||||
node = node.with(Node::leaf(
|
||||
"has_visibility_result_buffer",
|
||||
value(Value::Bool(held)),
|
||||
));
|
||||
}
|
||||
if let Some(held) = self.has_rate_map {
|
||||
node = node.with(Node::leaf(
|
||||
"has_rasterization_rate_map",
|
||||
value(Value::Bool(held)),
|
||||
));
|
||||
}
|
||||
if let Some(count) = self.position_count {
|
||||
node = node.with(Node::leaf(
|
||||
"sample_position_count",
|
||||
value(Value::Uint(count)),
|
||||
));
|
||||
}
|
||||
if let Some(positions) = &self.positions {
|
||||
node = node.with(Node::leaf(
|
||||
"sample_positions",
|
||||
value(Value::List(
|
||||
positions
|
||||
.iter()
|
||||
.map(|(x, y)| Value::List(vec![single(*x), single(*y)]))
|
||||
.collect(),
|
||||
)),
|
||||
));
|
||||
}
|
||||
node
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,10 @@ use crate::mesh_descriptors::{
|
||||
DescriptorSpec as MeshDescriptorSpec, MeshDescriptorFacts, SuppliedLists as MeshSuppliedLists,
|
||||
AWAY as MESH_AWAY,
|
||||
};
|
||||
use crate::pass_descriptors::{
|
||||
AttachmentFacts, Indices, Numbers, PassDescriptorFacts, PassSpec, Reads, Row, Shape,
|
||||
ASSIGNED_COLOR, DEPTH_AT, MUTATED_AFTER, READ_COLORS as PASS_COLORS, STENCIL_AT, SWEPT_COLOR,
|
||||
};
|
||||
use crate::pipeline_facts::{ComputeStateFacts, ComputeStateSpec, RenderStateFacts};
|
||||
use crate::queue_slots::QueueSlots;
|
||||
use crate::render::{
|
||||
@@ -77,10 +81,13 @@ use metal2vulkan_runtime::{
|
||||
CommandQueue, ComputePipelineState, DepthStencilState, Device, DrawPrimitiveType, Heap,
|
||||
HeapDescriptor, HeapType, HostMemory, IndirectCommand, IndirectCommandBuffer,
|
||||
IndirectCommandBufferDescriptor, IndirectDraw, IoSurfacePlane, IoSurfaceYCbCr, Library,
|
||||
LoadAction, Origin, PipelineOption, PipelineOptions, RasterizationRateMap, Region,
|
||||
RenderPassDescriptor, RenderPipelineState, ResourceOptions, ResourceRef, SamplerState,
|
||||
SamplerStateOptions, ScissorRect, Size, SparseTextureRegionAlignmentMode, StoreAction, Texture,
|
||||
TextureDescriptor, Viewport,
|
||||
LoadAction, MultisampleDepthResolveFilter, MultisampleStencilResolveFilter, Origin,
|
||||
PipelineOption, PipelineOptions, RasterizationRateMap, Region,
|
||||
RenderPassColorAttachmentDescriptor, RenderPassDepthAttachmentDescriptor, RenderPassDescriptor,
|
||||
RenderPassStencilAttachmentDescriptor, RenderPipelineState, ResourceOptions, ResourceRef,
|
||||
SamplePosition, SamplerState, SamplerStateOptions, ScissorRect, Size,
|
||||
SparseTextureRegionAlignmentMode, StoreAction, StoreActionOptions, Texture, TextureDescriptor,
|
||||
Viewport,
|
||||
};
|
||||
use std::time::Duration;
|
||||
|
||||
@@ -2367,6 +2374,89 @@ impl Side for RuntimeSide<'_> {
|
||||
))
|
||||
}
|
||||
|
||||
fn pass_descriptor_facts(&mut self, spec: &PassSpec) -> Answer<PassDescriptorFacts> {
|
||||
// The runtime has no descriptor object: Metal's `renderPassDescriptor` is this call, and
|
||||
// an attachment Metal's program sets to nil is this type's `Default` again.
|
||||
let mut descriptor = RenderPassDescriptor::new();
|
||||
if spec.shape.sets() {
|
||||
for index in 0..PASS_COLORS {
|
||||
let stated = crate::pass_descriptors::stated_row(index);
|
||||
state_color_attachment(&mut descriptor.color_attachments[index as usize], &stated)?;
|
||||
}
|
||||
state_depth_attachment(
|
||||
&mut descriptor.depth_attachment,
|
||||
&crate::pass_descriptors::stated_row(DEPTH_AT),
|
||||
)?;
|
||||
state_stencil_attachment(
|
||||
&mut descriptor.stencil_attachment,
|
||||
&crate::pass_descriptors::stated_row(STENCIL_AT),
|
||||
)?;
|
||||
}
|
||||
if spec.shape == Shape::Assigned {
|
||||
// Metal's `setObject:atIndexedSubscript:` and its two attachment setters, as the
|
||||
// runtime spells them: an assignment into the descriptor's own value. A value assigned
|
||||
// in Rust is a copy by construction, so what this side answers is the assigned values
|
||||
// and never the later mutation; whether Metal agrees is the case's measurement.
|
||||
let assigned = crate::pass_descriptors::stated_row(ASSIGNED_COLOR);
|
||||
let after = crate::pass_descriptors::stated_row(MUTATED_AFTER);
|
||||
let mut color = RenderPassColorAttachmentDescriptor::default();
|
||||
state_color_attachment(&mut color, &assigned)?;
|
||||
descriptor.color_attachments[ASSIGNED_COLOR as usize] = color.clone();
|
||||
state_color_attachment(&mut color, &after)?;
|
||||
|
||||
let mut depth = RenderPassDepthAttachmentDescriptor::default();
|
||||
state_depth_attachment(&mut depth, &crate::pass_descriptors::stated_row(DEPTH_AT))?;
|
||||
descriptor.depth_attachment = depth.clone();
|
||||
state_depth_attachment(&mut depth, &after)?;
|
||||
depth.clear_depth = crate::pass_descriptors::BASE.clear_depth;
|
||||
|
||||
let mut stencil = RenderPassStencilAttachmentDescriptor::default();
|
||||
state_stencil_attachment(
|
||||
&mut stencil,
|
||||
&crate::pass_descriptors::stated_row(STENCIL_AT),
|
||||
)?;
|
||||
descriptor.stencil_attachment = stencil.clone();
|
||||
state_stencil_attachment(&mut stencil, &after)?;
|
||||
stencil.clear_stencil = crate::pass_descriptors::BASE.clear_stencil;
|
||||
}
|
||||
if let Some(row) = spec.row {
|
||||
let shifted = |shift: u64| match spec.reads.rotates() {
|
||||
true => row.rotated(shift),
|
||||
false => row,
|
||||
};
|
||||
state_color_attachment(
|
||||
&mut descriptor.color_attachments[SWEPT_COLOR as usize],
|
||||
&shifted(0),
|
||||
)?;
|
||||
state_depth_attachment(&mut descriptor.depth_attachment, &shifted(1))?;
|
||||
state_stencil_attachment(&mut descriptor.stencil_attachment, &shifted(2))?;
|
||||
}
|
||||
if let Some(numbers) = spec.numbers {
|
||||
descriptor.render_target_array_length = numbers.0[0];
|
||||
descriptor.render_target_width = numbers.0[1];
|
||||
descriptor.render_target_height = numbers.0[2];
|
||||
descriptor.default_raster_sample_count = numbers.0[3];
|
||||
descriptor.tile_width = numbers.0[4];
|
||||
descriptor.tile_height = numbers.0[5];
|
||||
descriptor.imageblock_sample_length = numbers.0[6];
|
||||
descriptor.threadgroup_memory_length = numbers.0[7];
|
||||
}
|
||||
if let Some(stated) = spec.positions {
|
||||
descriptor.sample_positions = stated
|
||||
.iter()
|
||||
.map(|(x, y)| SamplePosition::new(*x, *y))
|
||||
.collect();
|
||||
}
|
||||
if spec.shape == Shape::Cleared {
|
||||
for index in 0..PASS_COLORS {
|
||||
descriptor.color_attachments[index as usize] = Default::default();
|
||||
}
|
||||
descriptor.depth_attachment = Default::default();
|
||||
descriptor.stencil_attachment = Default::default();
|
||||
}
|
||||
Ok(read_pass_descriptor(&descriptor, spec.reads))
|
||||
}
|
||||
|
||||
fn function_facts(
|
||||
&mut self,
|
||||
library: Handle,
|
||||
@@ -5514,3 +5604,201 @@ fn drawn_primitive_type(draw: IndirectDraw) -> u64 {
|
||||
_ => DrawPrimitiveType::from(PrimitiveType::Point).raw(),
|
||||
}
|
||||
}
|
||||
|
||||
/// State one colour attachment of the runtime's descriptor from `row`.
|
||||
///
|
||||
/// A raw value the runtime does not define is its typed error, which the case records at the row
|
||||
/// rather than turning into a cast.
|
||||
fn state_color_attachment(
|
||||
attachment: &mut RenderPassColorAttachmentDescriptor,
|
||||
row: &Row,
|
||||
) -> Answer<()> {
|
||||
attachment.load_action = LoadAction::from_raw(row.actions.load).map_err(Failure::from_error)?;
|
||||
attachment.store_action =
|
||||
StoreAction::from_raw(row.actions.store).map_err(Failure::from_error)?;
|
||||
attachment.store_action_options =
|
||||
StoreActionOptions::from_raw(row.actions.options).map_err(Failure::from_error)?;
|
||||
attachment.level = row.indices.0[0];
|
||||
attachment.slice = row.indices.0[1];
|
||||
attachment.depth_plane = row.indices.0[2];
|
||||
attachment.resolve_level = row.indices.0[3];
|
||||
attachment.resolve_slice = row.indices.0[4];
|
||||
attachment.resolve_depth_plane = row.indices.0[5];
|
||||
attachment.clear_color = ClearColor::new(
|
||||
row.clear_color[0],
|
||||
row.clear_color[1],
|
||||
row.clear_color[2],
|
||||
row.clear_color[3],
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// State the depth attachment of the runtime's descriptor from `row`.
|
||||
fn state_depth_attachment(
|
||||
attachment: &mut RenderPassDepthAttachmentDescriptor,
|
||||
row: &Row,
|
||||
) -> Answer<()> {
|
||||
attachment.load_action = LoadAction::from_raw(row.actions.load).map_err(Failure::from_error)?;
|
||||
attachment.store_action =
|
||||
StoreAction::from_raw(row.actions.store).map_err(Failure::from_error)?;
|
||||
attachment.store_action_options =
|
||||
StoreActionOptions::from_raw(row.actions.options).map_err(Failure::from_error)?;
|
||||
attachment.level = row.indices.0[0];
|
||||
attachment.slice = row.indices.0[1];
|
||||
attachment.depth_plane = row.indices.0[2];
|
||||
attachment.resolve_level = row.indices.0[3];
|
||||
attachment.resolve_slice = row.indices.0[4];
|
||||
attachment.resolve_depth_plane = row.indices.0[5];
|
||||
attachment.clear_depth = row.clear_depth;
|
||||
attachment.depth_resolve_filter =
|
||||
MultisampleDepthResolveFilter::from_raw(row.filters.depth).map_err(Failure::from_error)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// State the stencil attachment of the runtime's descriptor from `row`.
|
||||
fn state_stencil_attachment(
|
||||
attachment: &mut RenderPassStencilAttachmentDescriptor,
|
||||
row: &Row,
|
||||
) -> Answer<()> {
|
||||
attachment.load_action = LoadAction::from_raw(row.actions.load).map_err(Failure::from_error)?;
|
||||
attachment.store_action =
|
||||
StoreAction::from_raw(row.actions.store).map_err(Failure::from_error)?;
|
||||
attachment.store_action_options =
|
||||
StoreActionOptions::from_raw(row.actions.options).map_err(Failure::from_error)?;
|
||||
attachment.level = row.indices.0[0];
|
||||
attachment.slice = row.indices.0[1];
|
||||
attachment.depth_plane = row.indices.0[2];
|
||||
attachment.resolve_level = row.indices.0[3];
|
||||
attachment.resolve_slice = row.indices.0[4];
|
||||
attachment.resolve_depth_plane = row.indices.0[5];
|
||||
attachment.clear_stencil = row.clear_stencil;
|
||||
attachment.stencil_resolve_filter =
|
||||
MultisampleStencilResolveFilter::from_raw(row.filters.stencil)
|
||||
.map_err(Failure::from_error)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// What one colour attachment of the runtime's descriptor answers.
|
||||
fn read_color_attachment(attachment: &RenderPassColorAttachmentDescriptor) -> AttachmentFacts {
|
||||
AttachmentFacts {
|
||||
has_texture: attachment.texture.is_some(),
|
||||
has_resolve_texture: attachment.resolve_texture.is_some(),
|
||||
indices: Indices([
|
||||
attachment.level,
|
||||
attachment.slice,
|
||||
attachment.depth_plane,
|
||||
attachment.resolve_level,
|
||||
attachment.resolve_slice,
|
||||
attachment.resolve_depth_plane,
|
||||
]),
|
||||
actions: crate::pass_descriptors::Actions {
|
||||
load: attachment.load_action.raw(),
|
||||
store: attachment.store_action.raw(),
|
||||
options: attachment.store_action_options.raw(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/// What the depth attachment of the runtime's descriptor answers.
|
||||
fn read_depth_attachment(attachment: &RenderPassDepthAttachmentDescriptor) -> AttachmentFacts {
|
||||
AttachmentFacts {
|
||||
has_texture: attachment.texture.is_some(),
|
||||
has_resolve_texture: attachment.resolve_texture.is_some(),
|
||||
indices: Indices([
|
||||
attachment.level,
|
||||
attachment.slice,
|
||||
attachment.depth_plane,
|
||||
attachment.resolve_level,
|
||||
attachment.resolve_slice,
|
||||
attachment.resolve_depth_plane,
|
||||
]),
|
||||
actions: crate::pass_descriptors::Actions {
|
||||
load: attachment.load_action.raw(),
|
||||
store: attachment.store_action.raw(),
|
||||
options: attachment.store_action_options.raw(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/// What the stencil attachment of the runtime's descriptor answers.
|
||||
fn read_stencil_attachment(attachment: &RenderPassStencilAttachmentDescriptor) -> AttachmentFacts {
|
||||
AttachmentFacts {
|
||||
has_texture: attachment.texture.is_some(),
|
||||
has_resolve_texture: attachment.resolve_texture.is_some(),
|
||||
indices: Indices([
|
||||
attachment.level,
|
||||
attachment.slice,
|
||||
attachment.depth_plane,
|
||||
attachment.resolve_level,
|
||||
attachment.resolve_slice,
|
||||
attachment.resolve_depth_plane,
|
||||
]),
|
||||
actions: crate::pass_descriptors::Actions {
|
||||
load: attachment.load_action.raw(),
|
||||
store: attachment.store_action.raw(),
|
||||
options: attachment.store_action_options.raw(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/// What the runtime's descriptor answers under `reads`.
|
||||
fn read_pass_descriptor(descriptor: &RenderPassDescriptor, reads: Reads) -> PassDescriptorFacts {
|
||||
let mut facts = PassDescriptorFacts::empty();
|
||||
for index in 0..reads.colors() {
|
||||
let color = &descriptor.color_attachments[index as usize];
|
||||
if matches!(reads, Reads::Whole | Reads::Attachments) {
|
||||
facts.colors.push(read_color_attachment(color));
|
||||
}
|
||||
let clear = color.clear_color;
|
||||
facts.color_clears.push([
|
||||
clear.red.to_bits(),
|
||||
clear.green.to_bits(),
|
||||
clear.blue.to_bits(),
|
||||
clear.alpha.to_bits(),
|
||||
]);
|
||||
}
|
||||
if matches!(reads, Reads::Whole | Reads::Attachments | Reads::ClearDepth) {
|
||||
let depth = &descriptor.depth_attachment;
|
||||
facts.clear_depth = Some(depth.clear_depth.to_bits());
|
||||
if reads != Reads::ClearDepth {
|
||||
facts.depth = Some(read_depth_attachment(depth));
|
||||
facts.depth_resolve_filter = Some(depth.depth_resolve_filter.raw());
|
||||
}
|
||||
}
|
||||
if matches!(
|
||||
reads,
|
||||
Reads::Whole | Reads::Attachments | Reads::ClearStencil
|
||||
) {
|
||||
let stencil = &descriptor.stencil_attachment;
|
||||
facts.clear_stencil = Some(stencil.clear_stencil);
|
||||
if reads != Reads::ClearStencil {
|
||||
facts.stencil = Some(read_stencil_attachment(stencil));
|
||||
facts.stencil_resolve_filter = Some(stencil.stencil_resolve_filter.raw());
|
||||
}
|
||||
}
|
||||
if matches!(reads, Reads::Whole | Reads::Numbers) {
|
||||
facts.numbers = Some(Numbers([
|
||||
descriptor.render_target_array_length,
|
||||
descriptor.render_target_width,
|
||||
descriptor.render_target_height,
|
||||
descriptor.default_raster_sample_count,
|
||||
descriptor.tile_width,
|
||||
descriptor.tile_height,
|
||||
descriptor.imageblock_sample_length,
|
||||
descriptor.threadgroup_memory_length,
|
||||
]));
|
||||
facts.has_visibility_buffer = Some(descriptor.visibility_result_buffer.is_some());
|
||||
facts.has_rate_map = Some(descriptor.rasterization_rate_map.is_some());
|
||||
}
|
||||
if matches!(reads, Reads::Whole | Reads::Positions) {
|
||||
facts.position_count = Some(descriptor.sample_positions.len() as u64);
|
||||
facts.positions = Some(
|
||||
descriptor
|
||||
.sample_positions
|
||||
.iter()
|
||||
.map(|position| (position.x.to_bits(), position.y.to_bits()))
|
||||
.collect(),
|
||||
);
|
||||
}
|
||||
facts
|
||||
}
|
||||
@@ -292,6 +292,14 @@ impl<S: Side, W: Watcher> Side for Watching<S, W> {
|
||||
self.inner.tile_descriptor_facts(library, spec)
|
||||
}
|
||||
|
||||
fn pass_descriptor_facts(
|
||||
&mut self,
|
||||
spec: &crate::pass_descriptors::PassSpec,
|
||||
) -> Answer<crate::pass_descriptors::PassDescriptorFacts> {
|
||||
let _span = self.watch("pass_descriptor_facts");
|
||||
self.inner.pass_descriptor_facts(spec)
|
||||
}
|
||||
|
||||
fn mesh_descriptor_facts(
|
||||
&mut self,
|
||||
library: Handle,
|
||||
|
||||
@@ -10,7 +10,7 @@ The suite reaches Metal through `objc2-metal`, whose Rust name for a binding is
|
||||
|
||||
Its limits, measured rather than asserted:
|
||||
|
||||
- **1090 of 1231 call sites** in the Metal leg resolve to an item of the SDK. 42 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed.
|
||||
- **1171 of 1315 call sites** in the Metal leg resolve to an item of the SDK. 42 of those resolve because only one type in `objc2-metal` binds the name at all, so no typing was needed.
|
||||
- **117 call sites resolve to no item**: an instance send whose receiver this could not type, or a message to a Metal class whose name `objc2-metal` declares on no Metal type. They cost the count 3 selectors, which the suite calls and which this attributes to no item:
|
||||
- `alloc`, which `objc2-metal` declares on no Metal type, so it is an item of no Metal container
|
||||
- `count`, bound by `MTL4CounterHeap`, `MTL4CounterHeapDescriptor`
|
||||
@@ -25,14 +25,14 @@ Its limits, measured rather than asserted:
|
||||
| | |
|
||||
|---|---|
|
||||
| implemented Metal items | 958 |
|
||||
| of those, exercised by the suite's Metal leg | 558 |
|
||||
| of those, not exercised | 400 |
|
||||
| share exercised | 58% |
|
||||
| of those exercised, no case reaching it loosens anything | 423 |
|
||||
| of those, exercised by the suite's Metal leg | 569 |
|
||||
| of those, not exercised | 389 |
|
||||
| share exercised | 59% |
|
||||
| of those exercised, no case reaching it loosens anything | 434 |
|
||||
| of those exercised, a case reaching it loosens some site | 135 |
|
||||
| case modules | 102 |
|
||||
| committed recordings | 799 |
|
||||
| distinct SDK items the Metal leg calls | 567 |
|
||||
| case modules | 103 |
|
||||
| committed recordings | 811 |
|
||||
| distinct SDK items the Metal leg calls | 578 |
|
||||
| ledger rows (a case whose gap is recorded) | 26 |
|
||||
|
||||
A tolerance names a **site of a transcript**, not an item, so the last two rows are read as written: a case that loosens one site of its own transcript may compare every other field of it exactly, and this derivation cannot tell which of a case's fields came from which Metal call. Where the distinction matters, read the case.
|
||||
@@ -62,8 +62,6 @@ Every container with an implemented item, by how much of it the suite reaches.
|
||||
| `MTLRasterizationRateMapDescriptor` | 10 | 3 | 7 | `rate_maps` |
|
||||
| `MTLRenderPipelineState` | 15 | 8 | 7 | `pipeline_facts`, `tile_threadgroups` |
|
||||
| `MTLResourceStateCommandEncoder` | 7 | 0 | 7 | |
|
||||
| `MTLRenderPassAttachmentDescriptor` | 12 | 6 | 6 | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… |
|
||||
| `MTLRenderPassDescriptor` | 17 | 11 | 6 | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… |
|
||||
| `MTLTextureDescriptor` | 19 | 13 | 6 | `argument_encoders`, `astc_textures`, `blit_encoder_commands`, `border_swizzles`… |
|
||||
| `MTLTextureViewDescriptor` | 6 | 0 | 6 | |
|
||||
| `MTLDynamicLibrary` | 5 | 0 | 5 | |
|
||||
@@ -95,7 +93,6 @@ Every container with an implemented item, by how much of it the suite reaches.
|
||||
| `MTLIndirectComputeCommand` | 12 | 10 | 2 | `indirect_commands` |
|
||||
| `MTLLinkedFunctions` | 6 | 4 | 2 | `mesh_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` |
|
||||
| `MTLPipelineBufferDescriptorArray` | 3 | 1 | 2 | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` |
|
||||
| `MTLRenderPassColorAttachmentDescriptorArray` | 3 | 1 | 2 | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… |
|
||||
| `MTLRenderPipelineColorAttachmentDescriptorArray` | 3 | 1 | 2 | `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`… |
|
||||
| `MTLSamplerState` | 3 | 1 | 2 | `pixel_downscales`, `pixel_samplers` |
|
||||
| `MTLSharedEvent` | 5 | 3 | 2 | `event_orders`, `shared_events` |
|
||||
@@ -125,8 +122,11 @@ Every container with an implemented item, by how much of it the suite reaches.
|
||||
| `MTLMeshRenderPipelineDescriptor` | 18 | 17 | 1 | `mesh_barriers`, `mesh_commands`, `mesh_draws`, `mesh_pipeline_descriptors` |
|
||||
| `MTLPipelineBufferDescriptor` | 2 | 1 | 1 | `compute_pipeline_descriptors`, `pipeline_descriptors`, `tile_pipeline_descriptors` |
|
||||
| `MTLPointerType` | 8 | 7 | 1 | `function_bindings` |
|
||||
| `MTLRenderPassAttachmentDescriptor` | 12 | 11 | 1 | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… |
|
||||
| `MTLRenderPassColorAttachmentDescriptor` | 2 | 1 | 1 | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… |
|
||||
| `MTLRenderPassColorAttachmentDescriptorArray` | 3 | 2 | 1 | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`… |
|
||||
| `MTLRenderPassDepthAttachmentDescriptor` | 3 | 2 | 1 | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… |
|
||||
| `MTLRenderPassDescriptor` | 17 | 16 | 1 | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… |
|
||||
| `MTLRenderPassStencilAttachmentDescriptor` | 3 | 2 | 1 | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`… |
|
||||
| `MTLRenderPipelineColorAttachmentDescriptor` | 10 | 9 | 1 | `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`… |
|
||||
| `MTLRenderPipelineDescriptor` | 35 | 34 | 1 | `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`… |
|
||||
@@ -155,7 +155,6 @@ A container is one Objective-C type; the SDK header it sits in is the family of
|
||||
| `MTLRasterizationRate.h` | 37 | 11 | 26 |
|
||||
| `MTLRenderPipeline.h` | 114 | 90 | 24 |
|
||||
| `MTLTexture.h` | 57 | 33 | 24 |
|
||||
| `MTLRenderPass.h` | 41 | 23 | 18 |
|
||||
| `MTLHeap.h` | 25 | 11 | 14 |
|
||||
| `MTLComputeCommandEncoder.h` | 36 | 23 | 13 |
|
||||
| `MTLIndirectCommandEncoder.h` | 35 | 22 | 13 |
|
||||
@@ -167,6 +166,7 @@ A container is one Objective-C type; the SDK header it sits in is the family of
|
||||
| `MTLCommandBuffer.h` | 21 | 13 | 8 |
|
||||
| `MTLStageInputOutputDescriptor.h` | 21 | 13 | 8 |
|
||||
| `MTLVertexDescriptor.h` | 19 | 11 | 8 |
|
||||
| `MTLRenderPass.h` | 41 | 34 | 7 |
|
||||
| `MTLResourceStateCommandEncoder.h` | 7 | 0 | 7 |
|
||||
| `MTLTypes.h` | 7 | 0 | 7 |
|
||||
| `MTLVisibleFunctionTable.h` | 7 | 0 | 7 |
|
||||
@@ -223,13 +223,13 @@ An implemented container no case's Metal leg touches. These are the families of
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| case modules | 102 |
|
||||
| committed recordings | 799 |
|
||||
| case modules | 103 |
|
||||
| committed recordings | 811 |
|
||||
| recorded runs behind a case, median | 3 |
|
||||
| recorded runs, least and most | 1 and 30 |
|
||||
| cases whose recording holds more than one outcome | 0 |
|
||||
| cases running a committed shader fixture | 448 |
|
||||
| cases whose Metal answer is `metal_run` | 715 |
|
||||
| cases whose Metal answer is `metal_run` | 727 |
|
||||
| cases whose Metal answer is `carried` | 80 |
|
||||
| cases whose Metal answer is `never_returned` | 4 |
|
||||
| modules that loosen a measured value | 11 |
|
||||
@@ -238,14 +238,14 @@ An implemented container no case's Metal leg touches. These are the families of
|
||||
| loosenings used | `Unchecked`, `Absolute`, `Ulps` |
|
||||
| justifications named | `Degradation`, `AcceptedDifference` |
|
||||
| modules forbidding a re-record | 8 |
|
||||
| `Side` methods (the suite's whole device vocabulary) | 93 |
|
||||
| `Side` methods the Metal leg reaches an SDK item through | 88 |
|
||||
| `Side` methods (the suite's whole device vocabulary) | 94 |
|
||||
| `Side` methods the Metal leg reaches an SDK item through | 89 |
|
||||
| SDK items a case's Metal leg reaches, median | 43 |
|
||||
| the same, least and most | 0 and 142 |
|
||||
| Metal call sites in the leg | 1231 |
|
||||
| distinct selectors the leg sends | 495 |
|
||||
| of those, resolved to an item of the coverage map | 491 |
|
||||
| oracles the recordings name | `apple-m3-max` ×799 |
|
||||
| Metal call sites in the leg | 1315 |
|
||||
| distinct selectors the leg sends | 532 |
|
||||
| of those, resolved to an item of the coverage map | 528 |
|
||||
| oracles the recordings name | `apple-m3-max` ×811 |
|
||||
|
||||
## By family
|
||||
|
||||
@@ -322,6 +322,7 @@ Each case module: the cases it holds, the `Side` methods it calls, and how many
|
||||
| `rate_maps` | 2 | 2 | every field | 15 |
|
||||
| `render_chains` | 3 | 3 | every field | 87 |
|
||||
| `render_depth_stencil_state` | 3 | 3 | every field | 94 |
|
||||
| `render_pass_descriptors` | 12 | 12 | every field | 34 |
|
||||
| `render_residency` | 2 | 2 | every field | 95 |
|
||||
| `render_state` | 3 | 3 | every field | 107 |
|
||||
| `rgb10a2_srgb` | 8 | 8 | every field | 48 |
|
||||
@@ -1285,70 +1286,70 @@ One row per implemented item of the SDK, in the coverage map's order. *exercised
|
||||
| item | exercised | families | cases Metal ran |
|
||||
|---|---|---|---|
|
||||
| `MTLRenderPassAttachmentDescriptor` | no | — | — |
|
||||
| `texture` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 190 |
|
||||
| `level` | no | — | — |
|
||||
| `slice` | yes | `buffer_depth_samples` | 5 |
|
||||
| `depthPlane` | no | — | — |
|
||||
| `resolveTexture` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 159 |
|
||||
| `resolveLevel` | no | — | — |
|
||||
| `resolveSlice` | no | — | — |
|
||||
| `resolveDepthPlane` | no | — | — |
|
||||
| `loadAction` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 190 |
|
||||
| `storeAction` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 190 |
|
||||
| `storeActionOptions` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 159 |
|
||||
| `texture` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 202 |
|
||||
| `level` | yes | `render_pass_descriptors` | 12 |
|
||||
| `slice` | yes | `buffer_depth_samples`, `render_pass_descriptors` | 17 |
|
||||
| `depthPlane` | yes | `render_pass_descriptors` | 12 |
|
||||
| `resolveTexture` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 171 |
|
||||
| `resolveLevel` | yes | `render_pass_descriptors` | 12 |
|
||||
| `resolveSlice` | yes | `render_pass_descriptors` | 12 |
|
||||
| `resolveDepthPlane` | yes | `render_pass_descriptors` | 12 |
|
||||
| `loadAction` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 202 |
|
||||
| `storeAction` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 202 |
|
||||
| `storeActionOptions` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 171 |
|
||||
|
||||
### `MTLRenderPassColorAttachmentDescriptor`
|
||||
|
||||
| item | exercised | families | cases Metal ran |
|
||||
|---|---|---|---|
|
||||
| `MTLRenderPassColorAttachmentDescriptor` | no | — | — |
|
||||
| `clearColor` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 169 |
|
||||
| `clearColor` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 181 |
|
||||
|
||||
### `MTLRenderPassColorAttachmentDescriptorArray`
|
||||
|
||||
| item | exercised | families | cases Metal ran |
|
||||
|---|---|---|---|
|
||||
| `MTLRenderPassColorAttachmentDescriptorArray` | no | — | — |
|
||||
| `objectAtIndexedSubscript:` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 185 |
|
||||
| `setObject:atIndexedSubscript:` | no | — | — |
|
||||
| `objectAtIndexedSubscript:` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 197 |
|
||||
| `setObject:atIndexedSubscript:` | yes | `render_pass_descriptors` | 12 |
|
||||
|
||||
### `MTLRenderPassDepthAttachmentDescriptor`
|
||||
|
||||
| item | exercised | families | cases Metal ran |
|
||||
|---|---|---|---|
|
||||
| `MTLRenderPassDepthAttachmentDescriptor` | no | — | — |
|
||||
| `clearDepth` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 164 |
|
||||
| `depthResolveFilter` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 159 |
|
||||
| `clearDepth` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 176 |
|
||||
| `depthResolveFilter` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 171 |
|
||||
|
||||
### `MTLRenderPassDescriptor`
|
||||
|
||||
| item | exercised | families | cases Metal ran |
|
||||
|---|---|---|---|
|
||||
| `MTLRenderPassDescriptor` | no | — | — |
|
||||
| `renderPassDescriptor` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 190 |
|
||||
| `colorAttachments` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 185 |
|
||||
| `depthAttachment` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 164 |
|
||||
| `stencilAttachment` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 164 |
|
||||
| `visibilityResultBuffer` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 159 |
|
||||
| `renderTargetArrayLength` | no | — | — |
|
||||
| `imageblockSampleLength` | no | — | — |
|
||||
| `threadgroupMemoryLength` | no | — | — |
|
||||
| `tileWidth` | yes | `tile_threadgroups` | 8 |
|
||||
| `tileHeight` | yes | `tile_threadgroups` | 8 |
|
||||
| `defaultRasterSampleCount` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 159 |
|
||||
| `renderTargetWidth` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 159 |
|
||||
| `renderTargetHeight` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 159 |
|
||||
| `setSamplePositions:count:` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 159 |
|
||||
| `getSamplePositions:count:` | no | — | — |
|
||||
| `rasterizationRateMap` | no | — | — |
|
||||
| `renderPassDescriptor` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 202 |
|
||||
| `colorAttachments` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `mesh_barriers`, `mesh_commands`, `mesh_draws`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rgb10a2_srgb`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `tile_threadgroups`, `visibility`, `wide_points` | 197 |
|
||||
| `depthAttachment` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 176 |
|
||||
| `stencilAttachment` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 176 |
|
||||
| `visibilityResultBuffer` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 171 |
|
||||
| `renderTargetArrayLength` | yes | `render_pass_descriptors` | 12 |
|
||||
| `imageblockSampleLength` | yes | `render_pass_descriptors` | 12 |
|
||||
| `threadgroupMemoryLength` | yes | `render_pass_descriptors` | 12 |
|
||||
| `tileWidth` | yes | `render_pass_descriptors`, `tile_threadgroups` | 20 |
|
||||
| `tileHeight` | yes | `render_pass_descriptors`, `tile_threadgroups` | 20 |
|
||||
| `defaultRasterSampleCount` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 171 |
|
||||
| `renderTargetWidth` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 171 |
|
||||
| `renderTargetHeight` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 171 |
|
||||
| `setSamplePositions:count:` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 171 |
|
||||
| `getSamplePositions:count:` | yes | `render_pass_descriptors` | 12 |
|
||||
| `rasterizationRateMap` | yes | `render_pass_descriptors` | 12 |
|
||||
|
||||
### `MTLRenderPassStencilAttachmentDescriptor`
|
||||
|
||||
| item | exercised | families | cases Metal ran |
|
||||
|---|---|---|---|
|
||||
| `MTLRenderPassStencilAttachmentDescriptor` | no | — | — |
|
||||
| `clearStencil` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 164 |
|
||||
| `stencilResolveFilter` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 159 |
|
||||
| `clearStencil` | yes | `buffer_depth_samples`, `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 176 |
|
||||
| `stencilResolveFilter` | yes | `buffer_target_clears`, `color_write_masks`, `compute_render_chains`, `discard_hoist`, `draw_state_changes`, `extended_range_blends`, `extended_range_targets`, `fetch_ordered`, `frame_chains`, `half_output_blends`, `host_page_writes`, `indirect_commands`, `int_attributes`, `render_chains`, `render_depth_stencil_state`, `render_pass_descriptors`, `render_residency`, `render_state`, `rotated_planes`, `rotated_targets`, `sample_positions`, `shader_stencil`, `snorm_tile_store`, `srgb_fetch`, `visibility`, `wide_points` | 171 |
|
||||
|
||||
### `MTLRenderPipelineColorAttachmentDescriptor`
|
||||
|
||||
@@ -1838,6 +1839,9 @@ The Metal leg sends these selectors to a receiver this typed, and `scripts/metal
|
||||
| `MTLHeapDescriptor` | `new` |
|
||||
| `MTLIndirectCommandBufferDescriptor` | `new` |
|
||||
| `MTLMeshRenderPipelineDescriptor` | `new` |
|
||||
| `MTLRenderPassColorAttachmentDescriptor` | `new` |
|
||||
| `MTLRenderPassDepthAttachmentDescriptor` | `new` |
|
||||
| `MTLRenderPassStencilAttachmentDescriptor` | `new` |
|
||||
| `MTLRenderPipelineDescriptor` | `new` |
|
||||
| `MTLSamplerDescriptor` | `new` |
|
||||
| `MTLStencilDescriptor` | `new` |
|
||||
|
||||
Reference in new issue
Block a user