Skip to content

libweston: remove checks for invalid dmabuf

Weston should not verify the attributes of the planes of the dmabuf that is imported.

Verifying the offset and stride of the dmabuf is only correct if the dmabuf is linear. If the buffer contains planes with some other format (e.g., tiled) or other information, these checks are wrong.

The driver has to perform all the checks again during dmabuf import and has more knowledge about the buffer contents. Therefore, we can just remove these checks and rely on the driver to fail the import if the buffer is invalid.

Merge request reports

Loading