Module: Mesa
Branch: master
Commit: adacf1f51179203498f21d260a32a9965bfafa6f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=adacf1f51179203498f21d260a32a9965bfafa6f

Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com>
Date:   Thu Jul  9 13:41:15 2020 -0400

panfrost: Expose panfrost_get_blend_shader

It is needed to produce a blend shader for blits.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5929>

---

 src/gallium/drivers/panfrost/pan_blend.h     | 7 +++++++
 src/gallium/drivers/panfrost/pan_blend_cso.c | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_blend.h 
b/src/gallium/drivers/panfrost/pan_blend.h
index 1dfb0776207..49ad8d9b3d7 100644
--- a/src/gallium/drivers/panfrost/pan_blend.h
+++ b/src/gallium/drivers/panfrost/pan_blend.h
@@ -117,4 +117,11 @@ panfrost_blend_context_init(struct pipe_context *pipe);
 struct panfrost_blend_final
 panfrost_get_blend_for_context(struct panfrost_context *ctx, unsigned rt, 
struct panfrost_bo **bo, unsigned *shader_offset);
 
+struct panfrost_blend_shader *
+panfrost_get_blend_shader(
+        struct panfrost_context *ctx,
+        struct panfrost_blend_state *blend,
+        enum pipe_format fmt,
+        unsigned rt);
+
 #endif
diff --git a/src/gallium/drivers/panfrost/pan_blend_cso.c 
b/src/gallium/drivers/panfrost/pan_blend_cso.c
index 57e70d82148..01b4fd33a10 100644
--- a/src/gallium/drivers/panfrost/pan_blend_cso.c
+++ b/src/gallium/drivers/panfrost/pan_blend_cso.c
@@ -65,7 +65,7 @@
  * befast, suitable for calling every draw to avoid wacky dirty
  * tracking paths. If the cache hits, boom, done. */
 
-static struct panfrost_blend_shader *
+struct panfrost_blend_shader *
 panfrost_get_blend_shader(
         struct panfrost_context *ctx,
         struct panfrost_blend_state *blend,

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to