Trying to run turnip under drm-shim reveals that pretended device offsets are not sufficiently aligned, failing this assert in tu_pipeline.c: /* emit program binary & private memory layout * binary_iova should be aligned to 1 instrlen unit (128 bytes) */ assert((binary_iova & 0x7f) == 0); Round up BO size to 4096 in msm_ioctl_gem_new to avoid this (the kernel aligns to page size). Signed-off-by: Alexander Monakov <amonakov@ispras.ru> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11331> |
||
---|---|---|
.. | ||
README.md | ||
freedreno_noop.c | ||
meson.build |
README.md
freedreno_noop backend
This implements the minimum of msm in order to make shader-db work. The submit ioctl is stubbed out to not execute anything.
Export MESA_LOADER_DRIVER_OVERRIDE=msm LD_PRELOAD=$prefix/lib/libfreedreno_noop_drm_shim.so
.
By default, a630 is exposed. The chip can be selected an enviornment variable like `FD_GPU_ID=307"