From: Nikolay Sivov nsivov@codeweavers.com
The write_sm4_signature() helper exlicitly handles "color", "depth", "position" semantics and turns them to corresponding system values names. This does not currently work because usage is not returned for said names.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- libs/vkd3d-shader/tpf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libs/vkd3d-shader/tpf.c b/libs/vkd3d-shader/tpf.c index ba9e0f5a..917621db 100644 --- a/libs/vkd3d-shader/tpf.c +++ b/libs/vkd3d-shader/tpf.c @@ -2786,8 +2786,7 @@ bool hlsl_sm4_usage_from_semantic(struct hlsl_ctx *ctx, const struct hlsl_semant { if (!ascii_strcasecmp(semantic->name, semantics[i].name) && output == semantics[i].output - && ctx->profile->type == semantics[i].shader_type - && !ascii_strncasecmp(semantic->name, "sv_", 3)) + && ctx->profile->type == semantics[i].shader_type) { *usage = semantics[i].usage; return true;