nir/intrinsics: Allow deref sources to consume anything
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 28 Nov 2018 03:30:22 +0000 (21:30 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 8 Jan 2019 00:38:30 +0000 (00:38 +0000)
commit7755171e4c976d5b438d608c2a2f6081edc67278
tree4544e2b78f49558189e998e10eea42f00086ca44
parentd0fe52a456bca1877db583f3e3ca23387c323d31
nir/intrinsics: Allow deref sources to consume anything

This commit adds a new num_components value for intrinsic sources of -1
which means that it consumes everything and the number of components
effectively isn't validated.  This is useful for deref sources which
just take the result of the deref and we leave it up to the driver to
decide what that size should be.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_intrinsics.py