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>
This commit is contained in:

committed by
Alyssa Rosenzweig

parent
89fafe9e92
commit
54d716a034
@@ -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;
|
||||
|
@@ -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">
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user