|
|
@@ -823,6 +823,11 @@ fi |
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_SHARED_GLAPI, test "x$enable_shared_glapi" = xyes) |
|
|
|
|
|
|
|
# Build the pipe-drivers as separate libraries/modules. |
|
|
|
# Do not touch this unless you know what you are doing. |
|
|
|
# XXX: Expose via configure option ? |
|
|
|
enable_shared_pipe_drivers=no |
|
|
|
|
|
|
|
dnl |
|
|
|
dnl Driver specific build directories |
|
|
|
dnl |
|
|
@@ -843,7 +848,7 @@ esac |
|
|
|
if test "x$enable_dri" = xyes; then |
|
|
|
GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/dri" |
|
|
|
GALLIUM_STATE_TRACKERS_DIRS="dri $GALLIUM_STATE_TRACKERS_DIRS" |
|
|
|
enable_gallium_loader=yes |
|
|
|
enable_gallium_loader="$enable_shared_pipe_drivers" |
|
|
|
fi |
|
|
|
|
|
|
|
if test "x$enable_gallium_osmesa" = xyes; then |
|
|
@@ -1318,7 +1323,8 @@ if test "x$enable_gallium_egl" = xyes; then |
|
|
|
|
|
|
|
GALLIUM_STATE_TRACKERS_DIRS="egl $GALLIUM_STATE_TRACKERS_DIRS" |
|
|
|
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl-static" |
|
|
|
# enable_gallium_loader=yes |
|
|
|
# XXX: Uncomment once converted to use static/shared pipe-drivers |
|
|
|
# enable_gallium_loader=$enable_shared_pipe_drivers |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(HAVE_GALLIUM_EGL, test "x$enable_gallium_egl" = xyes) |
|
|
|
|
|
|
@@ -1347,7 +1353,7 @@ if test "x$enable_gallium_gbm" = xyes; then |
|
|
|
|
|
|
|
GALLIUM_STATE_TRACKERS_DIRS="gbm $GALLIUM_STATE_TRACKERS_DIRS" |
|
|
|
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS gbm" |
|
|
|
enable_gallium_loader=yes |
|
|
|
enable_gallium_loader=$enable_shared_pipe_drivers |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(HAVE_GALLIUM_GBM, test "x$enable_gallium_gbm" = xyes) |
|
|
|
|
|
|
@@ -1364,7 +1370,7 @@ if test "x$enable_xa" = xyes; then |
|
|
|
Example: ./configure --enable-xa --with-gallium-drivers=svga...]) |
|
|
|
fi |
|
|
|
GALLIUM_STATE_TRACKERS_DIRS="xa $GALLIUM_STATE_TRACKERS_DIRS" |
|
|
|
enable_gallium_loader=yes |
|
|
|
enable_gallium_loader=$enable_shared_pipe_drivers |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(HAVE_ST_XA, test "x$enable_xa" = xyes) |
|
|
|
|
|
|
@@ -1412,7 +1418,7 @@ fi |
|
|
|
if test "x$enable_xvmc" = xyes; then |
|
|
|
PKG_CHECK_MODULES([XVMC], [xvmc >= $XVMC_REQUIRED x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED]) |
|
|
|
GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xvmc" |
|
|
|
enable_gallium_loader=yes |
|
|
|
enable_gallium_loader=$enable_shared_pipe_drivers |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(HAVE_ST_XVMC, test "x$enable_xvmc" = xyes) |
|
|
|
|
|
|
@@ -1420,14 +1426,14 @@ if test "x$enable_vdpau" = xyes; then |
|
|
|
PKG_CHECK_MODULES([VDPAU], [vdpau >= $VDPAU_REQUIRED x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED], |
|
|
|
[VDPAU_LIBS="`$PKG_CONFIG --libs x11-xcb xcb xcb-dri2`"]) |
|
|
|
GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS vdpau" |
|
|
|
enable_gallium_loader=yes |
|
|
|
enable_gallium_loader=$enable_shared_pipe_drivers |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(HAVE_ST_VDPAU, test "x$enable_vdpau" = xyes) |
|
|
|
|
|
|
|
if test "x$enable_omx" = xyes; then |
|
|
|
PKG_CHECK_MODULES([OMX], [libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED]) |
|
|
|
GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS omx" |
|
|
|
enable_gallium_loader=yes |
|
|
|
enable_gallium_loader=$enable_shared_pipe_drivers |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(HAVE_ST_OMX, test "x$enable_omx" = xyes) |
|
|
|
|
|
|
@@ -1479,6 +1485,7 @@ if test "x$enable_opencl" = xyes; then |
|
|
|
|
|
|
|
GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS clover" |
|
|
|
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS opencl" |
|
|
|
# XXX: Use $enable_shared_pipe_drivers once converted to use static/shared pipe-drivers |
|
|
|
enable_gallium_loader=yes |
|
|
|
|
|
|
|
if test "x$enable_opencl_icd" = xyes; then |
|
|
@@ -1779,6 +1786,7 @@ dnl |
|
|
|
dnl Gallium Tests |
|
|
|
dnl |
|
|
|
if test "x$enable_gallium_tests" = xyes; then |
|
|
|
# XXX: Use $enable_shared_pipe_drivers once converted to use static/shared pipe-drivers |
|
|
|
enable_gallium_loader=yes |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(HAVE_GALLIUM_TESTS, test "x$enable_gallium_tests" = xyes) |
|
|
@@ -2067,9 +2075,7 @@ AM_CONDITIONAL(NEED_GALLIUM_SOFTPIPE_DRIVER, test "x$HAVE_GALLIUM_SVGA" = xyes - |
|
|
|
AM_CONDITIONAL(NEED_GALLIUM_LLVMPIPE_DRIVER, test "x$HAVE_GALLIUM_SOFTPIPE" = xyes \ |
|
|
|
&& test "x$MESA_LLVM" = x1) |
|
|
|
|
|
|
|
# Enable static gallium targets for now. |
|
|
|
# Do not touch this unless you know what you are doing. |
|
|
|
AM_CONDITIONAL(HAVE_GALLIUM_STATIC_TARGETS, test "xyes" = xyes) |
|
|
|
AM_CONDITIONAL(HAVE_GALLIUM_STATIC_TARGETS, test "x$enable_shared_pipe_drivers" = xno) |
|
|
|
|
|
|
|
# NOTE: anything using xcb or other client side libs ends up in separate |
|
|
|
# _CLIENT variables. The pipe loader is built in two variants, |