Commit 469d7490 authored by Boris Brezillon's avatar Boris Brezillon Committed by Marge Bot
Browse files

pan/bi: Fix ATEST emission



The ATEST FAU index must point to the ATEST parameter datum slot
otherwise the cmdstream config is ignored.

(Rebased by Alyssa)
Signed-off-by: Boris Brezillon's avatarBoris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <mesa/mesa!8135>
parent f6e128fb
......@@ -104,6 +104,13 @@ bi_assign_fau_idx_single(bi_registers *regs,
if (!ins)
return assigned;
if (ins->op == BI_OPCODE_ATEST) {
/* ATEST FAU index must point to the ATEST parameter datum slot */
assert(!assigned && !clause->branch_constant);
regs->fau_idx = BIR_FAU_ATEST_PARAM;
return true;
}
if (ins->branch_target && clause->branch_constant) {
/* By convention branch constant is last XXX: this whole thing
* is a hack, FIXME */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment