From 54d716a0342fb7aa3f65cf5ce0ab53bf50408704 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Tue, 8 Sep 2020 12:48:15 +0200 Subject: [PATCH] panfrost: Rename the Blend dither disable flag It's actually encoding the "Round to FB precision" information. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 2 +- src/panfrost/lib/midgard.xml | 2 +- src/panfrost/lib/pan_blit.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 20fc474..3f40e7e 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -312,7 +312,7 @@ panfrost_emit_blend(struct panfrost_batch *batch, void *rts, cfg.srgb = util_format_is_srgb(batch->key.cbufs[i]->format); cfg.load_destination = blend[i].load_dest; - cfg.dither_disable = !batch->ctx->blend->base.dither; + cfg.round_to_fb_precision = !batch->ctx->blend->base.dither; if (!(dev->quirks & IS_BIFROST)) cfg.midgard_blend_shader = blend[i].is_shader; diff --git a/src/panfrost/lib/midgard.xml b/src/panfrost/lib/midgard.xml index d8c17de..0a82970 100644 --- a/src/panfrost/lib/midgard.xml +++ b/src/panfrost/lib/midgard.xml @@ -296,7 +296,7 @@ - + diff --git a/src/panfrost/lib/pan_blit.c b/src/panfrost/lib/pan_blit.c index af91bc9..1add322 100644 --- a/src/panfrost/lib/pan_blit.c +++ b/src/panfrost/lib/pan_blit.c @@ -325,7 +325,7 @@ panfrost_load_midg( unsigned flags = 0; pan_pack(&flags, BLEND_FLAGS, cfg) { - cfg.dither_disable = true; + cfg.round_to_fb_precision = true; cfg.srgb = srgb; cfg.midgard_blend_shader = blend_shader; } -- 2.7.4