mesa/src/loader
Yogesh Mohanmarimuthu 0e856b95c5 loader: allocate VRAM in display GPU in case of prime
Allocates VRAM in display GPU in case of prime. Then the dma_buf is imported
into prime GPU.

v2: add comments to make code more readable (Pierre-Eric)
    removed if check limiting p2p only for matching driver name
v3: keep old path for non mesa driver (Michel Dänzer)
v4: destroy linear_buffer_display_gpu after import (Michel Dänzer)
    fall back if linear_buffer_display_gpu alloc fail (Michel Dänzer)

Signed-off-by: Yogesh Mohanmarimuthu <yogesh.mohanmarimuthu@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10595>
2021-06-03 09:12:32 +00:00
..
Android.mk loader: prefer iris on Android 2021-03-31 06:28:18 +00:00
Makefile.sources dri: add loader_dri_create_image helper 2021-05-19 16:54:19 +00:00
loader.c loader: Print dlerror() output in the failure message 2020-11-04 21:45:37 +00:00
loader.h loader: replace int/1/0 with bool/true/false 2019-10-07 21:30:16 +01:00
loader_dri3_helper.c loader: allocate VRAM in display GPU in case of prime 2021-06-03 09:12:32 +00:00
loader_dri3_helper.h loader: allocate VRAM in display GPU in case of prime 2021-06-03 09:12:32 +00:00
loader_dri_helper.c dri: don't call modifier interfaces when modifiers_count is 0 2021-05-21 08:20:58 +00:00
loader_dri_helper.h dri: add loader_dri_create_image helper 2021-05-19 16:54:19 +00:00
meson.build dri: add loader_dri_create_image helper 2021-05-19 16:54:19 +00:00
pci_id_driver_map.c loader: s/int/bool/ for predicate result 2019-10-07 21:30:16 +01:00
pci_id_driver_map.h i915c: Add a symlink for i830_dri.so 2021-05-03 23:03:09 +00:00