aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost/bifrost/bir.c')
-rw-r--r--src/panfrost/bifrost/bir.c4
1 files changed, 4 insertions, 0 deletions
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)));