[Memory Model] Contradiction with vanilla spec regarding data race

Aperta
#2,792 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@jeffbolznv ci sta già lavorando.

Dal 18/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Memory Model TSG
Memory Model

The Memory Model provides one of the definitions of location-ordered, which refers to synchronization using Vulkan API functions (for example, via vkCmdPipelineBarrier):

Image

As you can see, if another write follows the write, then only the availability operation needs to be performed (I omit the memory domain operation).

The location-ordered relation is necessary to avoid data races:

Image
Vanilla spec

Vanilla Spec states:

Image

This means that a visibility operation must be used after an availability operation in the case of write-after-write.

If you don't use the correct memory dependencies, it will lead to a data race:

Image
Question

The Memory Model and Vanilla Spec give slightly different instructions on how to avoid data races. What is true in this case?

P.S. Some other issues also highlight this contradiction, but since it still hasn't been resolved, I decided to open a new issue.

Lingua principale
JavaScript
Stelle
3.4k
Fork
555
Merge medio
3g 10h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di KhronosGroup/Vulkan-Docs

Tutte le issue di KhronosGroup/Vulkan-Docs

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.