X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=stage4%2Fpkg%2FMesaLib;h=ed54cb7f1931562920e2d6c32632cba79d219b51;hb=3981e76bf99c0f1675472eb60e66287dc6f908b4;hp=80b80178490f4e0caa11599fe929dacd3d3a96cf;hpb=f920c7ef750f2163b9e407cc453b192ede2c185a;p=hvlinux.git diff --git a/stage4/pkg/MesaLib b/stage4/pkg/MesaLib index 80b8017..ed54cb7 100644 --- a/stage4/pkg/MesaLib +++ b/stage4/pkg/MesaLib @@ -2,10 +2,33 @@ hvconfig_pre() { + local DRI_OPTS="--with-dri-drivers=swrast" + local GAL_OPTS="--with-gallium-drivers=svga,swrast" + + if [ -n "${XORG_VIDEO_DRIVER}" ]; then + case "${XORG_VIDEO_DRIVER}" in + nouveau) + DRI_OPTS="${DRI_OPTS},nouveau" + GAL_OPTS="${GAL_OPTS},nouveau" + ;; + intel) + DRI_OPTS="${DRI_OPTS},i915,i965" + GAL_OPTS="${GAL_OPTS},i915" + ;; + esac + fi + CONFIGURE_OPTS="\ ${CONFIGURE_OPTS} \ - --enable-motif \ - --enable-xcb \ + --enable-texture-float \ + --enable-gles1 \ + --enable-gles2 \ + --enable-xa \ + --enable-shared-glapi \ + --enable-shared-dricore \ + --enable-glx-tls \ + ${DRI_OPTS} \ + ${GAL_OPTS} \ ${XORG_CONFIG}" # Mesa builds with debugging symbols. Remove the -g switch from both CFLAGS