Skip to content

vkr: fail get_blob if exported dma_buf is smalled than requested blob_size

Yiwei Zhang requested to merge zzyiwei/virglrenderer:size-req into master

This is a follow up from the discussion in !651 (merged)

The size from Venus memory allocation cannot be changed due to dedicated allocation requirement from the Vulkan spec. So the actual dmabuf can be allocated with a non-page-aligned size while the blob size (also is the size used for mapping) request from the client is page-aligned. We must fail the blob creation if the size of undelying dmabuf allocated is not page-aligned.

Edited by Yiwei Zhang

Merge request reports

Loading