panfrost: Fix nonzero stencil mask on vertex/compute
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 9 Sep 2020 20:29:04 +0000 (16:29 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 14 Sep 2020 18:26:33 +0000 (18:26 +0000)
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>

src/panfrost/lib/midgard.xml
src/panfrost/lib/pan_blit.c

index dfcbf73..6fb896d 100644 (file)
 
   <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"/>
index 9967e21..af91bc9 100644 (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;