panfrost: Fix nonzero stencil mask on vertex/compute

Probably harmless but looks funny in the decode.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6712>
This commit is contained in:
Alyssa Rosenzweig 2020-09-09 16:29:04 -04:00 committed by Marge Bot
parent f3109c4579
commit 322ddbd538
2 changed files with 2 additions and 1 deletions

View file

@ -521,7 +521,7 @@
<struct name="Stencil">
<field name="Reference Value" size="8" start="0" type="uint"/>
<field name="Mask" size="8" start="8" type="uint" default="0xFF"/>
<field name="Mask" size="8" start="8" type="uint"/>
<field name="Compare Function" size="3" start="16" type="Func"/>
<field name="Stencil Fail" size="3" start="19" type="Stencil Op"/>
<field name="Depth Fail" size="3" start="22" type="Stencil Op"/>

View file

@ -270,6 +270,7 @@ panfrost_load_midg(
cfg.stencil_front.stencil_fail = MALI_STENCIL_OP_REPLACE;
cfg.stencil_front.depth_fail = MALI_STENCIL_OP_REPLACE;
cfg.stencil_front.depth_pass = MALI_STENCIL_OP_REPLACE;
cfg.stencil_front.mask = 0xFF;
cfg.stencil_back = cfg.stencil_front;