-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix occasional GPU crash when a smaller descriptor set replaces a lar…
…ger one. If a descriptor set with fewer than 64 descriptors replaced one with more, the resources it contained were not made resident to the GPU, due to MVKBitArray thrashing incorrectly when transitioning between static and dynamic memory allocations. - Overhaul MVKBitArray design: - Never downsize memory allocation unless reset() is called. - No longer support static allocation for smaller sizes, to avoid thrashing between dynamic and static allocs when frequently resizing up and down. - Use realloc() instead of malloc/copy to improve performance. - Simplify tracking of partially and fully disabled sections. - Rename setXX() and clearXX() functions to enableXX() & disableXX(). - Rename several internal functions. - getIndexOfFirstEnabledBit() & enumerateEnabledBits() no longer have an option to disable the bit. - MVKDescriptorPool track highest descriptor set allocated, instead of querying MVKBitArray.
- Loading branch information
1 parent
b2d7ad6
commit 80fb6ee
Showing
4 changed files
with
136 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.