<p dir="ltr"><br>
On Jan 12, 2015 5:04 AM, "Samuel Iglesias Gonsálvez" <<a href="mailto:siglesias@igalia.com">siglesias@igalia.com</a>> wrote:<br>
><br>
> On Monday, January 12, 2015 12:48:20 PM Jose Fonseca wrote:<br>
> > On 12/01/15 12:32, Iago Toral Quiroga wrote:<br>
> > > Hi Jose,<br>
> > ><br>
> > > thanks for reporting this.<br>
> > ><br>
> > > On lun, 2015-01-12 at 12:18 +0000, Jose Fonseca wrote:<br>
> > >> Iago, Jason,<br>
> > >><br>
> > >> There seems to be some bad or missing dependency when building with<br>
> > >><br>
> > >> automake. I have a build bot that roughly does this every time:<br>
> > >> git clean -fdx<br>
> ><br>
> > Sorry. This was wrong -- my build machine actually was _not_ wiping the<br>
> > build directory (I had commented that line) -- which means that the bug<br>
> > depends on previous build state, hence it will probably be a tad<br>
> > difficult to repro...<br>
> ><br>
> > Furthermore I wiped the build dir and the issue doesn't indeed manifest<br>
> > from clean builds.<br>
> ><br>
> > I think it's probably not worth pursue this further until somebody<br>
> > manages to get a good repro.<br>
> ><br>
> > Jose<br>
> ><br>
><br>
> Oh, I think I have the source of the issue.<br>
><br>
> format_pack.c was previously tracked by git so, when pulling the last patches,<br>
> there is one that removes that file from the repo as it will be autogenerated<br>
> by a mako template.<br>
><br>
> If you don't clean up the build and do the configuration step,<br>
> Mesa will use old Makefiles which don't have the command to auto-generate<br>
> format_pack.c and then it is going to fail in build time because there is no<br>
> such file.<br>
><br>
> Same would happen for format_unpack.c but format_pack.c is hit before.<br>
><br>
> I recomend you to call "git clean -fdx" and autogen.sh before building it to<br>
> avoid this issue.</p>
<p dir="ltr">I'm very familiar with this issue as I've been bouncing back and fourth across this patch series all last week. You just need to rerun autogen so it will regenerate the Makefile.in files. You don't need to clean your entire git dir. Why that's not happening automatically, I don't know.<br>
--Jason</p>
<p dir="ltr">> Sam<br>
><br>
> > >> mkdir -p build<br>
> > >> cd build<br>
> > >> ../autogen.sh --prefix=/usr --enable-debug --enable-dri3<br>
> > >><br>
> > >> --enable-gles1 --enable-gles2 --enable-xa --enable-nine --disable-opencl<br>
> > >> --disable-vdpau --enable-shared-glapi --enable-gallium-llvm<br>
> > >> --disable-llvm-shared-libs<br>
> > ><br>
> > > I have just tried these steps (only with --disable-dri3) and it seems to<br>
> > > compile format_pack.c without problems... it fails later on because I<br>
> > > don't have the required radeon libs, but libmesa and libmesagallium<br>
> > > build fine for me.<br>
> > ><br>
> > > Samuel, can you reproduce the problem?<br>
> > ><br>
> > >> And it started failing:<br>
> > >> make[4]: *** No rule to make target<br>
> > >><br>
> > >> `../../../src/mesa/main/format_pack.c', needed by `format_pack.lo'. Stop.<br>
> > >><br>
> > >> Not sure of the problem here is triggered by the wiping the whole<br>
> > >> source, or the building out of the source dir.<br>
> > >><br>
> > >> It doesn't affect me much (as most of my testing depends on SCons build)<br>
> > >> but this probably needs to be looked at. Let me know if you prefer I<br>
> > >> file a bug to track this.<br>
> > >><br>
> > >> Jose<br>
> > >><br>
> > >> On 08/01/15 07:20, Iago Toral Quiroga wrote:<br>
> > >>> This is the first of two series that aim to address:<br>
> > >>> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freedesktop.or">https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freedesktop.or</a><br>
> > >>> g_show-5Fbug.cgi-3Fid-3D84566&d=AwIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-Y<br>
> > >>> ihVMNtXt-uEs&r=zfmBZnnVGHeYde45pMKNnVyzeaZbdIqVLprmZCM2zzE&m=D9XcoMD6m3_<br>
> > >>> qVTyD7OqndEaqmB6eDSHjYd76sFDGBkA&s=gqJ3tbVTEA_LS4nw1a9PWqOFN7q5UJXoQOEgp<br>
> > >>> 3uBS0U&e=<br>
> > >>><br>
> > >>> A branch with this series is available here:<br>
> > >>> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Igalia_m">https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Igalia_m</a><br>
> > >>> esa_tree_itoral-2Dautogen-2Dpacking-2Dreview-2Dv4&d=AwIGaQ&c=Sqcl0Ez6M0X<br>
> > >>> 8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=zfmBZnnVGHeYde45pMKNnVyzeaZbdIqVLprmZ<br>
> > >>> CM2zzE&m=D9XcoMD6m3_qVTyD7OqndEaqmB6eDSHjYd76sFDGBkA&s=KX0x3bOmv8Pb19mCL<br>
> > >>> DbWa-Mb1KJwu0Z3a8rHAPKyy64&e=<br>
> > >>><br>
> > >>> Links to previous versions of the series:<br>
> > >>> v3:<br>
> > >>> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.o">https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.o</a><br>
> > >>> rg_archives_mesa-2Ddev_2014-2DDecember_072274.html&d=AwIGaQ&c=Sqcl0Ez6M0<br>
> > >>> X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=zfmBZnnVGHeYde45pMKNnVyzeaZbdIqVLprm<br>
> > >>> ZCM2zzE&m=D9XcoMD6m3_qVTyD7OqndEaqmB6eDSHjYd76sFDGBkA&s=SOzIkO8dgREs4cJN<br>
> > >>> XIhZvr_pt1vPCoBLZFgEwdnKF04&e= v2:<br>
> > >>> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.o">https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.o</a><br>
> > >>> rg_archives_mesa-2Ddev_2014-2DDecember_071622.html&d=AwIGaQ&c=Sqcl0Ez6M0<br>
> > >>> X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=zfmBZnnVGHeYde45pMKNnVyzeaZbdIqVLprm<br>
> > >>> ZCM2zzE&m=D9XcoMD6m3_qVTyD7OqndEaqmB6eDSHjYd76sFDGBkA&s=0wOx9fh_9yqFYSo8<br>
> > >>> IhZFlyVbOyFArdb5U1jBVmkdAoA&e= v1:<br>
> > >>> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.o">https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.freedesktop.o</a><br>
> > >>> rg_archives_mesa-2Ddev_2014-2DNovember_070898.html&d=AwIGaQ&c=Sqcl0Ez6M0<br>
> > >>> X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=zfmBZnnVGHeYde45pMKNnVyzeaZbdIqVLprm<br>
> > >>> ZCM2zzE&m=D9XcoMD6m3_qVTyD7OqndEaqmB6eDSHjYd76sFDGBkA&s=vUxqaafxwTFioVZc<br>
> > >>> qQtEnWt_RMb-oQK-89-gmZ30Z74&e=<br>
> > >>><br>
> > >>> Tested on i965, classic swrast and gallium (radeon, nouveau, llvmpipe)<br>
> > >>> without regressions.<br>
> > >>><br>
> > >>> Patches that need review: 2, 8, 12-15, 17<br>
> > >>><br>
> > >>> - Patches 2 and 12 were originally written by Jason, so I guess we<br>
> > >>> want<br>
> > >>><br>
> > >>> somebody else to review these besides him.<br>
> > >>><br>
> > >>> - Patches 14-15 were also originally written by Jason, but they have<br>
> > >>> gone<br>
> > >>><br>
> > >>> through plenty of changes so maybe it is okay if only Jason<br>
> > >>> reviews them.<br>
> > >>><br>
> > >>> Iago Toral Quiroga (3):<br>
> > >>> mesa: Fix incorrect assertion in init_teximage_fields_ms<br>
> > >>> swrast: Remove unused variable.<br>
> > >>> mesa: Let _mesa_get_format_base_format also handle<br>
> > >>> mesa_array_format.<br>
> > >>><br>
> > >>> Jason Ekstrand (9):<br>
> > >>> mesa: Fix clamping to -1.0 in snorm_to_float<br>
> > >>> mesa: Fix packing/unpacking of MESA_FORMAT_R5G6B5_UNORM<br>
> > >>> mesa/colormac: Remove an unused macro<br>
> > >>> mesa: Fix A1R5G5B5 packing/unpacking<br>
> > >>> mesa/format_utils: Prefix and expose the conversion helper functions<br>
> > >>> main: Add a concept of an array format<br>
> > >>> mesa: Add a _mesa_is_format_color_format helper<br>
> > >>> mesa: Autogenerate most of format_pack.c<br>
> > >>> mesa: Autogenerate format_unpack.c<br>
> > >>><br>
> > >>> Samuel Iglesias Gonsalvez (10):<br>
> > >>> mesa: Fix get_texbuffer_format().<br>
> > >>> mesa: Fix _mesa_swizzle_and_convert integer conversions to clamp<br>
> > >>><br>
> > >>> properly<br>
> > >>><br>
> > >>> configure: require python mako module<br>
> > >>> mesa: Add _mesa_pack_uint_rgba_row() format conversion function<br>
> > >>> mesa/format_pack: Add _mesa_pack_int_rgba_row()<br>
> > >>> mesa/formats: add new mesa formats and their pack/unpack functions.<br>
> > >>> mesa: use format conversion functions in swrast<br>
> > >>> mesa/pack: use autogenerated format_pack functions<br>
> > >>> mesa/main/pack_tmp.h: Add float conversion support<br>
> > >>> mesa/pack: refactor _mesa_pack_rgba_span_float()<br>
> > >>><br>
> > >>> <a href="http://configure.ac">configure.ac</a> | 2 +<br>
> > >>> docs/install.html | 6 +-<br>
> > >>> m4/ax_check_python_mako_module.m4 | 61 +<br>
> > >>> src/mesa/Makefile.am | 18 +<br>
> > >>> src/mesa/Makefile.sources | 6 +-<br>
> > >>> src/mesa/SConscript | 14 +<br>
> > >>> src/mesa/main/.gitignore | 2 +<br>
> > >>> src/mesa/main/colormac.h | 3 -<br>
> > >>> src/mesa/main/format_info.py | 16 +<br>
> > >>> src/mesa/main/format_pack.c | 2994 -------------------------<br>
> > >>> src/mesa/main/format_pack.h | 6 +<br>
> > >>> src/mesa/main/format_pack.py | 1124 ++++++++++<br>
> > >>> src/mesa/main/format_parser.py | 47 +<br>
> > >>> src/mesa/main/format_unpack.c | 4400<br>
> > >>> ------------------------------------- src/mesa/main/format_unpack.py<br>
> > >>> | 895 ++++++++<br>
> > >>> src/mesa/main/format_utils.c | 302 +--<br>
> > >>> src/mesa/main/format_utils.h | 165 ++<br>
> > >>> src/mesa/main/formats.c | 271 ++-<br>
> > >>> src/mesa/main/formats.csv | 13 +<br>
> > >>> src/mesa/main/formats.h | 156 +-<br>
> > >>> src/mesa/main/pack.c | 2111 +++---------------<br>
> > >>> src/mesa/main/pack_tmp.h | 76 +-<br>
> > >>> src/mesa/main/teximage.c | 6 +-<br>
> > >>> src/mesa/main/texstore.c | 2 +-<br>
> > >>> src/mesa/swrast/s_drawpix.c | 3 -<br>
> > >>> src/mesa/swrast/s_texfetch.c | 13 +<br>
> > >>> src/mesa/swrast/s_texfetch_tmp.h | 1359 +-----------<br>
> > >>> 27 files changed, 3443 insertions(+), 10628 deletions(-)<br>
> > >>> create mode 100644 m4/ax_check_python_mako_module.m4<br>
> > >>> delete mode 100644 src/mesa/main/format_pack.c<br>
> > >>> create mode 100644 src/mesa/main/format_pack.py<br>
> > >>> delete mode 100644 src/mesa/main/format_unpack.c<br>
> > >>> create mode 100644 src/mesa/main/format_unpack.py<br>
><br>
> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
><br>
</p>