panfrost: Rename the Blend dither disable flag
It's actually encoding the "Round to FB precision" information.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6797>
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 @@
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 @@
<field name="Midgard blend shader" size="1" start="1" type="bool" default="false"/>
<field name="Enable" size="1" start="9" type="bool" default="true"/>
<field name="sRGB" size="1" start="10" type="bool" default="false"/>
- <field name="Dither disable" size="1" start="11" type="bool" default="false"/>
+ <field name="Round to FB precision" size="1" start="11" type="bool" default="false"/>
</struct>
<struct name="Midgard Blend" size="4" with_opaque="true">
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 @@
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;
}