mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-06 04:06:11 -05:00
vulkan: make use of new pixel_format_is_ycbcr function
This commit is contained in:
parent
7ca85d7a21
commit
8f2ef81666
5 changed files with 20 additions and 27 deletions
|
|
@ -86,7 +86,6 @@ struct wlr_vk_format {
|
|||
uint32_t drm;
|
||||
VkFormat vk;
|
||||
VkFormat vk_srgb; // sRGB version of the format, or 0 if nonexistent
|
||||
bool is_ycbcr;
|
||||
};
|
||||
|
||||
extern const VkImageUsageFlags vulkan_render_usage, vulkan_shm_tex_usage, vulkan_dma_tex_usage;
|
||||
|
|
@ -125,6 +124,7 @@ void vulkan_format_props_query(struct wlr_vk_device *dev,
|
|||
const struct wlr_vk_format_modifier_props *vulkan_format_props_find_modifier(
|
||||
const struct wlr_vk_format_props *props, uint64_t mod, bool render);
|
||||
void vulkan_format_props_finish(struct wlr_vk_format_props *props);
|
||||
bool vulkan_format_is_ycbcr(const struct wlr_vk_format *format);
|
||||
|
||||
struct wlr_vk_pipeline_layout_key {
|
||||
enum wlr_scale_filter_mode filter_mode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue