panfrost: Extend compile_inputs to pass a blend descriptor

This is needed for BLEND instructions used from a blend shader so we can
store the result of the shader-based blending back to the tile buffer.
We let the gallium driver build this blend descriptor for us in order
to keep the compiler cmdstream-agnostic.

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>
This commit is contained in:
Boris Brezillon 2020-10-12 14:56:45 +02:00
parent d8326ceafb
commit 6c61f0b8e5

View file

@ -110,6 +110,7 @@ struct panfrost_compile_inputs {
struct {
unsigned rt;
float constants[4];
uint64_t bifrost_blend_desc;
} blend;
bool shaderdb;