Revert "pan/bi: Require ATEST coverage mask input in R60"

This reverts commit 7ead256891.

See https://gitlab.freedesktop.org/mesa/mesa/-/issues/7025 for the
details, but the short version is that this was causing a segfault.
This commit is contained in:
Eric Engestrom 2022-08-10 16:43:24 +01:00
parent 39c9a3c7fa
commit c69f1dba5c
2 changed files with 1 additions and 12 deletions

View file

@ -6349,7 +6349,7 @@
"description": "pan/bi: Require ATEST coverage mask input in R60",
"nominated": true,
"nomination_type": 0,
"resolution": 1,
"resolution": 2,
"main_sha": null,
"because_sha": null
},

View file

@ -334,17 +334,6 @@ bi_allocate_registers(bi_context *ctx, bool *success, bool full_regs)
if (node < node_count)
l->solutions[node] = 4;
}
/* Experimentally, it seems coverage masks inputs to ATEST must
* be in R60. Otherwise coverage mask writes do not work with
* early-ZS with pixel-frequency-shading (this combination of
* settings is legal if depth/stencil writes are disabled).
*/
if (ins->op == BI_OPCODE_ATEST) {
unsigned node = bi_get_node(ins->src[0]);
assert(node < node_count);
l->solutions[node] = 60;
}
}
bi_compute_interference(ctx, l, full_regs);