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 <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4396>
This commit is contained in:
parent
b033189dd7
commit
2292e2aa10
|
@ -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)));
|
||||
|
|
Loading…
Reference in New Issue