asahi: Identify XML for barycentric coordinates
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 8 Apr 2023 17:21:51 +0000 (13:21 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 7 May 2023 13:00:53 +0000 (09:00 -0400)
Reading them from a fragment shader, not interpolating at custom ones.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22891>

src/asahi/lib/cmdbuf.xml

index 0650702..756c70a 100644 (file)
     <field name="Perspective" size="1" start="4" type="bool"/>
     <field name="Fragcoord Z" size="1" start="5" type="bool"/>
     <field name="Point sprite" size="1" start="6" type="bool"/>
+    <!-- Set with fragcoord Z for a vec2 of bary coords -->
+    <field name="Barycentric coordinates" size="1" start="7" type="bool"/>
     <field name="Base slot" size="8" start="8" type="uint"/>
     <field name="Base coefficient register" size="8" start="16" type="uint"/>
   </struct>
     <field name="Viewport target" size="1" start="19" type="bool"/>
     <field name="Render target" size="1" start="20" type="bool"/>
     <field name="Frag coord Z" size="1" start="21" type="bool"/>
+    <field name="Barycentric coordinates" size="1" start="22" type="bool"/>
   </struct>
 
   <struct name="Output Unknown" size="4">