6.2 Multiple drivers installed on the system

More than one version of the Mali™ driver might be installed on your device. For example, if you aim to use both X11 and FBDEV on the same Linux platform.

If so, it might not be possible to use the standard LD_PRELOAD approach on its own.

Instead, you must use that approach as normal while defining the MGD_LIBRARY_PATH environment variable as follows:

MGD_LIBRARY_PATH=/path/to/original/drivers/dir/

The /path/to/original/drivers/dir/ contains the pre-existing libGLESv2.so and libEGL.so files from the graphics driver installation.

When a graphics application runs, the Graphics Analyzer interceptor libraries are preloaded as normal. The interceptor libraries then dynamically load the original graphics libraries from the MGD_LIBRARY_PATH location as required.

See 6.1 Intercepting without using LD_PRELOAD for more information.

Non-Confidential - RELPDF file icon PDF version101545__00_en
Copyright © 2020–2022, 2024 Arm Limited or its affiliates. All rights reserved.