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.
MESA_LOADER_DRIVER_OVERRIDE=msm LD_PRELOAD=$prefix/lib/libfreedreno_noop_drm_shim.so