libdrm_amdgpu being forked and merged into Mesa
Felix Kuehling
felix.kuehling at amd.com
Thu Oct 24 14:19:55 UTC 2024
I'm not sure what this means. ROCm allocates all its virtual address
space with mmap. That includes address space for BOs imported with the
interop APIs.
We are sharing the GPU virtual address space with Mesa since we're using
the same render nodes. So if Mesa's GPU virtual address space management
conflicts with the CPU virtual address space that ROCm shares between
CPU and GPU, that would be a problem.
Regards,
Felix
On 2024-10-24 09:24, Alex Deucher wrote:
> On Thu, Oct 24, 2024 at 8:38 AM Christian König
> <ckoenig.leichtzumerken at gmail.com> wrote:
>> Completely agree, but that's a platform decision which Alex needs to make.
> + Felix
>
> Does buffer sharing with ROCm depend on the shared VA space?
>
> Alex
>
>> Christian.
>>
>> Am 24.10.24 um 14:16 schrieb Marek Olšák:
>>
>> I don't think we need to share VA space. APIs usually share one or two buffers. That's almost nothing compared to the size of the occupied VA space. They also likely map them again for themselves - APIs don't share any virtual addresses as far as I know.
>>
>> Marek
>>
>> On Thu, Oct 24, 2024, 08:12 Christian König <ckoenig.leichtzumerken at gmail.com> wrote:
>>> Am 22.10.24 um 06:06 schrieb Marek Olšák:
>>>> Hi,
>>>>
>>>> The MR is up:
>>>> https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31756
>>>>
>>>> It's good to go as long as there is no functional issue.
>>> Finally getting rid of all the mid-layering? What about shared VA-space?
>>>
>>> Regards,
>>> Christian.
>>>
>>>> libdrm_amdgpu will still be relevant for PAL, ROCm, and xf86-video-amdgpu.
>>>>
>>>> Marek
More information about the mesa-dev
mailing list