Lines Matching refs:blend
40 struct gen6_blend_state *blend;
54 size = sizeof(*blend) * nr_draw_buffers;
55 blend = brw_state_batch(brw, AUB_TRACE_BLEND_STATE,
58 memset(blend, 0, size);
93 blend[b].blend1.logic_op_enable = 1;
94 blend[b].blend1.logic_op_func =
98 GLenum eqRGB = ctx->Color.Blend[b].EquationRGB;
99 GLenum eqA = ctx->Color.Blend[b].EquationA;
100 GLenum srcRGB = ctx->Color.Blend[b].SrcRGB;
101 GLenum dstRGB = ctx->Color.Blend[b].DstRGB;
102 GLenum srcA = ctx->Color.Blend[b].SrcA;
103 GLenum dstA = ctx->Color.Blend[b].DstA;
113 blend[b].blend0.dest_blend_factor = brw_translate_blend_factor(dstRGB);
114 blend[b].blend0.source_blend_factor = brw_translate_blend_factor(srcRGB);
115 blend[b].blend0.blend_func = brw_translate_blend_equation(eqRGB);
117 blend[b].blend0.ia_dest_blend_factor = brw_translate_blend_factor(dstA);
118 blend[b].blend0.ia_source_blend_factor = brw_translate_blend_factor(srcA);
119 blend[b].blend0.ia_blend_func = brw_translate_blend_equation(eqA);
121 blend[b].blend0.blend_enable = 1;
122 blend[b].blend0.ia_blend_enable = (srcA != srcRGB ||
127 /* See section 8.1.6 "Pre-Blend Color Clamping" of the
140 * post-blend color clamping are either ignored, or any are
144 blend[b].blend1.pre_blend_clamp_enable = 1;
145 blend[b].blend1.post_blend_clamp_enable = 1;
146 blend[b].blend1.clamp_range = BRW_RENDERTARGET_CLAMPRANGE_FORMAT;
150 blend[b].blend1.alpha_test_enable = 1;
151 blend[b].blend1.alpha_test_func =
158 blend[b].blend1.dither_enable = 1;
159 blend[b].blend1.y_dither_offset = 0;
160 blend[b].blend1.x_dither_offset = 0;
163 blend[b].blend1.write_disable_r = !ctx->Color.ColorMask[b][0];
164 blend[b].blend1.write_disable_g = !ctx->Color.ColorMask[b][1];
165 blend[b].blend1.write_disable_b = !ctx->Color.ColorMask[b][2];
166 blend[b].blend1.write_disable_a = !ctx->Color.ColorMask[b][3];
175 blend[b].blend1.alpha_to_coverage =
182 if (ctx->Color.Blend[b]._UsesDualSrc)
183 blend[b].blend1.alpha_to_one = false;
185 blend[b].blend1.alpha_to_one =
188 blend[b].blend1.alpha_to_coverage_dither = (brw->intel.gen >= 7);
191 blend[b].blend1.alpha_to_coverage = false;
192 blend[b].blend1.alpha_to_one = false;