- 10 Aug, 2023 2 commits
-
-
Zebediah Figura authored
For discard maps on deferred contexts, we currently blit from the upload buffer to the resource. This is necessary because command lists can be reused and submitted multiple times—we cannot simply have the buffer take ownership, as for discard maps on immediate contexts. However, it is very common for applications to use command lists only once before throwing them away—in essence taking advantage of the feature only for the multithreading advantages it allows. Therefore we take advantage of this pattern by trying to rename the buffer anyway. In order to do this we introduce a refcount for BO pointers. When writing to a buffer BO, we first check whether the buffer "owns" the BO—i.e. whether it has a refcount of 1—and if not, we create a new BO for the buffer and copy the contents of the old BO to the new BO. That is, we perform mostly-transparent copy-on-write. This improves performance, and reduces CPU usage, in Assassin's Creed: Unity.
-
Zebediah Figura authored
Fixes: c065b4fe
-
- 27 Jul, 2023 3 commits
-
-
Zebediah Figura authored
-
Zebediah Figura authored
-
Zebediah Figura authored
All other code touching stateblocks is in stateblock.c; this is a more intuitive and modular place for it. This may merit renaming the function, but should be a subsequent commit.
-
- 14 Jul, 2023 1 commit
-
-
Zebediah Figura authored
-
- 23 May, 2023 3 commits
-
-
Paul Gofman authored
-
Paul Gofman authored
-
Paul Gofman authored
-
- 04 May, 2023 1 commit
-
-
Zebediah Figura authored
Get rid of the create_swapchain_texture callback.
-
- 24 Mar, 2023 5 commits
-
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
- 21 Mar, 2023 5 commits
-
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
- 16 Mar, 2023 5 commits
-
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
- 14 Mar, 2023 5 commits
-
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
- 08 Mar, 2023 5 commits
-
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
- 06 Mar, 2023 5 commits
-
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-
Max Figura authored
-