mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-25 00:09:54 +00:00
configure.ac: Build dricommon for DRI gallium drivers
Commit67ef7559
added an || test "x$enable_dri" check in an attempt to get the DRI common bits built in some necessary cases. That change was inappropriate as it made these common DRI pieces be built unconditionally, so some builds were broken. Subsequently, commit998d975e3
change the "|| test" to a "-a" conjunction within the existing test invocation. This made the '-a "x$enable_dri" = xyes' clause have no effect, (as it was inside an enclosing test for the same condition). So the new breakage from commit67ef7559
was addressed, but the original problems were regressed. The immediately preceding commit removed the redundant condition. Now, finally this commit fixes the original problem as described in the commit message of67ef7559
: this code should be compiled when using the DRI state tracker. In order to do so, the HAVE_*_DRI conditionals must be moved after the last assignment of HAVE_COMMON_DRI. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61821 Tested-by: Stéphane Marchesin <marcheu@chromium.org>
This commit is contained in:
parent
7de78ce5e5
commit
07f2dee731
19
configure.ac
19
configure.ac
@ -1078,7 +1078,7 @@ if test "x$enable_dri" = xyes; then
|
|||||||
[AC_MSG_ERROR([Expat required for DRI.])])
|
[AC_MSG_ERROR([Expat required for DRI.])])
|
||||||
LIBS="$save_LIBS"
|
LIBS="$save_LIBS"
|
||||||
|
|
||||||
# if we are building any dri driver other than swrast or using the dri state tracker ...
|
# If we are building any DRI driver other than swrast.
|
||||||
if test -n "$DRI_DIRS" -a x"$DRI_DIRS" != xswrast; then
|
if test -n "$DRI_DIRS" -a x"$DRI_DIRS" != xswrast; then
|
||||||
# ... libdrm is required
|
# ... libdrm is required
|
||||||
if test "x$have_libdrm" != xyes; then
|
if test "x$have_libdrm" != xyes; then
|
||||||
@ -1147,14 +1147,6 @@ case $DRI_DIRS in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AM_CONDITIONAL(HAVE_I915_DRI, test x$HAVE_I915_DRI = xyes)
|
|
||||||
AM_CONDITIONAL(HAVE_I965_DRI, test x$HAVE_I965_DRI = xyes)
|
|
||||||
AM_CONDITIONAL(HAVE_NOUVEAU_DRI, test x$HAVE_NOUVEAU_DRI = xyes)
|
|
||||||
AM_CONDITIONAL(HAVE_R200_DRI, test x$HAVE_R200_DRI = xyes)
|
|
||||||
AM_CONDITIONAL(HAVE_RADEON_DRI, test x$HAVE_RADEON_DRI = xyes)
|
|
||||||
AM_CONDITIONAL(HAVE_SWRAST_DRI, test x$HAVE_SWRAST_DRI = xyes)
|
|
||||||
AM_CONDITIONAL(HAVE_COMMON_DRI, test x$HAVE_COMMON_DRI = xyes)
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl OSMesa configuration
|
dnl OSMesa configuration
|
||||||
dnl
|
dnl
|
||||||
@ -1753,6 +1745,7 @@ gallium_check_st() {
|
|||||||
fi
|
fi
|
||||||
if test "x$HAVE_ST_DRI" = xyes && test "x$2" != x; then
|
if test "x$HAVE_ST_DRI" = xyes && test "x$2" != x; then
|
||||||
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $2"
|
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $2"
|
||||||
|
HAVE_COMMON_DRI=yes
|
||||||
fi
|
fi
|
||||||
if test "x$HAVE_ST_XORG" = xyes && test "x$3" != x; then
|
if test "x$HAVE_ST_XORG" = xyes && test "x$3" != x; then
|
||||||
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $3"
|
GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $3"
|
||||||
@ -1994,6 +1987,14 @@ for driver in $GALLIUM_DRIVERS_DIRS; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
AM_CONDITIONAL(HAVE_I915_DRI, test x$HAVE_I915_DRI = xyes)
|
||||||
|
AM_CONDITIONAL(HAVE_I965_DRI, test x$HAVE_I965_DRI = xyes)
|
||||||
|
AM_CONDITIONAL(HAVE_NOUVEAU_DRI, test x$HAVE_NOUVEAU_DRI = xyes)
|
||||||
|
AM_CONDITIONAL(HAVE_R200_DRI, test x$HAVE_R200_DRI = xyes)
|
||||||
|
AM_CONDITIONAL(HAVE_RADEON_DRI, test x$HAVE_RADEON_DRI = xyes)
|
||||||
|
AM_CONDITIONAL(HAVE_SWRAST_DRI, test x$HAVE_SWRAST_DRI = xyes)
|
||||||
|
AM_CONDITIONAL(HAVE_COMMON_DRI, test x$HAVE_COMMON_DRI = xyes)
|
||||||
|
|
||||||
AM_CONDITIONAL(HAVE_GALAHAD_GALLIUM, test x$HAVE_GALAHAD_GALLIUM = xyes)
|
AM_CONDITIONAL(HAVE_GALAHAD_GALLIUM, test x$HAVE_GALAHAD_GALLIUM = xyes)
|
||||||
AM_CONDITIONAL(HAVE_IDENTITY_GALLIUM, test x$HAVE_IDENTITY_GALLIUM = xyes)
|
AM_CONDITIONAL(HAVE_IDENTITY_GALLIUM, test x$HAVE_IDENTITY_GALLIUM = xyes)
|
||||||
AM_CONDITIONAL(HAVE_NOOP_GALLIUM, test x$HAVE_NOOP_GALLIUM = xyes)
|
AM_CONDITIONAL(HAVE_NOOP_GALLIUM, test x$HAVE_NOOP_GALLIUM = xyes)
|
||||||
|
Loading…
Reference in New Issue
Block a user