mesa: Add support for unpacking 32-bit integer formats to int spans.
authorEric Anholt <eric@anholt.net>
Fri, 4 Nov 2011 00:08:16 +0000 (17:08 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 9 Nov 2011 20:59:20 +0000 (12:59 -0800)
commite34c9edcda9167c634fe8381bd039f1a65925d0a
treeab3264abf9c3941a950aa77b0ea823d1c7a8cc07
parent84277cb7d325cdeade8ce75eb4154adb744626dc
mesa: Add support for unpacking 32-bit integer formats to int spans.

This is the inverse operation to _mesa_pack_rgba_span_int.  The 16-bit
code isn't done because of lack of testing and not being sure how sign
extension/clamping should be handled between, say, 16-bit int and
32-bit int or uint.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/format_unpack.c
src/mesa/main/format_unpack.h