panfrost: Rename the Blend dither disable flag
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 8 Sep 2020 10:48:15 +0000 (12:48 +0200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 21 Sep 2020 11:35:45 +0000 (07:35 -0400)
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>

src/gallium/drivers/panfrost/pan_cmdstream.c
src/panfrost/lib/midgard.xml
src/panfrost/lib/pan_blit.c

index 20fc474..3f40e7e 100644 (file)
@@ -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;
index d8c17de..0a82970 100644 (file)
     <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">
index af91bc9..1add322 100644 (file)
@@ -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;
                         }