nir: add lowering pass for fragcolor -> fragdata
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 6 Jul 2020 12:56:16 +0000 (08:56 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Jul 2020 14:51:34 +0000 (14:51 +0000)
commit1fd356302590b30524fb190360247a6c45e1d96c
treefe40f07561da7c6624e2810be98d9039b111d9d5
parent44da0f067ca0fa9c4eabe06685df157665ffb508
nir: add lowering pass for fragcolor -> fragdata

this is needed for zink and other drivers which can support fragcolor but
not fragdata and want to correctly handle EXT_multiview_draw_buffers

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5687>
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_fragcolor.c [new file with mode: 0644]