summaryrefslogtreecommitdiff
path: root/tests/vc4_create_bo.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-11-13 10:37:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-11-16 11:56:03 +0000
commit3a243cb110462dbec2f9f1e3299e425b39d790c6 (patch)
tree233baee1c89f8e396c4d5ae4f4e00274dcef9784 /tests/vc4_create_bo.c
parent504f065fe20c6db0f4419dd3ef990d2a61df37c3 (diff)
lib: Attempt to load the module for a missing device
If we asked to open a particular chipset and we find no matching device, try again after attempting to load its module. Previously we only did this for vgem, which is not automatically probed during boot, but if we want to leave the module unloaded we have to try harder when we need the device. v2: DRIVER_* are already masks (and not shifts). Use a common driver_open for both /dev/dri/cardX and /dev/dri/renderDX. v3: Beware making local variables accidentally static scoped. v4: Beware multiple threads trying and failing to open a device v5: Fixed spelling of render (Petri) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/vc4_create_bo.c')
0 files changed, 0 insertions, 0 deletions