glsl: Disallow vectorization of vector_insert/extract.
vector_insert takes a vector, a scalar location, and a scalar value, and produces a new vector with that component updated. As such, it can't be vectorized properly. vector_extract takes a vector and a scalar location, and returns that scalar component of the vector. Vectorization doesn't really make any sense. Treating both as horizontal operations makes sure the vectorizer won't try to touch these. Found by inspection. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
8d4039ecdb
commit
3e8f644ed3
|
@ -1724,6 +1724,8 @@ public:
|
|||
return operation == ir_binop_all_equal ||
|
||||
operation == ir_binop_any_nequal ||
|
||||
operation == ir_binop_dot ||
|
||||
operation == ir_binop_vector_extract ||
|
||||
operation == ir_triop_vector_insert ||
|
||||
operation == ir_quadop_vector;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue