From 6c61f0b8e5d1c37192fef9de83201653cc998de5 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Mon, 12 Oct 2020 14:56:45 +0200 Subject: [PATCH] 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 Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/util/pan_ir.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panfrost/util/pan_ir.h b/src/panfrost/util/pan_ir.h index dec35bc..7a04f25 100644 --- a/src/panfrost/util/pan_ir.h +++ b/src/panfrost/util/pan_ir.h @@ -110,6 +110,7 @@ struct panfrost_compile_inputs { struct { unsigned rt; float constants[4]; + uint64_t bifrost_blend_desc; } blend; bool shaderdb; -- 2.7.4