nir: do not try to merge xfb-outputs
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 4 Jun 2020 10:38:08 +0000 (12:38 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Jun 2020 16:13:58 +0000 (16:13 +0000)
commite838acf37d055ba3734d720804b72eb1ecf02577
treeeed41673760a7fb1942cec9ba58c1d4676a43b9b
parentb5c810d68b2c1b42209c24f8eff7c69c621995a0
nir: do not try to merge xfb-outputs

It's tricky to merge XFB-outputs correctly, because we need there to not
be any overlaps when we get to `nir_gather_xfb_info_with_varyings` later
on. We currently trigger an assert there if we end up merging here.

So let's not even try. This is an optimization, and we can optimize this
in safe cases later if needed. For now, let's play it safe.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5329>
src/compiler/nir/nir_lower_io_to_vector.c