diff options
| author | shdann <28006689+shdann@users.noreply.github.com> | 2026-11-23 04:50:46 +0300 |
|---|---|---|
| committer | shdann <28006689+shdann@users.noreply.github.com> | 2026-11-23 04:50:46 +0300 |
| commit | a1ec0cbca988e31347f1ca81df8e53367b0798bf (patch) | |
| tree | 031bd7969c9127f25370364a0c3d512b6005ac79 /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | 03b09a086592a197db64d91655c6e65c30764d96 (diff) | |
d3d12_xs: a proxied call writes no shared atomic after the first call of its slot
note_slot, note_heap_slot and note_child_slot did a fetch_add on the slot's hit
counter and a compare_exchange_strong on its first-call flag for each proxied
call. The compare-exchange takes the cache line for writing also when it
fails, and the flags of all slots share one or two lines, so threads that
call different slots slowed each other.
The first-call flag is now read before the compare-exchange. The hit counters
are test helpers: they count from the first call of a *_slot_hits reader or
of reset_device_proxy_stats, so a title's calls do not write them.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions