nir: do not pack varying with different types
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 Apr 2019 09:26:12 +0000 (11:26 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 Apr 2019 11:57:42 +0000 (13:57 +0200)
commit5eb17506e15925e89a41f0e9e35d3f5e5f8e7729
treeb54adbe7a90e11ad0652358af88893de9fd164f3
parent0dff1533f25951adda3c36be6d9efa944741befb
nir: do not pack varying with different types

The current algorithm only supports packing 32-bit types.
If a shader uses both 16-bit and 32-bit varyings, we shouldn't
compact them together.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_linking_helpers.c