From: Kenneth Graunke Date: Sat, 10 Nov 2018 08:15:37 +0000 (-0800) Subject: iris: Fix SourceAlphaBlendFactor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2c04aa3a05442233ad0bab140a06357c5b920b7;p=mesa.git iris: Fix SourceAlphaBlendFactor --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d5e92a56523..0bc7843206d 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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;