<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 7, 2015 at 11:21 PM, 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 second 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>
This series requires the previous series that implements auto-generation of<br>
the pack/unpack functions. A branch with both series is available here:<br>
<a href="https://github.com/Igalia/mesa/tree/itoral-format-convert-review-v4" target="_blank">https://github.com/Igalia/mesa/tree/itoral-format-convert-review-v4</a><br>
<br>
Links to the previous versions of this series:<br>
v3: <a href="http://lists.freedesktop.org/archives/mesa-dev/2014-December/072297.html" target="_blank">http://lists.freedesktop.org/archives/mesa-dev/2014-December/072297.html</a><br>
v2: <a href="http://lists.freedesktop.org/archives/mesa-dev/2014-December/071643.html" target="_blank">http://lists.freedesktop.org/archives/mesa-dev/2014-December/071643.html</a><br>
v1: <a href="http://lists.freedesktop.org/archives/mesa-dev/2014-November/070916.html" target="_blank">http://lists.freedesktop.org/archives/mesa-dev/2014-November/070916.html</a><br>
<br>
Patches that need review: 8, 11, 16<br>
- Patches 8,11 are related to the luminance packing helpers for the<br>
implementation of glReadPixels. Specifically, v3 had comments regarding<br>
the need of clamping when packing integer luminance values.<br>
- Patch 16 was moved to a later position in the series and updated to fix<br>
some issues that where introduced in the previous version while rebasing<br>
the patch.<br></blockquote><div><br></div><div>Series is:<br></div><div><br></div><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><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, except for the two regressions introduced with the last patch<br>
"mesa: restrict use of GL_ABGR_EXT format to allowed data types" that<br>
have been discussed in the list previously, where we agreed that the tests<br>
seem to be wrong according to the specs. Also, 14 new subtest passes.<br>
<br>
Eduardo Lima Mitev (1):<br>
mesa: Replace _mesa_unpack_bitmap with _mesa_unpack_image()<br>
<br>
Iago Toral Quiroga (23):<br>
mesa: Expose compute_component_mapping as<br>
_mesa_compute_component_mapping<br>
mesa: Add a rebase_swizzle parameter to _mesa_format_convert<br>
mesa: Add a helper _mesa_compute_rgba2base2rgba_component_mapping<br>
mesa: Add helper to convert a GL format and type to a mesa (array)<br>
format.<br>
mesa: Add _mesa_swap2_copy and _mesa_swap4_copy<br>
mesa: Add RGBA to Luminance conversion helpers<br>
mesa: Add helpers to extract GL_COLOR_INDEX to RGBA float/ubyte<br>
mesa: Use _mesa_format_convert to implement texstore_rgba.<br>
mesa: use _mesa_format_convert to implement glReadPixels.<br>
mesa: use _mesa_format_convert to implement get_tex_rgba_uncompressed.<br>
mesa: Use _mesa_format_convert to implement get_tex_rgba_compressed.<br>
swrast: Use _mesa_format_convert to implement draw_rgba_pixels.<br>
st/mesa: Use _mesa_format_convert to implement st_GetTexImage.<br>
mesa: Let _mesa_swizzle_and_convert take array format types instead of<br>
GL types<br>
mesa: Remove _mesa_unpack_color_span_uint<br>
mesa: Remove _mesa_make_temp_ubyte_image<br>
mesa: Remove _mesa_make_temp_float_image<br>
mesa: Remove _mesa_unpack_color_span_ubyte<br>
mesa: Remove (signed) integer pack and span functions.<br>
mesa: Remove _mesa_unpack_color_span_float<br>
mesa: Remove _mesa_pack_rgba_span_float and tmp_pack.h<br>
mesa: Remove _mesa_(un)pack_index_span<br>
mesa: Remove _mesa_rebase_rgba_uint and _mesa_rebase_rgba_float<br>
<br>
Jason Ekstrand (1):<br>
mesa: Add an implementation of a master convert function.<br>
<br>
Samuel Iglesias Gonsalvez (3):<br>
mesa/pack: use _mesa_format_from_format_and_type in<br>
_mesa_pack_rgba_span_from_*<br>
mesa: Remove _mesa_pack_int_rgba_row() and auxiliary functions<br>
mesa: restrict use of GL_ABGR_EXT format to allowed data types<br>
<br>
src/mesa/main/dlist.c | 14 +-<br>
src/mesa/main/format_pack.h | 4 -<br>
src/mesa/main/format_pack.py | 121 --<br>
src/mesa/main/format_utils.c | 698 ++++++-<br>
src/mesa/main/format_utils.h | 21 +-<br>
src/mesa/main/formats.c | 28 -<br>
src/mesa/main/formats.csv | 4 -<br>
src/mesa/main/formats.h | 5 -<br>
src/mesa/main/glformats.c | 519 ++++-<br>
src/mesa/main/glformats.h | 5 +<br>
src/mesa/main/image.c | 25 +-<br>
src/mesa/main/image.h | 16 +-<br>
src/mesa/main/pack.c | 3598 +++-----------------------------<br>
src/mesa/main/pack.h | 86 +-<br>
src/mesa/main/pack_tmp.h | 196 --<br>
src/mesa/main/readpix.c | 326 +--<br>
src/mesa/main/texcompress_bptc.c | 39 +-<br>
src/mesa/main/texcompress_fxt1.c | 34 +-<br>
src/mesa/main/texcompress_rgtc.c | 90 +-<br>
src/mesa/main/texcompress_s3tc.c | 68 +-<br>
src/mesa/main/texgetimage.c | 323 +--<br>
src/mesa/main/texstore.c | 1144 +---------<br>
src/mesa/main/texstore.h | 19 -<br>
src/mesa/state_tracker/st_cb_texture.c | 17 +-<br>
src/mesa/swrast/s_drawpix.c | 38 +-<br>
src/mesa/swrast/s_texfetch.c | 4 -<br>
26 files changed, 2161 insertions(+), 5281 deletions(-)<br>
delete mode 100644 src/mesa/main/pack_tmp.h<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>