mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
render/vulkan: drop unused fields from wlr_vk_format_modifier_props
export_imported is never used, and dmabuf_flags is already checked in query_modifier_support().
This commit is contained in:
parent
ab6607b950
commit
0730552e85
3 changed files with 1 additions and 13 deletions
|
|
@ -453,7 +453,7 @@ VkImage vulkan_import_dmabuf(struct wlr_vk_renderer *renderer,
|
|||
assert(plane_count < WLR_DMABUF_MAX_PLANES);
|
||||
struct wlr_vk_format_modifier_props *mod =
|
||||
vulkan_format_props_find_modifier(fmt, attribs->modifier, for_render);
|
||||
if (!mod || !(mod->dmabuf_flags & VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT)) {
|
||||
if (!mod) {
|
||||
wlr_log(WLR_ERROR, "Format %"PRIx32" (%.4s) can't be used with modifier "
|
||||
"%"PRIx64, attribs->format, (const char*) &attribs->format,
|
||||
attribs->modifier);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue