nir/lower_input_attachments: Support loading layer id via gl_ViewIndex
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 1 Jul 2020 15:29:45 +0000 (17:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 19 Aug 2020 16:36:43 +0000 (16:36 +0000)
commitc1a6e345739b83cc0ae386f455246caee3e06ffe
tree01c78106218e9b71889abb78a272c451d5db2df6
parent76f711d09d2f8c9b3bcd9f8c1694e553a486ac1f
nir/lower_input_attachments: Support loading layer id via gl_ViewIndex

This is required on adreno when the special multiview mode is switched
on.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5719>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_input_attachments.c