<div dir="ltr"><div><span class="" style="font-family:arial,sans-serif;font-size:13px">Thanks Emil - works great!</span></div><span class="" style="font-family:arial,sans-serif;font-size:13px"><div><span class="" style="font-family:arial,sans-serif;font-size:13px"><br></span></div>Tested</span><span style="font-family:arial,sans-serif;font-size:13px">-</span><span class="" style="font-family:arial,sans-serif;font-size:13px">by</span><span style="font-family:arial,sans-serif;font-size:13px">: James Ausmus <<a href="mailto:james.ausmus@intel.com">james.ausmus@intel.com</a>></span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 8, 2014 at 3:52 PM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">With the gallium megadrivers we've converted most ST to optionally<br>
use either statically linked in or shared pipe-drivers.<br>
<br>
The hardcoded switch forgot to conditionally enable the build of the<br>
shared pipe-drivers which resulted in them being constantly build.<br>
<br>
Cc: "10.3" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>><br>
Cc: James Ausmus <<a href="mailto:james.ausmus@intel.com">james.ausmus@intel.com</a>><br>
Reported-by: James Ausmus <<a href="mailto:james.ausmus@intel.com">james.ausmus@intel.com</a>><br>
Bugzilla: <a href="https://code.google.com/p/chromium/issues/detail?id=412089
Signed-off-by" target="_blank">https://code.google.com/p/chromium/issues/detail?id=412089<br>
Signed-off-by</a>: Emil Velikov <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>><br>
---<br>
 <a href="http://configure.ac" target="_blank">configure.ac</a> | 26 ++++++++++++++++----------<br>
 1 file changed, 16 insertions(+), 10 deletions(-)<br>
<br>
diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
index 050bcaf..8ccb803 100644<br>
--- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
@@ -820,6 +820,11 @@ fi<br>
<br>
 AM_CONDITIONAL(HAVE_SHARED_GLAPI, test "x$enable_shared_glapi" = xyes)<br>
<br>
+# Build the pipe-drivers as separate libraries/modules.<br>
+# Do not touch this unless you know what you are doing.<br>
+# XXX: Expose via configure option ?<br>
+enable_shared_pipe_drivers=no<br>
+<br>
 dnl<br>
 dnl Driver specific build directories<br>
 dnl<br>
@@ -840,7 +845,7 @@ esac<br>
 if test "x$enable_dri" = xyes; then<br>
     GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/dri"<br>
     GALLIUM_STATE_TRACKERS_DIRS="dri $GALLIUM_STATE_TRACKERS_DIRS"<br>
-    enable_gallium_loader=yes<br>
+    enable_gallium_loader="$enable_shared_pipe_drivers"<br>
 fi<br>
<br>
 if test "x$enable_gallium_osmesa" = xyes; then<br>
@@ -1313,7 +1318,8 @@ if test "x$enable_gallium_egl" = xyes; then<br>
<br>
     GALLIUM_STATE_TRACKERS_DIRS="egl $GALLIUM_STATE_TRACKERS_DIRS"<br>
     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl-static"<br>
-#    enable_gallium_loader=yes<br>
+# XXX: Uncomment once converted to use static/shared pipe-drivers<br>
+#    enable_gallium_loader=$enable_shared_pipe_drivers<br>
 fi<br>
 AM_CONDITIONAL(HAVE_GALLIUM_EGL, test "x$enable_gallium_egl" = xyes)<br>
<br>
@@ -1342,7 +1348,7 @@ if test "x$enable_gallium_gbm" = xyes; then<br>
<br>
     GALLIUM_STATE_TRACKERS_DIRS="gbm $GALLIUM_STATE_TRACKERS_DIRS"<br>
     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS gbm"<br>
-    enable_gallium_loader=yes<br>
+    enable_gallium_loader=$enable_shared_pipe_drivers<br>
 fi<br>
 AM_CONDITIONAL(HAVE_GALLIUM_GBM, test "x$enable_gallium_gbm" = xyes)<br>
<br>
@@ -1359,7 +1365,7 @@ if test "x$enable_xa" = xyes; then<br>
           Example: ./configure --enable-xa --with-gallium-drivers=svga...])<br>
     fi<br>
     GALLIUM_STATE_TRACKERS_DIRS="xa $GALLIUM_STATE_TRACKERS_DIRS"<br>
