<div dir="ltr"><div>Iago,<br></div>This is looking good. I have a few comments on a couple of the patches. Everything else is<br><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:07 AM, Iago Toral Quiroga <span dir="ltr"><<a href="mailto:itoral@igalia.com" target="_blank">itoral@igalia.com</a>></span> wrote:<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-v3" target="_blank">https://github.com/Igalia/mesa/tree/itoral-format-convert-review-v3</a><br>
<br>
Links to the previous versions of this series:<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>
Main changes in v3:<br>
- Adapted to the implementation of mesa_array_format as a simple uint32_t<br>
bitfield.<br>
<br>
Notes:<br>
- Following discussion in the mailing list, the last patch removes support<br>
for:<br>
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<br>
which breaks the following piglit tests in their current form:<br>
spec/!OpenGL 1.2/texture-packed-formats<br>
glean/pixelFormats<br>
<br>
Tested on i965, classic swrast and gallium (radeon, nouveau, llvmpipe) without<br>
regressions, except for the two regressions mentioned above with the last patch.<br>
<br>
14 new piglit passes:<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_RGB16_SNORM/Destination: GL_RGB16_SNORM<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_ALPHA12/Destination: GL_ALPHA12<br>
spec/!OpenGL 1.1/teximage-colors GL_RGB16_SNORM/Exact upload-download of GL_RGB16_SNORM<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_RGB8I/Destination: GL_RGB8_SNORM<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_RGB16UI/Destination: GL_RGB16_SNORM<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_RGB8_SNORM/Destination: GL_RGB8_SNORM<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_RGB8UI/Destination: GL_RGB8_SNORM<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_RGB8/Destination: GL_RGB8_SNORM<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_RGB16/Destination: GL_RGB16_SNORM<br>
spec/!OpenGL 1.1/teximage-colors GL_RGB8_SNORM/Exact upload-download of GL_RGB8_SNORM<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_INTENSITY12/Destination: GL_INTENSITY12<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_LUMINANCE12/Destination: GL_LUMINANCE12<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_LUMINANCE12_ALPHA12/Destination: GL_LUMINANCE12_ALPHA12<br>
spec/ARB_copy_image/arb_copy_image-formats/Source: GL_RGB16I/Destination: GL_RGB16_SNORM<br>
<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: Let _mesa_swizzle_and_convert take array format types instead of<br>
GL types<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>
gallium: Use _mesa_format_convert to implement st_GetTexImage.<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 | 908 ++++++++-<br>
src/mesa/main/format_utils.h | 24 +-<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 | 323 ++-<br>
src/mesa/main/glformats.h | 2 +<br>
src/mesa/main/image.c | 25 +-<br>
src/mesa/main/image.h | 16 +-<br>
src/mesa/main/pack.c | 3505 ++------------------------------<br>
src/mesa/main/pack.h | 85 +-<br>
src/mesa/main/pack_tmp.h | 196 --<br>
src/mesa/main/readpix.c | 321 +--<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 | 1145 +----------<br>
src/mesa/main/texstore.h | 19 -<br>
src/mesa/state_tracker/st_cb_texture.c | 17 +-<br>
src/mesa/swrast/s_drawpix.c | 39 +-<br>
src/mesa/swrast/s_texfetch.c | 4 -<br>
26 files changed, 2042 insertions(+), 5317 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></div>