<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 1, 2014 at 3:04 AM, Iago Toral Quiroga <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">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-v2" target="_blank">https://github.com/Igalia/mesa/tree/itoral-autogen-packing-review-v2</a><br>
<br>
Link to the original series:<br>
<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 v2:<br>
- Fixed auto-generation for a2r10g10b10, removed hand coded implementation.<br>
- Updated docs and configure to requite mako as a build dependency.<br>
- Expanded the patch to mesa_swizzle_and_convert to clamp in all integer<br>
conversions that require it.<br>
- Fixed out-of-tree builds.<br>
- Fixed handling of integer formats.<br>
- Merged format_conver.py into format_parser.py.<br></blockquote><div><br></div><div>This is looking much better! I had a couple of comments here and there but otherwise, the whole thing looks pretty good to me. Most of the fixes at this point should be pretty trivial, so you probably don't need to re-send the series. I'll try and scare up a review for the bits of code in here that I wrote.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Jason, we decided to keep the support for GL_ABGR_EXT/GL_UNSIGNED_SHORT_5_5_5_1,<br>
GL_ABGR_EXT/GL_UNSIGNED_SHORT_1_5_5_5_REV,<br>
GL_ABGR_EXT/GL_UNSIGNED_INT_2_10_10_10_REV,<br>
GL_ABGR_EXT/GL_UNSIGNED_INT_10_10_10_2 in this series, since these types<br>
are currently supported and removing them would be a change in behavior.<br>
When we send the second series to address format conversion we will<br>
include a separate patch at the end to remove these types. If you prefer this<br>
to be handled differently, let us know.<br></blockquote><div> <br></div><div>I talked to a few people and as far as we can tell, those should be disallowed by the type/format checks in TexSubImage and friends. Ian suggested that we run that piglit test against nVidia and AMD's closed-source drivers and see what they do. If they don't support ABGR with 5551, then let's go ahead and drop support for it ourselves. If they do, then it's not that much code to keep. It's also possible that they don't support the extension at all in which case let's keep the extension and drop support for using it with 5551. That said, let's make it a seperate patch so that if anyone complains it's easy to revert.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Patch 11 is optional now that we no longer need to pass a base format to<br>
_mesa_format_convert (implemented in the second series), but still looks like<br>
a good idea to me.<br></blockquote><div><br></div><div>Yeah, let's keep it<br><br></div><div>--Jason<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>
mesa: 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 (11):<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>
<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 | 56 +<br>
src/mesa/Makefile.am | 26 +<br>
src/mesa/Makefile.sources | 4 +-<br>
src/mesa/main/colormac.h | 3 -<br>
src/mesa/main/format_info.py | 41 +<br>
src/mesa/main/format_pack.c | 2994 ------------------------<br>
src/mesa/main/format_pack.c.mako | 1102 +++++++++<br>
src/mesa/main/format_pack.h | 6 +<br>
src/mesa/main/format_parser.py | 71 +<br>
src/mesa/main/format_unpack.c | 4400 ------------------------------------<br>
src/mesa/main/format_unpack.c.mako | 881 ++++++++<br>
src/mesa/main/format_utils.c | 262 +--<br>
src/mesa/main/format_utils.h | 130 ++<br>
src/mesa/main/formats.c | 262 ++-<br>
src/mesa/main/formats.csv | 13 +<br>
src/mesa/main/formats.h | 82 +-<br>
src/mesa/main/pack.c | 2111 +++--------------<br>
src/mesa/main/pack_tmp.h | 76 +-<br>
src/mesa/main/python_mako.py | 17 +<br>
src/mesa/main/run_mako.py | 7 +<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, 3338 insertions(+), 10597 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.c.mako<br>
delete mode 100644 src/mesa/main/format_unpack.c<br>
create mode 100644 src/mesa/main/format_unpack.c.mako<br>
create mode 100644 src/mesa/main/python_mako.py<br>
create mode 100644 src/mesa/main/run_mako.py<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.9.1<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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>