[PATCH vkd3d 3/4] vkd3d-shader: Preserve some tokens verbatim for the assembler.

Zebediah Figura zfigura at codeweavers.com
Sat Jan 23 17:03:26 CST 2021


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 libs/vkd3d-shader/preproc.l | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libs/vkd3d-shader/preproc.l b/libs/vkd3d-shader/preproc.l
index 83c8d789..49b41bcd 100644
--- a/libs/vkd3d-shader/preproc.l
+++ b/libs/vkd3d-shader/preproc.l
@@ -104,6 +104,10 @@ IDENTIFIER      [A-Za-z_][A-Za-z0-9_]*
 <INITIAL>">>"=?                     {return T_TEXT;}
 <INITIAL>[-+*/%&|^]=                {return T_TEXT;}
 
+    /* Native doesn't preserve these tokens when running the preprocessor on its
+     * own, but there's no good reason to emulate that difference yet. */
+<INITIAL>[pv]s\.[123]\.[0-4x]       {return T_TEXT;}
+
 <INCLUDE,LINE>\"[^"]*\"             {return T_STRING;}
 <INCLUDE>\<[^>]*\>                  {return T_STRING;}
 
-- 
2.30.0




More information about the wine-devel mailing list