-    enable_gallium_loader=yes<br>
+    enable_gallium_loader=$enable_shared_pipe_drivers<br>
 fi<br>
 AM_CONDITIONAL(HAVE_ST_XA, test "x$enable_xa" = xyes)<br>
<br>
@@ -1407,7 +1413,7 @@ fi<br>
 if test "x$enable_xvmc" = xyes; then<br>
     PKG_CHECK_MODULES([XVMC], [xvmc >= $XVMC_REQUIRED x11-xcb xcb-dri2 >= $XCBDRI2_REQUIRED])<br>
     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xvmc"<br>
-    enable_gallium_loader=yes<br>
+    enable_gallium_loader=$enable_shared_pipe_drivers<br>
 fi<br>
 AM_CONDITIONAL(HAVE_ST_XVMC, test "x$enable_xvmc" = xyes)<br>
<br>
@@ -1415,14 +1421,14 @@ if test "x$enable_vdpau" = xyes; then<br>
     PKG_CHECK_MODULES([VDPAU], [vdpau >= $VDPAU_REQUIRED x11-xcb xcb-dri2 >= $XCBDRI2_REQUIRED],<br>
                       [VDPAU_LIBS="`$PKG_CONFIG --libs x11-xcb xcb-dri2`"])<br>
     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS vdpau"<br>
-    enable_gallium_loader=yes<br>
+    enable_gallium_loader=$enable_shared_pipe_drivers<br>
 fi<br>
 AM_CONDITIONAL(HAVE_ST_VDPAU, test "x$enable_vdpau" = xyes)<br>
<br>
 if test "x$enable_omx" = xyes; then<br>
     PKG_CHECK_MODULES([OMX], [libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED x11-xcb xcb-dri2 >= $XCBDRI2_REQUIRED])<br>
     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS omx"<br>
-    enable_gallium_loader=yes<br>
+    enable_gallium_loader=$enable_shared_pipe_drivers<br>
 fi<br>
 AM_CONDITIONAL(HAVE_ST_OMX, test "x$enable_omx" = xyes)<br>
<br>
@@ -1474,6 +1480,7 @@ if test "x$enable_opencl" = xyes; then<br>
<br>
     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS clover"<br>
     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS opencl"<br>
+    # XXX: Use $enable_shared_pipe_drivers once converted to use static/shared pipe-drivers<br>
     enable_gallium_loader=yes<br>
<br>
     if test "x$enable_opencl_icd" = xyes; then<br>
@@ -1774,6 +1781,7 @@ dnl<br>
 dnl Gallium Tests<br>
 dnl<br>
 if test "x$enable_gallium_tests" = xyes; then<br>
+    # XXX: Use $enable_shared_pipe_drivers once converted to use static/shared pipe-drivers<br>
     enable_gallium_loader=yes<br>
 fi<br>
 AM_CONDITIONAL(HAVE_GALLIUM_TESTS, test "x$enable_gallium_tests" = xyes)<br>
@@ -2069,9 +2077,7 @@ AM_CONDITIONAL(NEED_GALLIUM_SOFTPIPE_DRIVER, test "x$HAVE_GALLIUM_SVGA" = xyes -<br>
 AM_CONDITIONAL(NEED_GALLIUM_LLVMPIPE_DRIVER, test "x$HAVE_GALLIUM_SOFTPIPE" = xyes \<br>
                                                   && test "x$MESA_LLVM" = x1)<br>
<br>
-# Enable static gallium targets for now.<br>
-# Do not touch this unless you know what you are doing.<br>
-AM_CONDITIONAL(HAVE_GALLIUM_STATIC_TARGETS, test "xyes" = xyes)<br>
+AM_CONDITIONAL(HAVE_GALLIUM_STATIC_TARGETS, test "x$enable_shared_pipe_drivers" = xno)<br>
<br>
 # NOTE: anything using xcb or other client side libs ends up in separate<br>
 #       _CLIENT variables.  The pipe loader is built in two variants,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.0.2<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><br><br>James Ausmus<br>Sr. Software Engineer<br>SSG-OTC ChromeOS Integration
</div>