mesa/src/freedreno/drm-shim
Alexander Monakov 11da35d86d freedreno/drm-shim: keep GEM buffers page-aligned
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>
2021-06-14 17:30:01 +00:00
..
README.md freedreno/drm-shim: Add support for faking other adreno chips. 2020-04-21 15:47:39 +00:00
freedreno_noop.c freedreno/drm-shim: keep GEM buffers page-aligned 2021-06-14 17:30:01 +00:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00

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"