aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shared.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-07-11 08:41:49 -0700
committerJason Ekstrand <[email protected]>2014-08-05 10:56:16 -0700
commitd55f77b503ab7b59ecdd8f31c4f7dc498710e75b (patch)
tree88f3461e990201b51f8226a40bbc7e870abf8e14 /src/mesa/main/shared.h
parent452d64986bd510753d13b56b33951f1b4348e3a9 (diff)
mesa/format_utils: Add a general format conversion function
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]>
Diffstat (limited to 'src/mesa/main/shared.h')
0 files changed, 0 insertions, 0 deletions