asahi: Identify stencil test enable
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 12 Jun 2022 13:49:24 +0000 (09:49 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sun, 4 Sep 2022 18:05:31 +0000 (18:05 +0000)
commit02babc834a508adf7726f783abf97dd2fe13e763
tree2d7799198d4bfeadf6ab5017045bc21d2c70223b
parentb891d60efa812bb6eaaafd5062cdd0759510f0ba
asahi: Identify stencil test enable

There are a pair of flags controlling the stencil test. One enables
stencil testing in general, the other enables two-sided stencil. Compare
the identical "twosided" flag in src/imagination/csbgen/rogue_ppp.xml's
STATE_ISPCTL structure, at the samebit offset even. Evidently this word of
the "Rasterizer" is, in fact, a derivative of STATE_ISPCTL.

Fixes

   dEQP-GLES2.functional.fragment_ops.depth_stencil.*
   dEQP-GLES2.functional.fragment_ops.interaction.basic_shader.*
   dEQP-GLES2.functional.fragment_ops.random.*

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18380>
src/asahi/lib/cmdbuf.xml
src/gallium/drivers/asahi/agx_state.c