Commit 2292e2aa authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜 Committed by Marge Bot
Browse files

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's avatarAlyssa Rosenzweig <>
Part-of: <mesa/mesa!4396>
parent b033189d
......@@ -148,6 +148,10 @@ bi_get_immediate(bi_instruction *ins, unsigned index)
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)));
Supports Markdown
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