aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_utils.h
Commit message (Collapse)AuthorAgeFilesLines
* mesa/format_utils: Add a general format conversion functionJason Ekstrand2014-08-051-0/+41
Most format conversion operations required by GL can be performed by converting one channel at a time, shuffling the channels around, and optionally filling missing channels with zeros and ones. This adds a function to do just that in a general, yet efficient, way. v2: * Add better comments including full docs for functions * Don't use __typeof__ * Use inline helpers instead of writing out conversions by hand, * Force full loop unrolling for better performance v3: Add another set of parens around the MAX_INT macro Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Brian Paul <[email protected]>