OSDN Git Service

nir: add variant of lower_io_to_scalar to be called earlier
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 5 Oct 2017 22:19:35 +0000 (09:19 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 15 Oct 2017 22:06:53 +0000 (09:06 +1100)
commit6af5e0bec97c2369c29cfbbaf56046eecd218f7a
tree1b41b96cc153e1f3de036462279f8edf7e52e9f7
parent3b59f5ca170a5459e2f7cd5a0d0142f6e15dde3c
nir: add variant of lower_io_to_scalar to be called earlier

This is intended to be called before nir_lower_io() so that we
can do some linking optimisations with the results. It can also
be used with drivers that don't use nir_lower_io() at all such
as RADV.

v2: pass mode mask rather than first and last stage integer.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_io_to_scalar.c