Skip to content
Snippets Groups Projects
Commit 191dfbce authored by Niklas Haas's avatar Niklas Haas
Browse files

opengl: fix and refine memory barriers

The current memory barriers were either used illegally
(tex_gl->target??), overspecified (e.g. the forced barrier after
glDispatchCompute), or just plain missing (e.g. barriers for storage
images that might also be used in other ways).

Fix this mess by making the barrier usage consistent:
1. Only submit memory barriers on descriptors when unbinding them from
   shaders that might write to the resource
2. Skip unnecessary memory barriers for readonly resources
3. Submit *all* the barriers required for the object's usage flags
parent eb859c1a
No related branches found
No related tags found
1 merge request!104opengl: fix and refine memory barriers
Pipeline #18502 passed with stages
in 7 minutes and 28 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment