mirror of
https://github.com/tsukumijima/libmali-rockchip.git
synced 2026-01-24 00:10:50 +01:00
Major changes: 1/ Add gbm_bo_create_with_modifiers2 and gbm_surface_create_with_modifiers2. 2/ Add headers for different versions of GBM. 3/ Detect platforms from library content. Change-Id: Iaca158a926f5fe8c14698eb7e2ad5a427eb1632c Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
17 lines
378 B
Bash
Executable file
17 lines
378 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
[ $# -lt 1 ] && {
|
|
echo "usage: $0 <path of include>"
|
|
exit 1
|
|
}
|
|
|
|
HEADER="${MESON_INSTALL_DESTDIR_PREFIX:-/usr}/$1/gbm.h"
|
|
|
|
if [ -f "$HEADER" ]; then
|
|
sed -i -e '$i /* HACK: Mali does not support these flag */' \
|
|
-e '$i #define GBM_BO_USE_LINEAR 0' \
|
|
-e '$i #define GBM_BO_USE_PROTECTED 0' \
|
|
-e '$i #define GBM_BO_USE_FRONT_RENDERING 0\n' "$HEADER"
|
|
fi
|
|
|
|
exit 0
|