Skip to content

llvmpipe: handle llvmpipe_resource_map() errors

Simon Ser requested to merge emersion/mesa:llvmpipe-map-assert into main

What does this MR do and why?

llvmpipe: handle llvmpipe_resource_map() errors

llvmpipe_resource_map() may fail, e.g. when the DMA-BUF cannot be
mmap'ed. Handle the error, either by returning NULL or by asserting.
Asserting is done in places where there is no good way to bubble up
the error (and is done in other places already, e.g. in
init_scene_texture).

Signed-off-by: Simon Ser <contact@emersion.fr>

Merge request reports

Loading