mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 16:48:07 +02:00
panfrost: Gate overdraw_alpha on Bifrost+
Not used on Midgard, deals with a -Wunused-function warning. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Italo Nicola <italonicola@collabora.com> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24428>
This commit is contained in:
parent
7a32a9aa18
commit
04159a2973
1 changed files with 2 additions and 0 deletions
|
|
@ -361,6 +361,7 @@ pack_blend_constant(enum pipe_format format, float cons)
|
|||
* overdraw alpha=0 should be set when alpha=0 implies no overdraw,
|
||||
* equivalently, all enabled render targets have alpha_zero_nop set.
|
||||
*/
|
||||
#if PAN_ARCH >= 6
|
||||
static bool
|
||||
panfrost_overdraw_alpha(const struct panfrost_context *ctx, bool zero)
|
||||
{
|
||||
|
|
@ -378,6 +379,7 @@ panfrost_overdraw_alpha(const struct panfrost_context *ctx, bool zero)
|
|||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
panfrost_emit_blend(struct panfrost_batch *batch, void *rts,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue