diff options
author | Boris Brezillon <boris.brezillon@collabora.com> | 2020-10-12 14:56:45 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@collabora.com> | 2020-10-15 08:05:23 +0200 |
commit | 6c61f0b8e5d1c37192fef9de83201653cc998de5 (patch) | |
tree | 2319f1588cb7e7dd2f698c325ec49914341de4af | |
parent | d8326ceafbd8903b69e211ec6449ecdb83efc761 (diff) |
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>
-rw-r--r-- | src/panfrost/util/pan_ir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/util/pan_ir.h b/src/panfrost/util/pan_ir.h index dec35bcd2f1..7a04f256068 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; |