mesa: add packing for int/uint
authorDave Airlie <airlied@redhat.com>
Mon, 19 Sep 2011 14:06:13 +0000 (15:06 +0100)
committerDave Airlie <airlied@redhat.com>
Sat, 8 Oct 2011 16:44:58 +0000 (17:44 +0100)
commit8f9edbad6f972792a51234715aad83c406e1845d
treef828adb2402c15583136e706e50b9b940ecfb09d
parent61285c6cfa9ce6086d62fa08bc9e3813f0b30d3d
mesa: add packing for int/uint

This just adds a simple packing for GL_UNSIGNED_INT/GL_INT destination formats.
This is enough for at least the gallium drivers to pack both unsigned and signed types for read pixels.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/pack.c
src/mesa/main/pack.h