asahi: be explicit about frag properties
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31908>
This commit is contained in:
@@ -709,12 +709,12 @@
|
||||
<struct name="USC Fragment Properties" size="4">
|
||||
<field name="Tag" size="8" start="0" type="USC Control" exact="Fragment properties"/>
|
||||
<field name="Early-z testing" size="1" start="8" type="bool"/>
|
||||
<field name="Unk 2" size="1" start="9" type="bool" default="true"/>
|
||||
<field name="Unk 2" size="1" start="9" type="bool"/>
|
||||
<field name="Unconditional discard 1" size="1" start="10" type="bool"/>
|
||||
<field name="Unconditional discard 2" size="1" start="11" type="bool"/>
|
||||
<field name="Unk 3" size="4" start="12" type="hex" default="0xf"/>
|
||||
<field name="Unk 3" size="4" start="12" type="hex"/>
|
||||
<field name="Unk 4" size="8" start="16" type="hex"/> <!-- TODO: determine relation, see docs/table.py -->
|
||||
<field name="Unk 5" size="8" start="24" type="hex" default="0x01"/>
|
||||
<field name="Unk 5" size="8" start="24" type="hex"/>
|
||||
</struct>
|
||||
<!-- USC commands end -->
|
||||
|
||||
|
||||
@@ -199,6 +199,8 @@ agx_fast_link(struct agx_linked_shader *linked, struct agx_device *dev,
|
||||
if (fragment) {
|
||||
agx_pack(&linked->fragment_props, USC_FRAGMENT_PROPERTIES, cfg) {
|
||||
cfg.early_z_testing = !writes_sample_mask;
|
||||
cfg.unk_2 = true;
|
||||
cfg.unk_3 = 0xf;
|
||||
cfg.unk_4 = 0x2;
|
||||
cfg.unk_5 = 0x0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user