<div dir="ltr"><div>Iago,<br></div>These are looking really good. I had a few comments on 3 or 4 of them but only one or two major things (float-to-int clampping in a couple of places). All of the patches I didn't reply to are<br>Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 4:12 AM, Iago Toral <span dir="ltr"><<a href="mailto:itoral@igalia.com" target="_blank">itoral@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 2014-12-09 at 13:06 +0100, Iago Toral Quiroga wrote:<br>
> This is the first of two series that aim to address:<br>
> <a href="https://bugs.freedesktop.org/show_bug.cgi?id=84566" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=84566</a><br>
><br>
> A branch with this series is available here:<br>
> <a href="https://github.com/Igalia/mesa/tree/itoral-autogen-packing-review-v3" target="_blank">https://github.com/Igalia/mesa/tree/itoral-autogen-packing-review-v3</a><br>
<br>
</span>As with the previous versions this patch was held for moderation due to<br>
its size:<br>
<br>
[PATCH v3 15/24] mesa: Autogenerate format_unpack.c<br>
<br>
If it does not reach the list in the end it can be reviewed from the<br>
link above.<br>
<span class="HOEnZb"><font color="#888888"><br>
Iago<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> Links to previous versions of the series:<br>
> v2: <a href="http://lists.freedesktop.org/archives/mesa-dev/2014-December/071622.html" target="_blank">http://lists.freedesktop.org/archives/mesa-dev/2014-December/071622.html</a><br>
> v1: <a href="http://lists.freedesktop.org/archives/mesa-dev/2014-November/070898.html" target="_blank">http://lists.freedesktop.org/archives/mesa-dev/2014-November/070898.html</a><br>
><br>
> Main changes in v3:<br>
> - Do not use a union/struct and bitmasks to implement and access<br>
> mesa_array_format, that won't work on big-endian as pointed out by Ian.<br>
> The new implementation drops the union/struct and accesses<br>
> mesa_array_format as a uint32_t bitfield only.<br>
> - Remove the unused float_to_uint helper (last patch in the series)<br>
><br>
> Notes:<br>
> - Patches 1, 3-7, 9 are already reviewed-by Ian.<br>
><br>
> Tested on i965, classic swrast and gallium (radeon, nouveau, llvmpipe) without<br>
> regressions.<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 mesa_array_format.<br>
><br>
> Jason Ekstrand (9):<br>
> mesa/format_utils: Fix a bug in unorm_to_float helper function<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 (12):<br>
> mesa: Fix get_texbuffer_format().<br>
> mesa: Fix _mesa_swizzle_and_convert integer conversions to clamp<br>
> properly<br>
> configure: require python mako module<br>
> mesa: Add _mesa_pack_uint_rgba_row() format conversion function<br>
> mesa: Add non-normalized formats support for ubyte packing functions<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>
> main: remove unused float_to_uint() function<br>
><br>
> <a href="http://configure.ac" target="_blank">configure.ac</a> | 2 +<br>
> docs/install.html | 6 +-<br>
> m4/ax_check_python_mako_module.m4 | 77 +<br>
> src/mesa/Makefile.am | 18 +<br>
> src/mesa/Makefile.sources | 4 +-<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 | 1118 ++++++++++<br>
> src/mesa/main/format_parser.py | 47 +<br>
> src/mesa/main/format_unpack.c | 4400 -------------------------------------<br>
> src/mesa/main/format_unpack.py | 891 ++++++++<br>
> src/mesa/main/format_utils.c | 271 +--<br>
> src/mesa/main/format_utils.h | 131 ++<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, 3403 insertions(+), 10607 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>
<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div>