mesa/format_pack: Add _mesa_pack_int_rgba_row()
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 8 Oct 2014 14:02:21 +0000 (16:02 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 12 Jan 2015 10:20:28 +0000 (11:20 +0100)
commitf8d160fc96cccb46040d47b4dead31c81375e6b6
tree8ebd1fa628e53a6b0a630587b2694769721416a8
parent9567e1048b62635ee2c508dc89710e0a77eac99d
mesa/format_pack: Add _mesa_pack_int_rgba_row()

This will be used to unify code in pack.c.

v2:
- Modify pack_int_*() function generator to use c.datatype() and
  f.datatype()

v3:
- Only autogenerate pack_int_*() functions for non-normalized integer
  formats.

v4:
- Use _mesa_unsigned_to_unsigned() in pack_int_*() because, in order
  to be able to pack both signed and unsigned formats, we need to
  sign-extend.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/main/format_pack.h
src/mesa/main/format_pack.py