v3d: Introduce a DRM shim for calling out to the simulator.
authorEric Anholt <eric@anholt.net>
Wed, 26 Sep 2018 02:15:45 +0000 (19:15 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 25 Jul 2019 15:56:19 +0000 (08:56 -0700)
commit82bf1979d7b7d83e8e213b11ff7787e6939c8f7e
tree595ad86905bae25e153d1c7a82041eedef0f20f7
parentc5f14322965cc006038e293902412e76ad268767
v3d: Introduce a DRM shim for calling out to the simulator.

The goal is to enable testing of parts of drivers without depending on any
particular kernel version or hardware being present.

Simply set LD_PRELOAD=$PREFIX/lib/libv3d_drm_shim.so in your environment,
and we'll fake a /dev/dri/renderD128 (or whatever the next available node
is) using v3dv3.  That node can then be used with the surfaceless or gbm
EGL platforms.

Acked-by: Iago Toral Quiroga <itoral@igalia.com>
15 files changed:
meson.build
meson_options.txt
src/broadcom/drm-shim/README.md [new file with mode: 0644]
src/broadcom/drm-shim/meson.build [new file with mode: 0644]
src/broadcom/drm-shim/v3d.c [new file with mode: 0644]
src/broadcom/drm-shim/v3d.h [new file with mode: 0644]
src/broadcom/drm-shim/v3d_noop.c [new file with mode: 0644]
src/broadcom/drm-shim/v3dx.c [new file with mode: 0644]
src/broadcom/meson.build
src/drm-shim/README.md [new file with mode: 0644]
src/drm-shim/device.c [new file with mode: 0644]
src/drm-shim/drm_shim.c [new file with mode: 0644]
src/drm-shim/drm_shim.h [new file with mode: 0644]
src/drm-shim/meson.build [new file with mode: 0644]
src/meson.build