From 7d60a8881d7d37812d532db5b5a91fcc8d3eb9aa Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 28 Jul 2021 19:48:28 -0400 Subject: [PATCH] pan/bi: Stub 64-bit in count_write_registers When Valhall lands, we'll need to be more methodical about this. In the mean time, this gets validation passing on KHR-GLES31.core.compute_shader.atomic-case3 which was crashing in RA and now again passes. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panfrost/bifrost/bir.c b/src/panfrost/bifrost/bir.c index 6433726c80b..06983363ae0 100644 --- a/src/panfrost/bifrost/bir.c +++ b/src/panfrost/bifrost/bir.c @@ -105,6 +105,8 @@ bi_count_write_registers(const bi_instr *ins, unsigned d) return 4; else return bi_count_staging_registers(ins); + } else if (ins->op == BI_OPCODE_SEG_ADD_I64) { + return 2; } return 1;