panfrost: Refactor blend infrastructure

Graphics / Mesa 3D Graphics Library / Mesa - Alyssa Rosenzweig [collabora.com] - 10 July 2019 13:12 EDT

We would like to permit keying blend shaders against the framebuffer format, which requires some new blending abstractions.

46396af1ec4 panfrost: Refactor blend infrastructure
src/gallium/drivers/panfrost/meson.build | 1 +
src/gallium/drivers/panfrost/pan_blend.h | 109 +++++++++
src/gallium/drivers/panfrost/pan_blend_cso.c | 268 +++++++++++++++++++++++
src/gallium/drivers/panfrost/pan_blend_shaders.c | 34 ++-
src/gallium/drivers/panfrost/pan_blend_shaders.h | 8 +-
src/gallium/drivers/panfrost/pan_blending.c | 75 ++-----
src/gallium/drivers/panfrost/pan_blending.h | 13 +-
src/gallium/drivers/panfrost/pan_context.c | 133 +++--------
src/gallium/drivers/panfrost/pan_context.h | 16 +-
9 files changed, 455 insertions(+), 202 deletions(-)

Upstream: cgit.freedesktop.org


  • Share