mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
render/vulkan: Dynamically handle pipeline creation for textures
If we ever wanted to handle dynamic state that requires new pipelines such as using different texture filters those can be added here with more ease.
This commit is contained in:
parent
220402b717
commit
97fdd57eb2
4 changed files with 107 additions and 64 deletions
|
|
@ -689,6 +689,8 @@ static struct wlr_vk_texture *vulkan_texture_from_dmabuf(
|
|||
}
|
||||
|
||||
texture->format = &fmt->format;
|
||||
texture->transform = !texture->format->is_ycbcr && texture->format->is_srgb ?
|
||||
WLR_VK_TEXTURE_TRANSFORM_IDENTITY : WLR_VK_TEXTURE_TRANSFORM_SRGB;
|
||||
|
||||
texture->pipeline_layout = vulkan_get_pipeline_layout(renderer, texture->format);
|
||||
if (texture->pipeline_layout == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue