Skip to content

Conversation

@rjodinchr
Copy link
Contributor

On Mali devices, using the ARM DDK, some application quickly get to a point where the driver consider the memory as fragemented and it not capable of allocated new descriptor_set anymore.

To avoid that, do not free descriptor_set, and when it is not possible to allocate new ones, reuse ones that have been release from the application point of view.

@rjodinchr rjodinchr force-pushed the pr/reuse-descriptor-set branch 3 times, most recently from 033342b to 344ef23 Compare August 21, 2025 14:15
@rjodinchr
Copy link
Contributor Author

@kpet could you please refresh the swiftshader artifact?

@rjodinchr rjodinchr force-pushed the pr/reuse-descriptor-set branch 2 times, most recently from deb5298 to 85db145 Compare August 21, 2025 16:53
@rjodinchr
Copy link
Contributor Author

@kpet I'm having trouble reproducing, and just looking at the code I don't see anything wrong. Can you have a quick look, to see if you spot something.
Thanks

@rjodinchr rjodinchr force-pushed the pr/reuse-descriptor-set branch 6 times, most recently from e5ede7c to 36a408a Compare September 1, 2025 16:08
@rjodinchr rjodinchr force-pushed the pr/reuse-descriptor-set branch from 36a408a to aa6ea64 Compare September 8, 2025 14:50
@rjodinchr
Copy link
Contributor Author

🎉 CI is green!
The issue was that free_descriptor_sets can be called with an empty descriptor set when cvk_kernel_argument_values is released or destroyed without having setup descriptor sets with setup_descriptor_sets.
It lead to empty descriptor sets being pushed to the array, then pop from the array to be used while empty.

On Mali devices, using the ARM DDK, some application quickly get to a
point where the driver consider the memory as fragemented and it not
capable of allocated new descriptor_set anymore.

To avoid that, do not free descriptor_set, reuse ones that have been
release from the application point of view.
@rjodinchr rjodinchr force-pushed the pr/reuse-descriptor-set branch from aa6ea64 to 5c83b8a Compare September 9, 2025 15:59
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