diff options
author | Kenneth Graunke <[email protected]> | 2018-07-05 14:34:27 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-05 13:58:46 -0800 |
commit | 15c69021176395a08febde51ce14a43a15fee07d (patch) | |
tree | 90ba3e4dc3628434575818759ec218ca2960c788 /src/compiler/nir/nir_serialize.h | |
parent | ba9dcc80fb2fc103835eef17153895f403d8654e (diff) |
nir: Avoid splitting compact arrays into per-element variables.
Compact arrays are used for special variables like clip and cull
distances, or tessellation levels. Drivers using compact arrays
assume that these values will always be actual arrays. We don't
want to turn a float[1] gl_CullDistance into a single float; that
would confuse drivers.
Today, i965 uses compact arrays, and Gallium drivers use
nir_lower_io_arrays_to_elements, so we haven't had any overlap
that would demonstrate the issue. Iris will use both.
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_serialize.h')
0 files changed, 0 insertions, 0 deletions