Skip to content

[HOLD] panfrost,v3d,asahi,lima,vc4,tegra,etnaviv,freedreno: Don't allocate scanout buffers for PIPE_BIND_SHARED requests

PIPE_BIND_SHARED means that buffer can be shared between processes
using dma-buf fd (or flink name).

Such buffers will not be used by display controllers
(otherwise PIPE_BIND_SCANOUT must be requested additionally).

To allocate them using renderonly mesa3d will use DRM_IOCTL_MODE_CREATE_DUMB
ioctl on display controller DRM node, which use CMA for most of the platforms.

Moreover renderonly will not select best modifier for such allocation
(usually only LINEAR is supported).

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5237
Edited by Roman Stratiienko

Merge request reports