nir/lower_clip: add a find_clipvertex_and_position_outputs() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 28 Jun 2019 00:10:28 +0000 (10:10 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 18 Jul 2019 23:25:47 +0000 (09:25 +1000)
commite38b93087638781ef83c9b3cc3bb424e448a5380
tree1a6c3730c412e1f92558f04f7d8ad42c058ff15f
parent0395b58c92bf70c76accc6387141937bf748553d
nir/lower_clip: add a find_clipvertex_and_position_outputs() helper

This will allow code sharing in a following patch that adds support
for lowering in geometry shaders. It also allows us to exit early
if there is no lowering to do which allows a small code tidy up.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_lower_clip.c