Fix MESA_FORMAT_A2B10G10R10_UINT MESA_FORMAT_A2R10G10B10_UINT missing definition

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Fix MESA_FORMAT_A2B10G10R10_UINT MESA_FORMAT_A2R10G10B10_UINT

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
First experiment on _mesa_pack_rgba_span_from_ints()

It uses _mesa_swizzle_and_convert() meanwhile. When the regressions
are fixed, I will try to use _mesa_format_convert() entirely.

Fails this test in some specific formats:
   bin/ext_texture_integer-getteximage-clamping -fbo -auto

It seems that it's copied just the LSB of each component
instead of the MSB.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Second experiment: use _mesa_format_convert.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
mesa/main: add clamp flag to _mesa_swizzle_and_convert()

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Fix regression of clamping in _mesa_swizzle_and_convert()

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
mesa/main/pack.c: Use _mesa_format_convert() in _mesa_pack_rgba_span_from_ints()

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Use clamp for more cases in convert_*() at format_utils.c

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
_mesa_pack_rgba_span_from_uints() uses master conversion function

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Add clamp support in mesa_swizzle_and_convert() for floats

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Use master conversion in _mesa_pack_rgba_span_float()

I needed to creat pack_luminance_from_floats() to get rid of
pack_tmp.h and simplify code.

GL_UNSIGNED_SHORT is still doing it's own thing as I cannot
modify the UNCLAMP* and CLAMP* macro for all cases it's being used.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Remove pack_tmp.h. It is not needed anymore

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
mesa/main/pack: remove unused functions

extract_uint_rgba(), _mesa_unpack_color_span_uint() and others.

They have been substituted by master conversion function in the
callers.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
DELETE COMMIT: remove unused code in texstore.c

So I can compile without errors. Iago will write the proper patch
for it.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Revert "mesa/main/pack: remove unused functions"

This reverts commit 949d203848c580866542d130e601f6f3cb71494a.

Found some issues when compiling the driver. I need to remove
those functions but I will look at it later.
Revert "DELETE COMMIT: remove unused code in texstore.c"

This reverts commit 3e0c8fec03acb6da6ffce2fd7e103e730539be24.

As the previous commit, I need to look at it later.
Removes _mesa_unpack_bitmap() in favor of the more generic func _mesa_unpack_image()

Signed-off-by: Eduardo Lima Mitev <elima@igalia.com>