pan/bi: Special-case BLEND instruction emission for blend shaders
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 12 Oct 2020 13:17:42 +0000 (15:17 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 15 Oct 2020 06:05:23 +0000 (08:05 +0200)
commit3432d0a3e53896348d840176722be46d080ad439
treeeb7e320d9b12bfc3b0c87505d4a7602ead4b21d8
parent2f3f5da91dee2aa9727e7e2244a262584b0d9c02
pan/bi: Special-case BLEND instruction emission for blend shaders

Blend shaders shouldn't use the blend descriptors stored in the FAU RAM
since this is what triggered the blend shader call in the first place.
The descriptor is instead extracted from the compiler inputs and passed
as a constant to the blend instruction.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7151>
src/panfrost/bifrost/bifrost_compile.c