nir/algebraic: support CL vector accessors

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19150>
This commit is contained in:
Karol Herbst 2022-10-18 01:18:04 +02:00 committed by Marge Bot
parent 1d6014f267
commit f27e2234e1

View file

@ -287,7 +287,7 @@ class Constant(Value):
_var_name_re = re.compile(r"(?P<const>#)?(?P<name>\w+)"
r"(?:@(?P<type>int|uint|bool|float)?(?P<bits>\d+)?)?"
r"(?P<cond>\([^\)]+\))?"
r"(?P<swiz>\.[xyzw]+)?"
r"(?P<swiz>\.[xyzwabcdefghijklmnop]+)?"
r"$")
class Variable(Value):