mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Remove support for DMA-BUF flags
They are never used in practice, which makes all of our flag handling effectively dead code. Also, APIs such as KMS don't provide a good way to deal with the flags. Let's just fail the DMA-BUF import when clients provide flags.
This commit is contained in:
parent
9a4e1095ca
commit
a04cfca4da
15 changed files with 12 additions and 83 deletions
|
|
@ -605,19 +605,6 @@ static struct wlr_texture *vulkan_texture_from_dmabuf(struct wlr_renderer *wlr_r
|
|||
goto error;
|
||||
}
|
||||
|
||||
uint32_t flags = attribs->flags;
|
||||
if (flags & WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT) {
|
||||
texture->invert_y = true;
|
||||
flags &= ~WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT;
|
||||
}
|
||||
|
||||
if (flags != 0) {
|
||||
wlr_log(WLR_ERROR, "dmabuf flags %x not supported/implemented on vulkan",
|
||||
attribs->flags);
|
||||
// NOTE: should probably make this a critical error in future
|
||||
// return VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
const struct wlr_pixel_format_info *format_info = drm_get_pixel_format_info(attribs->format);
|
||||
assert(format_info);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue