zink: translate gl_FragColor to gl_FragData before ntv to fix multi-rt output
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 6 Jul 2020 12:58:28 +0000 (08:58 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Jul 2020 14:51:34 +0000 (14:51 +0000)
commit0ca7bd73c6f1f59dcb41ead7a3923c55040377d9
tree086865c56dea6dbe9c6a958e6c398809252a1503
parent1fd356302590b30524fb190360247a6c45e1d96c
zink: translate gl_FragColor to gl_FragData before ntv to fix multi-rt output

according to EXT_multiview_draw_buffers, gl_FragColor outputs to all available
render targets when used, so we need to translate this to gl_FragData[PIPE_MAX_COLOR_BUFS]
in order to correctly handle more than one color buffer attachment

this fixes the rest of spec@arb_framebuffer_object tests in piglit

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5687>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
src/gallium/drivers/zink/zink_compiler.c