diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-06-17 10:08:47 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-17 10:45:52 -0700 |
commit | fbbb29aa5b5ee62b53c1af290c5dec58ccc7b40c (patch) | |
tree | 55ae8c1a9e2cbc4ab8342b96c67ddc926c085787 /src/gallium | |
parent | 565c446dab75b754c4dd5e33009f977e489092f7 (diff) |
panfrost: Don't accidentally include blend shader
Some residual dirty state can leak through across frames; zero this out.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index f7033006494..7f5741da48e 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -1141,6 +1141,8 @@ panfrost_emit_for_draw(struct panfrost_context *ctx, bool with_vertex_data) if (ctx->blend->has_blend_shader) { ctx->fragment_shader_core.blend.shader = ctx->blend->blend_shader; + } else { + ctx->fragment_shader_core.blend.shader = 0; } if (ctx->require_sfbd) { |