}
if (c->key.nr_color_regions == 0) {
- if (c->key.alpha_test) {
- /* If the alpha test is enabled but there's no color buffer,
- * we still need to send alpha out the pipeline to our null
- * renderbuffer.
- */
- emit_color_write(0, 3, color_mrf);
- }
+ /* Even if there's no color buffers enabled, we still need to send
+ * alpha out the pipeline to our null renderbuffer to support
+ * alpha-testing, alpha-to-coverage, and so on.
+ */
+ emit_color_write(0, 3, color_mrf);
fs_inst *inst = emit(FS_OPCODE_FB_WRITE);
inst->base_mrf = base_mrf;
/* Build the index for table lookup
*/
- /* _NEW_COLOR */
- key->alpha_test = ctx->Color.AlphaEnabled;
-
if (intel->gen < 6) {
+ /* _NEW_COLOR */
if (fp->program.UsesKill || ctx->Color.AlphaEnabled)
lookup |= IZ_PS_KILL_ALPHATEST_BIT;