diff options
author | Jason Ekstrand <[email protected]> | 2014-07-11 08:41:49 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2014-08-05 10:56:16 -0700 |
commit | d55f77b503ab7b59ecdd8f31c4f7dc498710e75b (patch) | |
tree | 88f3461e990201b51f8226a40bbc7e870abf8e14 /src/mesa/main/enable.h | |
parent | 452d64986bd510753d13b56b33951f1b4348e3a9 (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/enable.h')
0 files changed, 0 insertions, 0 deletions