tu: Create drm fd per logical device
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Tue, 11 Oct 2022 13:43:31 +0000 (15:43 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 10 May 2023 20:57:02 +0000 (20:57 +0000)
commit3a8fac0ccd951d2d0840b6f95c85a60eca75b13b
treec9d2489fbf66f37b34cf12e858528b42380d3cd5
parent0d9ceeee3f686de0a59a5ba6d90e12c7b7bce138
tu: Create drm fd per logical device

The main reason is to simplify BO managment when
bufferDeviceAddressCaptureReplay would be enabled.

Having to track some BO information in physical device and some
info in logical device gets challenging when BOs are shared
between logical devices.

Other benefits:
- Isolation from hangs in other logical devices;
- Each logical device limited only by its own address space size.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18254>
src/freedreno/vulkan/tu_device.cc
src/freedreno/vulkan/tu_device.h
src/freedreno/vulkan/tu_knl.cc
src/freedreno/vulkan/tu_knl.h
src/freedreno/vulkan/tu_knl_drm_msm.cc
src/freedreno/vulkan/tu_knl_kgsl.cc