summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/clear.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-03-24 01:16:57 -0700
committerKenneth Graunke <[email protected]>2014-03-24 14:38:51 -0700
commit92234b1b2aaf6ba68e786498806cefd4bd99dabc (patch)
treea9d5beedbb0f1bde9c00b5614ff9d3bfaa65e3e9 /src/mesa/main/clear.c
parent0d99aef6c8a940e52afcbffa7091ff9c854ba120 (diff)
mesa: Introduce a _mesa_format_has_color_component() helper.
When considering color write masks, we often want to know whether an RGBA component actually contains any meaningful data. This function provides an easy way to answer that question, and handles luminance, intensity, and alpha formats correctly. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Tested-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/mesa/main/clear.c')
0 files changed, 0 insertions, 0 deletions