<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/src/statistics_sum.comp, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-24T12:35:29+00:00</updated>
<entry>
<title>d3d12/vulkan: a mesh segment's clipping invocations come from a mesh-primitives query (D3D-MESH-CLIPPING-COUNTER)</title>
<updated>2026-11-24T12:35:29+00:00</updated>
<author>
<name>Shang Li</name>
<email>144836394+Mby159@users.noreply.github.com</email>
</author>
<published>2026-11-24T08:55:25+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=1bb23a28036ffc7ec1c7207afe5fa6e9470153b3'/>
<id>urn:sha1:1bb23a28036ffc7ec1c7207afe5fa6e9470153b3</id>
<content type='text'>
Where the device has the meshShaderQueries feature of VK_EXT_mesh_shader, the number of
primitives the mesh shader emitted comes from a VK_QUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT
query run around each mesh segment, and it is added as the clipping invocations of that
segment. CPrimitives stays 0: Vulkan has no clipped-primitive counter, and D3D12's
CPrimitives is the clipper's output.

Claim: D3D-MESH-CLIPPING-COUNTER
Depends on: #540

</content>
</entry>
<entry>
<title>d3d12/vulkan: the mesh statistics pool enables no forbidden counter (D3D-291)</title>
<updated>2026-11-24T12:35:29+00:00</updated>
<author>
<name>Shang Li</name>
<email>144836394+Mby159@users.noreply.github.com</email>
</author>
<published>2026-11-24T07:14:59+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=916dbc619df63fb169cf5e587f4d53d8884eaccd'/>
<id>urn:sha1:916dbc619df63fb169cf5e587f4d53d8884eaccd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Runtime: pipeline-statistics queries around mesh draws (D3D-291) (#2359)</title>
<updated>2026-11-23T15:34:02+00:00</updated>
<author>
<name>LloydNicholson</name>
<email>34131158+LloydNicholson@users.noreply.github.com</email>
</author>
<published>2026-11-23T15:34:02+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=56e607ac851f39b583b25e047c640b5f754ce109'/>
<id>urn:sha1:56e607ac851f39b583b25e047c640b5f754ce109</id>
<content type='text'>
Squash-merged after diff review of PR #2359</content>
</entry>
<entry>
<title>Runtime: resolves inside a pipeline-statistics query (D3D-162)</title>
<updated>2026-11-22T11:51:45+00:00</updated>
<author>
<name>Hadagalberto Junior</name>
<email>hadagalberto.junior1@gmail.com</email>
</author>
<published>2026-11-22T11:28:13+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=170dc22518cbea6f469e838b283a2a7b45978354'/>
<id>urn:sha1:170dc22518cbea6f469e838b283a2a7b45978354</id>
<content type='text'>
Replay refused binary occlusion resolves, and ordinary resolves that need a sum, while a pipeline-statistics
query was active: their compute helper would count in the application's CSInvocations.

A statistics query that contains a resolve (other than a timestamp copy) is now split. Its counters go to
physical PIPELINE_STATISTICS segments in a pool of the submission's own (flags 0x7ff, as the device creates
the heap). A segment ends before each such resolve and the next begins after it, so no helper dispatch runs
inside the application's query. The query's result is the sum of its segments: a new 11-counter compute shader
(statistics_sum.comp, encoded in statistics_sum_spirv.h like the occlusion helpers) adds them on the
occlusion-resolve scratch buffer. That sum is a helper dispatch too, and is kept out of any statistics query
still running by the same split. Whether a resolve dispatches is only known when the list is planned against
the heaps, so every such resolve splits the query.

The single-list replay() has no segment pool. It keeps refusing a resolve that dispatches inside statistics,
and now allows a binary resolve that only writes zeros. SetPredication and predicated copies are still refused
while statistics are active.

Tests, all with the Khronos validation layer on:
- vk_binary_occlusion: a binary resolve inside one statistics query, then the statistics sum of that query
  inside a second one. Every counter of both is 0. With the split disabled, CSInvocations reads 64.
- vk_overlapping_occlusion: a 261-segment occlusion sum inside a statistics query, with a native draw in each
  segment. The split query, and a second one split around the statistics sum, equal two unsplit queries with the
  same draws on every counter, and CSInvocations is 0.
- replay_query_predication (CPU): the exact begin/end/dispatch order of a split query, and the refusal without a
  segment pool.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
