Home | History | Annotate | Download | only in swrast

Lines Matching refs:ALPHA

27  * \brief Functions to apply alpha test.
39 #define ALPHA_TEST(ALPHA, LOOP_CODE) \
44 mask[i] &= (ALPHA < ref); \
50 mask[i] &= (ALPHA <= ref); \
56 mask[i] &= (ALPHA >= ref); \
62 mask[i] &= (ALPHA > ref); \
68 mask[i] &= (ALPHA != ref); \
74 mask[i] &= (ALPHA == ref); \
79 _mesa_problem(ctx, "Invalid alpha test in _swrast_alpha_test" ); \
87 * Perform the alpha test for an array of pixels.
89 * \return 0 if all pixels in the span failed the alpha test,
90 * 1 if one or more pixels passed the alpha test.
112 /* Use array's alpha values */
132 /* Interpolate alpha values */
136 GLfixed alpha = span->alpha;
139 ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep);
143 GLfixed alpha = span->alpha;
146 ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep);
150 GLfloat alpha = FixedToFloat(span->alpha);
152 ALPHA_TEST(alpha, alpha += alphaStep);