Mesa (master): v3d: Introduce a DRM shim for calling out to the simulator.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 25 16:16:14 UTC 2019


Module: Mesa
Branch: master
Commit: 82bf1979d7b7d83e8e213b11ff7787e6939c8f7e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=82bf1979d7b7d83e8e213b11ff7787e6939c8f7e

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Sep 25 19:15:45 2018 -0700

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 at igalia.com>

---

 meson.build                       |  11 +-
 meson_options.txt                 |   2 +-
 src/broadcom/drm-shim/README.md   |  17 ++
 src/broadcom/drm-shim/meson.build |  62 +++++
 src/broadcom/drm-shim/v3d.c       |  98 +++++++
 src/broadcom/drm-shim/v3d.h       |  70 +++++
 src/broadcom/drm-shim/v3d_noop.c  | 158 +++++++++++
 src/broadcom/drm-shim/v3dx.c      | 370 ++++++++++++++++++++++++++
 src/broadcom/meson.build          |   4 +
 src/drm-shim/README.md            |  34 +++
 src/drm-shim/device.c             | 339 ++++++++++++++++++++++++
 src/drm-shim/drm_shim.c           | 532 ++++++++++++++++++++++++++++++++++++++
 src/drm-shim/drm_shim.h           |  83 ++++++
 src/drm-shim/meson.build          |  34 +++
 src/meson.build                   |   3 +
 15 files changed, 1815 insertions(+), 2 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=82bf1979d7b7d83e8e213b11ff7787e6939c8f7e



More information about the mesa-commit mailing list