panfrost: Extend compile_inputs to pass a blend descriptor
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 12 Oct 2020 12:56:45 +0000 (14:56 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 15 Oct 2020 06:05:23 +0000 (08:05 +0200)
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>

src/panfrost/util/pan_ir.h

index dec35bc..7a04f25 100644 (file)
@@ -110,6 +110,7 @@ struct panfrost_compile_inputs {
         struct {
                 unsigned rt;
                 float constants[4];
+                uint64_t bifrost_blend_desc;
         } blend;
         bool shaderdb;