• Jason Ekstrand's avatar
    nir: Make nir_constant a vector rather than a matrix · 81e51b41
    Jason Ekstrand authored
    Most places in NIR, we treat matrices like arrays.  The one annoying
    exception to this has been nir_constant where a matrix is a first-class
    thing.  This commit changes that so a matrix nir_constant is the same as
    an array nir_constant.  This makes matrix nir_constants a tiny bit more
    expensive but shrinks all others by 96B.
    Reviewed-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
    81e51b41
nir.h 110 KB