Module: vkd3d Branch: master Commit: dcd991dedac70b3810c1179d12589f39941f2dd4 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/dcd991dedac70b3810c1179d12589f...
Author: Francisco Casas fcasas@codeweavers.com Date: Fri Apr 14 17:46:03 2023 -0400
vkd3d-shader/hlsl: Consider duplicated input semantic types equivalent in SM1.
---
libs/vkd3d-shader/hlsl_codegen.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c index ad064b76..9d02cfcb 100644 --- a/libs/vkd3d-shader/hlsl_codegen.c +++ b/libs/vkd3d-shader/hlsl_codegen.c @@ -246,6 +246,9 @@ static enum hlsl_base_type base_type_get_semantic_equivalent(enum hlsl_base_type static bool types_are_semantic_equivalent(struct hlsl_ctx *ctx, const struct hlsl_type *type1, const struct hlsl_type *type2) { + if (ctx->profile->major_version < 4) + return true; + if (type1->dimx != type2->dimx) return false;