Skip to content

vulkan/gpu: properly clamp vulkan buffer sizes

Niklas Haas requested to merge haasn/libplacebo:max_buf_size into master

Avoids triggering assertions added by 3bd1c970.

This is not a very elegant solution, by the way. Actually, it would be better to query the maximum buffer size specifically for use as UBOs etc, e.g. by allocating a test buffer and querying the driver for its allowed memory types, then looking at only those memory types.

Merge request reports