Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to managing descriptor set allocation in a Metal argument buffer. #2392

Merged

Conversation

billhollings
Copy link
Contributor

  • Fix regression in MVKBitArray::getIndexOfFirstEnabledBit() that didn't continue searching beyond the initial start section.
  • After freeing the last descriptor set in Metal argument buffer, support replacing it with a longer descriptor set.
  • MVKMetalArgumentBuffer track encoded size of descriptor set.
  • MVKDescriptorPool: Determine the offset of allocated space in argument buffer for a descriptor set from the previous descriptor set allocation, instead of using a separate member variable.

Replaces PR #2388.

- Fix regression in MVKBitArray::getIndexOfFirstEnabledBit() that
  didn't continue searching beyond the initial start section.
- After freeing the last descriptor set in Metal argument buffer,
  support replacing it with a longer descriptor set.
- MVKMetalArgumentBuffer track encoded size of descriptor set.
- MVKDescriptorPool: Determine the offset of allocated space in
  argument buffer for a descriptor set from the previous descriptor
  set allocation, instead of using a separate member variable.
@billhollings billhollings force-pushed the fix-ds-alloc-in-mtlargbuff branch from 3f1fb8a to bdc646c Compare November 7, 2024 16:43
@billhollings billhollings removed the request for review from cdavis5e November 7, 2024 20:23
@billhollings billhollings merged commit 26c7b02 into KhronosGroup:main Nov 7, 2024
6 checks passed
@billhollings billhollings deleted the fix-ds-alloc-in-mtlargbuff branch November 7, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant