Descriptionozone: choose a card useful for display rather than by default
Due to the introduction of VGEM, /dev/dri/card0 is not necessarily capable of
display. This patch adds a procedure that opens each card in order starting
from card0 and returns an open fd of the first card usable for display. Also,
the defaults are taken out of the ozone_platforms and dri_wrapper will use the
new procedure when no default card path is given. Usability for the purposes of
display is determined by success of the DRM_IOCTL_MODE_GETRESOURCES ioctl.
TEST=run chromiumos freon in qemu
BUG=
R=dnicoara@chromium.org
Committed: https://crrev.com/d555b733bcb6b6a1ce551d15f3c642e7c91a6295
Cr-Commit-Position: refs/heads/master@{#316632}
Patch Set 1 #
Total comments: 4
Patch Set 2 : count crtcs #Patch Set 3 : rebase #
Messages
Total messages: 14 (3 generated)
|