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

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-03-02 15:34:45 -06:00 committed by Alexandre Julliard
parent 7758882732
commit d423f8f469

View File

@ -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