mesa/src/broadcom/drm-shim
Alejandro Piñeiro 583d7d3d8d v3d: moving v3d simulator to src/broadcom
So it could be used by both the OpenGL and the Vulkan driver.

In addition to the move, some small changes were needed to be made on
the API. For example, the simulator was receiving v3d_screen on
initialization, and that code setted v3d_screen->sim_file. Now it
returns the new sim_file created.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5666>
2020-06-27 00:06:58 +00:00
..
meson.build v3d: moving v3d simulator to src/broadcom 2020-06-27 00:06:58 +00:00
README.md v3d: Introduce a DRM shim for calling out to the simulator. 2019-07-25 08:56:19 -07:00
v3d.c drm-shim: Let the driver choose to overwrite the first render node. 2020-04-23 17:54:54 +00:00
v3d.h v3d: Introduce a DRM shim for calling out to the simulator. 2019-07-25 08:56:19 -07:00
v3d_noop.c drm-shim: Let the driver choose to overwrite the first render node. 2020-04-23 17:54:54 +00:00
v3dx.c v3d: Introduce a DRM shim for calling out to the simulator. 2019-07-25 08:56:19 -07:00

v3d backend

This implements some of v3d using the closed source v3dv3 tree's C/C++-based simulator. All execution is synchronous.

Export: MESA_LOADER_DRIVER_OVERRIDE=v3d LD_PRELOAD=$prefix/lib/libv3d_drm_shim.so. The v3dv3 version exposed will depend on the v3dv3 build -- 3.3, 4.1, and 4.2 are supported.

v3d_noop backend

This implements the minimum of v3d in order to make shader-db work. The submit ioctl is stubbed out to not execute anything.

Export MESA_LOADER_DRIVER_OVERRIDE=v3d LD_PRELOAD=$prefix/lib/libv3d_noop_drm_shim.so. This will be a V3D 4.2 device.