freedreno/rnn: update schema for 'pos'
authorRob Clark <robdclark@chromium.org>
Tue, 28 Jul 2020 16:36:55 +0000 (09:36 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 14:30:35 +0000 (14:30 +0000)
Ideally we'd like to express that *either* 'high' + 'low' OR 'pos' is
required, but it doesn't appear that this is possible.  But the rnn
parsing code should still enforce this.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6107>

src/freedreno/registers/rules-ng.xsd

index 10b5f3712f8231132c055059ba8832a630fb449e..a5a33412aed2f2352249240f615f4f40a343c572 100644 (file)
                        <group ref="rng:topGroup" />\r
                </choice>\r
                <attribute name="name" type="NMTOKEN" use="required" />\r
-               <attribute name="high" type="nonNegativeInteger" use="required" />\r
-               <attribute name="low" type="nonNegativeInteger" use="required" />\r
+               <attribute name="high" type="nonNegativeInteger" use="optional" />\r
+               <attribute name="low" type="nonNegativeInteger" use="optional" />\r
+               <attribute name="pos" type="nonNegativeInteger" use="optional" />\r
                <attribute name="type" type="NMTOKENS" use="optional" />\r
                <attribute name="varset" type="NMTOKEN" use="optional" />\r
                <attribute name="variants" type="string" use="optional" />\r