Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11139>
* valid for fixed-function, so check for this condition */
bool
-pan_blend_is_homogenous_constant(unsigned mask, float *constants)
+pan_blend_is_homogenous_constant(unsigned mask, const float *constants)
{
float constant = pan_blend_get_constant(mask, constants);
* just the first constant. */
static inline float
-pan_blend_get_constant(unsigned mask, float *constants)
+pan_blend_get_constant(unsigned mask, const float *constants)
{
return mask ? constants[ffs(mask) - 1] : 0.0;
}
}
bool
-pan_blend_is_homogenous_constant(unsigned mask, float *constants);
+pan_blend_is_homogenous_constant(unsigned mask, const float *constants);
void
pan_blend_to_fixed_function_equation(const struct pan_blend_equation eq,