vulkano-rs / vulkano

Safe and rich Rust wrapper around the Vulkan API
Apache License 2.0
4.48k stars 433 forks source link

Fix unnecessarily strict validation for DRM format modifiers #2469

Closed Rua closed 6 months ago

Rua commented 7 months ago

Changelog:

### Bugs fixed
- Unnecessarily strict validation that disallowed providing a single DRM format modifier without an explicit layout.

The previous code rejected leaving drm_format_modifier_plane_layouts empty if drm_format_modifiers contained exactly one element. However, this should be allowed; filling drm_format_modifier_plane_layouts is always optional.