From e91c6ca5b28839422de1212b4033f87b611e9221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 3 Dec 2020 13:47:19 -0500 Subject: [PATCH] st/mesa: don't make a local copy of blend color This is perfectly safe and nothing bad can happen... and we have also CI. Reviewed-by: Eric Anholt Part-of: --- src/mesa/state_tracker/st_atom_blend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_blend.c b/src/mesa/state_tracker/st_atom_blend.c index 426dc0211a9..4b73856b493 100644 --- a/src/mesa/state_tracker/st_atom_blend.c +++ b/src/mesa/state_tracker/st_atom_blend.c @@ -304,8 +304,8 @@ void st_update_blend_color(struct st_context *st) { struct pipe_context *pipe = st->pipe; - struct pipe_blend_color bc; + struct pipe_blend_color *bc = + (struct pipe_blend_color *)st->ctx->Color.BlendColorUnclamped; - COPY_4FV(bc.color, st->ctx->Color.BlendColorUnclamped); - pipe->set_blend_color(pipe, &bc); + pipe->set_blend_color(pipe, bc); }