Skip to content
Snippets Groups Projects
Commit f53ebfb4 authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen
Browse files

radv: Do not use extra descriptor space for the 3rd plane.


While ImageFormatProperties returns the number of internal descriptors,
it turns out that applications do not need to actually allocate more
descriptors in the descriptor pool.

So if we make descriptors with more planes larger we have to be
convervative and always allocate space for the larger descriptors
which is a waste given the low usage of this ext.

So let us make use of the fact that 3plane formats all have the
same formats & dimensions for the last two planes. This way we
only need the first half of the descriptor of the 3rd plane and
can share the second half of the second plane.

This allows us to use 16 bytes for the descriptor which nicely
fits into the 16 bytes that are unused right next to the sampler.

Fixes: 5564c382 "radv: Update descriptor sets for multiple planes."
Reviewed-by: default avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
parent d6dfb2cf
No related branches found
No related tags found
No related merge requests found
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