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 <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4396>
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)));