diff options
author | James Benton <[email protected]> | 2012-04-18 15:25:34 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-05-02 10:12:48 +0100 |
commit | 0b0f4628d6fb8276a9f1c336a785a838b602bca8 (patch) | |
tree | d2034e3fb529499e3a0c389ec40ad2c815996ca9 /src/gallium/auxiliary | |
parent | 85d09d1c61d3e5ab2c2ae6fc74a30ea6a572f25e (diff) |
llvmpipe: Added support for color masks in AoS blending.
Signed-off-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_format.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index bd4e51d279f..1718fb5e240 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -549,6 +549,19 @@ util_format_colormask(const struct util_format_description *desc) } +/** + * Checks if color mask covers every channel for the specified format + * + * @param desc a format description to check colormask with + * @param colormask a bit mask for channels, matches format of PIPE_MASK_RGBA + */ +static INLINE boolean +util_format_colormask_full(const struct util_format_description *desc, unsigned colormask) +{ + return (~colormask & util_format_colormask(desc)) == 0; +} + + boolean util_format_is_float(enum pipe_format format); |