iris: Fix SourceAlphaBlendFactor
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Nov 2018 08:15:37 +0000 (00:15 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index d5e92a56523576fd535d9b7cf6557b34f491fbec..0bc7843206d4b099c7a122c173d788677c938aad 100644 (file)
@@ -795,7 +795,7 @@ iris_create_blend_state(struct pipe_context *ctx,
       pb.ColorBufferBlendEnable = state->rt[0].blend_enable;
 
       pb.SourceBlendFactor           = state->rt[0].rgb_src_factor;
-      pb.SourceAlphaBlendFactor      = state->rt[0].alpha_func;
+      pb.SourceAlphaBlendFactor      = state->rt[0].alpha_src_factor;
       pb.DestinationBlendFactor      = state->rt[0].rgb_dst_factor;
       pb.DestinationAlphaBlendFactor = state->rt[0].alpha_dst_factor;
    }
@@ -828,7 +828,7 @@ iris_create_blend_state(struct pipe_context *ctx,
          be.ColorBlendFunction          = rt->rgb_func;
          be.AlphaBlendFunction          = rt->alpha_func;
          be.SourceBlendFactor           = rt->rgb_src_factor;
-         be.SourceAlphaBlendFactor      = rt->alpha_func;
+         be.SourceAlphaBlendFactor      = rt->alpha_src_factor;
          be.DestinationBlendFactor      = rt->rgb_dst_factor;
          be.DestinationAlphaBlendFactor = rt->alpha_dst_factor;