panfrost: Update XML for Bifrost early-z/FPK

Had bits scrambled during RE.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7081>
This commit is contained in:
Alyssa Rosenzweig
2020-10-08 19:46:21 -04:00
parent 8cf798d253
commit 3f919a7269
2 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -402,7 +402,7 @@ panfrost_prepare_bifrost_fs_state(struct panfrost_context *ctx,
if (!panfrost_fs_required(fs, blend, rt_count)) {
state->properties.unknown = 0x950020; /* XXX */
state->properties.bifrost_early_z_enable = true;
state->properties.allow_forward_pixel_to_kill = true;
} else {
bool no_blend = true;
@@ -410,7 +410,7 @@ panfrost_prepare_bifrost_fs_state(struct panfrost_context *ctx,
no_blend &= (!blend[i].load_dest | blend[i].no_colour);
state->properties = fs->properties;
state->properties.bifrost_early_z_enable = !fs->can_discard && !fs->writes_depth && no_blend;
state->properties.allow_forward_pixel_to_kill = !fs->can_discard && !fs->writes_depth && no_blend;
state->shader = fs->shader;
state->preload = fs->preload;
}
+10 -1
View File
@@ -235,6 +235,13 @@
<value name="Replicated" value="7"/>
</enum>
<enum name="Pixel Kill">
<value name="Force Early" value="0"/>
<value name="Strong Early" value="1"/>
<value name="Weak Early" value="2"/>
<value name="Force Late" value="3"/>
</enum>
<struct name="Pixel Format" no-direct-packing="true">
<field name="RGB Component Order" size="8" start="0" type="RGB Component Order"/>
<field name="YUV Component Order" size="3" start="0" type="YUV Swizzle"/>
@@ -632,7 +639,9 @@
<field name="Full thread" size="1" start="13" type="bool" default="false"/>
<field name="Reads tilebuffer" size="1" start="14" type="bool" default="false"/>
<field name="Work register count" size="5" start="16" type="uint"/>
<field name="Bifrost Early-z enable" size="1" start="19" type="bool" default="false"/>
<field name="Allow forward pixel to kill" size="1" start="19" type="bool" default="false"/>
<field name="Allow forward pixel to be killed" size="1" start="20" type="bool" default="false"/>
<field name="Pixel kill operation" size="2" start="21" type="Pixel Kill" default="Force early"/>
<field name="Uniform count" size="5" start="21" type="uint"/>
<field name="Stencil from shader" size="1" start="28" type="bool"/>
<field name="Suppress Inf/NaN" size="1" start="29" type="bool"/>