In case of prime, allocate linear_buffer from display GPU VRAM instead of render GPU
- Jun 03, 2021
-
-
Yogesh Mohan Marmithu authored
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: <mesa/mesa!10595>
-
Yogesh Mohan Marmithu authored
The created DRI screen can be used to allocate VRAM memory from display GPU in case of prime. v2: add comments to make code readable (Pierre-Eric) remove driver name match check v3: keep old path for non-mesa driver (Michel Dänzer) v4: fallback if driver not found for display GPU (Michel Dänzer) fallback if create screen fail for display gpu (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: <!10595>
-
Yogesh Mohan Marmithu authored
Keep the display fd open for creating DRI screen on display gpu in case of prime. v2: initialize psc->fd_display_gpu early (Michel Dänzer) fix display gpu fd leakage (Michel Dänzer) v3: fix more display gpu fd leakage (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:
Michel Dänzer <mdaenzer@redhat.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Part-of: <!10595>
-