Zebediah Figura : vkd3d-shader: Remove a duplicate check for semantics on void functions.

Alexandre Julliard julliard at winehq.org
Thu Mar 4 15:46:31 CST 2021


Module: vkd3d
Branch: master
Commit: d423f8f46986ccaaff91e3d759311ed2a1bc75ef
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=d423f8f46986ccaaff91e3d759311ed2a1bc75ef

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Tue Mar  2 15:34:45 2021 -0600

vkd3d-shader: Remove a duplicate check for semantics on void functions.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/vkd3d-shader/hlsl.y | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y
index f1db9be..d733a9b 100644
--- a/libs/vkd3d-shader/hlsl.y
+++ b/libs/vkd3d-shader/hlsl.y
@@ -1765,10 +1765,6 @@ hlsl_prog:
                 }
             }
 
-            if (hlsl_type_is_void($2.decl->return_type) && $2.decl->semantic)
-                hlsl_error(ctx, $2.decl->loc, VKD3D_SHADER_ERROR_HLSL_INVALID_SEMANTIC,
-                        "Semantics are not allowed on void functions.");
-
             hlsl_add_function(&ctx->functions, $2.name, $2.decl, false);
         }
     | hlsl_prog declaration_statement




More information about the wine-cvs mailing list