ac: pass the unmodified number of components to load gs inputs
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 1 Mar 2018 04:37:25 +0000 (15:37 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 6 Mar 2018 00:44:06 +0000 (11:44 +1100)
commit20bd0f6a2bd631aec06d5bdbcf72fa562ec8a9a2
tree183e53e464322b07eddae9fb9267042eaadf2fde
parent2a68c6c6c8785e3f844791475df8423a6968ddfd
ac: pass the unmodified number of components to load gs inputs

Currently both users of this would overflow an array when the
input was a dual slot double as they expected the number of
components to be a max of 4.

Since we pass the type we can just let the functions handle
doubles in a way they choose.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c