aboutsummaryrefslogtreecommitdiffstats
path: root/src/drm-shim/device.c
Commit message (Collapse)AuthorAgeFilesLines
* drm-shim: don't create a memfd per BOLionel Landwerlin2020-04-301-12/+22
| | | | | | | | | | | | | | Running shader-db on big servers with many cores, we're running out of file descriptors. Use a single 4Gb memfd instead and allocate from it using a VMA. v2: Align VMA allocation to 4096 (Eric) Signed-off-by: Lionel Landwerlin <[email protected]> Acked-by: Matt Turner <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4594>
* drm-shim: move handle lock to shim_fdLionel Landwerlin2020-04-301-9/+9
| | | | | | Signed-off-by: Lionel Landwerlin <[email protected]> Acked-by: Matt Turner <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4594>
* drm-shim: stub syncobj wait ioctlLionel Landwerlin2020-04-241-0/+1
| | | | | Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4726>
* drm-shim: provide a valid fake syncobj handle at creationLionel Landwerlin2020-04-241-1/+11
| | | | | | Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4726>
* freedreno: Add support for drm-shim.Eric Anholt2019-07-251-0/+4
| | | | | | I'm using this for shader-db analysis on x86_64 systems. Reviewed-by: Rob Clark <[email protected]>
* v3d: Introduce a DRM shim for calling out to the simulator.Eric Anholt2019-07-251-0/+339
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 <[email protected]>