From: Alyssa Rosenzweig Date: Tue, 31 Mar 2020 16:55:31 +0000 (-0400) Subject: pan/bi: Fix writes_component for VECTOR X-Git-Tag: upstream/20.1.8~1834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2292e2aa10a3ef77ef4d195c09aad334a18bd080;p=platform%2Fupstream%2Fmesa.git 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: --- diff --git a/src/panfrost/bifrost/bir.c b/src/panfrost/bifrost/bir.c index 8256c45..b42db85 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)));