Rather than doing this at pack time like before, or adding extra
constraints to the already overcomplicated scheduler, let's just include
it like a regular FAU source.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8354>
(T == nir_type_float32) ? bi_word(rgba, 3) :
bi_dontcare();
- bi_atest_to(b, bi_register(60), bi_register(60), alpha);
+ bi_instr *atest = bi_atest_to(b, bi_register(60),
+ bi_register(60), alpha);
b->shader->emitted_atest = true;
+
+ /* Pseudo-source to encode in the tuple */
+ atest->src[2] = bi_fau(BIR_FAU_ATEST_PARAM, false);
}
if (emit_zs) {