st/mesa: Add NIR versions of the clear shaders.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 2 Nov 2018 09:24:00 +0000 (02:24 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 5 Feb 2019 21:43:39 +0000 (13:43 -0800)
commitbe492affa8b687d38970da1343f765b0ee4ee116
tree549800f24d5593f30b65ad505a43a5f828e517ab
parent3f28b245b5d7f82546da7c889227f3b77a338786
st/mesa: Add NIR versions of the clear shaders.

We implement the basic VS and FS, as well as the VS that does layered
clears by writing gl_Layer from the vertex shader.  Drivers which need
a geometry shader for writing layer continue falling back to TGSI, as
I didn't need this and so didn't bother implementing it.  (We certainly
could, however, if people want to add it in the future.)

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Rob Clark <robdclark@gmail.com>
Tested-by: Eric Anholt <eric@anholt.net>
src/mesa/state_tracker/st_cb_clear.c