mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
kmsdrm: Explicitly set the surface transform and alpha mode
This is required by the specification. Set these to sensible defaults. Fixes a validation layer error that occurs otherwise.
This commit is contained in:
parent
760074270a
commit
d6641d7123
@ -427,6 +427,8 @@ SDL_bool KMSDRM_Vulkan_CreateSurface(_THIS,
|
|||||||
/* For now, simply use the first plane. */
|
/* For now, simply use the first plane. */
|
||||||
display_plane_surface_create_info.planeIndex = 0;
|
display_plane_surface_create_info.planeIndex = 0;
|
||||||
display_plane_surface_create_info.imageExtent = image_size;
|
display_plane_surface_create_info.imageExtent = image_size;
|
||||||
|
display_plane_surface_create_info.transform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;
|
||||||
|
display_plane_surface_create_info.alphaMode = VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR;
|
||||||
result = vkCreateDisplayPlaneSurfaceKHR(instance,
|
result = vkCreateDisplayPlaneSurfaceKHR(instance,
|
||||||
&display_plane_surface_create_info,
|
&display_plane_surface_create_info,
|
||||||
NULL,
|
NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user