From 2292e2aa10a3ef77ef4d195c09aad334a18bd080 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 31 Mar 2020 12:55:31 -0400 Subject: [PATCH] pan/bi: Fix writes_component for VECTOR I'm not convinced this is the best way and it's sort of a hack, but it fixes RA for st_vary. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/panfrost/bifrost/bir.c b/src/panfrost/bifrost/bir.c index 8256c45a780..b42db852ce4 100644 --- a/src/panfrost/bifrost/bir.c +++ b/src/panfrost/bifrost/bir.c @@ -148,6 +148,10 @@ bi_get_immediate(bi_instruction *ins, unsigned index) bool bi_writes_component(bi_instruction *ins, unsigned comp) { + /* TODO: Do we want something less coarse? */ + if (bi_class_props[ins->type] & BI_VECTOR) + return true; + nir_alu_type T = ins->dest_type; unsigned size = nir_alu_type_get_type_size(T); return ins->writemask & (0xF << (comp * (size / 8))); -- 2.30.2