pan/bi: Copy blend shader info from compile_inputs
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>
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index 04858bd..7b58d09 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -445,6 +445,15 @@
struct panfrost_sysvals sysvals;
uint32_t quirks;
+ /* Is internally a blend shader? Depends on stage == FRAGMENT */
+ bool is_blend;
+
+ /* Blend constants */
+ float blend_constants[4];
+
+ /* Blend tile buffer conversion desc */
+ uint64_t blend_desc;
+
/* During NIR->BIR */
nir_function_impl *impl;
bi_block *current_block;