pan/bi: Rework blend descriptor access handling
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 12 Oct 2020 09:19:45 +0000 (11:19 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 15 Oct 2020 06:05:23 +0000 (08:05 +0200)
commit16179c89d118144b4435d9ad30e67d5fb7d923ef
treebadaeaf1dd7de35f5ef75858f0cc4b2948aa482c
parent6dd2a76126f6dfa43930d9d95b7d61662a4a7ec5
pan/bi: Rework blend descriptor access handling

The current logic assumes blend descriptors are always retrieved from
the blend descriptor slots present in the FAU RAM, but this assumption
no longer stands when we add blend shaders to the mix. In that case we
need to use an 'opaque blend' whose descriptor is passed through
embedded constants.

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/bi_pack.c
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/compiler.h