nir/split_vars: Don't split arrays of cooperative matrix types
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 24 Oct 2023 20:09:13 +0000 (13:09 -0700)
committerEric Engestrom <eric@engestrom.ch>
Mon, 30 Oct 2023 15:47:12 +0000 (15:47 +0000)
commitc23ba4e83a2108e9cc7700b1fb710f9d598c7e58
tree7f84852211548924361c3353f025d92af443c75b
parentc9040f482e5ce3f57c344b193f3279db05b7a8a4
nir/split_vars: Don't split arrays of cooperative matrix types

glsl_type_is_vector_or_scalar would more accruately be called "can be an
r-value that isn't an array, structure, or matrix. This optimization
pass really shouldn't do anything to cooperative matrices. These
matrices will eventually be lowered to something else (dependent on the
backend), and that thing may (or may not) be handled by this or another
pass.

Fixes: 2d0f4f2c17b ("compiler/types: Add support for Cooperative Matrix types")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25871>
(cherry picked from commit 18d8a96a00a1666fcf202ae89aee6344d295687e)
.pick_status.json
src/compiler/nir/nir_split_vars.c