Skip to content

r600: Fix userspace pointer support for evergreen compute.

Jason Volk requested to merge jevolk/mesa:r600_userptr into main

Resources returned by r600_buffer_from_user_memory() are not compatible with the evergreen compute memory pool, though they're added to it anyway.

This results in a segfault reproducible from Clover when the user passes CL_MEM_USE_HOST_PTR.

This patch allows user_ptr resources to participate in the compute global memory pool as intended. The result appears to finally allow for zero-copy DMA out of userspace for anonymous pages.

Merge request reports