mesa/pack: refactor _mesa_pack_rgba_span_float()
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 10 Oct 2014 10:46:02 +0000 (12:46 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 12 Jan 2015 10:20:28 +0000 (11:20 +0100)
commitba5418c60d7301fc78190bf7a39f475d868b6126
tree37312ebce41fba300bee4b0b017df2931151a542
parent41a785b09c4218670ef34f62bd409a3b38edbd61
mesa/pack: refactor _mesa_pack_rgba_span_float()

Use autogenerated format pack functions and take advantage of some
macros to reduce source code, facilitating its maintenance.

Unfortunately, dstType == GL_UNSIGNED_SHORT cannot simplified like
the others, so keep it as it is.

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