Conformance: no case declares shared-in-system-memory
The runtime's side announces only the codes of the precision notes its states, textures and sampler states carry. shared-in-system-memory is not one: it was the deleted runtime's notice for a Shared buffer on a device without unified memory. Every case that read an answer back through a Shared buffer declared it, so the declaration held on no run. What goes: - the declaration in every case, and the prose and measurements that justified it; - the allowances methods left returning nothing (the trait's default stands), and the helpers that only carried the declaration: replay::shared_memory_notice, fresh-contents' copy of it, mesh_draws::mesh_notice_allowances, buffer-tails' and buffer-textures' allowances, render-depth-stencil-state's pass_notices, blit-encoder-commands' NOTICES and its notices field, sparse-mappings' reaches_a_shared_buffer, format-footprints' shared_texture_buffers, and the entries of sample-positions' and visibility's notice lists; - the SharedInSystemMemory kind, its ALL entry and its code; - compressed-moves' prose about notices of the deleted runtime (staged-texture-copy, shadowed-texture); - imports that only the removed code used; - docs/FAST-PATHS.md's sentence on the declaration, and coverage.py's count of the helper. The prose a removed paragraph shared with other notices is kept for those notices. Tests that counted a case's declarations count what is left; that includes depth-resolve-pairs, stencil-resolve-pairs and pass-attachment-pairs, whose counts the previous commit left at the deleted kinds'. A new test, every_kind_is_a_catalogued_precision_note, holds every kind to an entry of docs/API.md section 9; it fails on any kind no precision note announces. Verified: cargo fmt --all. The gate runs once over this range.
This commit is contained in:
1 parent
a7320ad3f9
commit
23b8d08409
148 files changed
+304
-2630
No files matched your search
@@ -485,15 +485,10 @@ def _is_declaration(path: str) -> bool:
|
||||
|
||||
|
||||
def _declarations(text: str) -> int:
|
||||
"""How many notice declarations `text` makes.
|
||||
|
||||
`shared_memory_notice` is one of them: it is `notice_allowance` of the one code a venue's
|
||||
memory model provokes, which every family that reads an answer back through a `Shared` buffer
|
||||
has to declare, so a module that calls it has declared a notice.
|
||||
"""
|
||||
return len(
|
||||
re.findall(r"\b(?:notice_allowance|shared_memory_notice)\s*\(", text)
|
||||
) + sum(1 for path in _allowance_paths(text) if _is_declaration(path))
|
||||
"""How many notice declarations `text` makes."""
|
||||
return len(re.findall(r"\bnotice_allowance\s*\(", text)) + sum(
|
||||
1 for path in _allowance_paths(text) if _is_declaration(path)
|
||||
)
|
||||
|
||||
|
||||
def _tolerances(text: str) -> int:
|
||||
|
||||
Reference in new issue
Block a user