vkd3d-shader/spirv: Do not emit a fixme for SV_TARGET in get_spirv_builtin_for_sysval().

This commit is contained in:
Conor McCarthy 2023-12-01 00:20:06 +10:00 committed by Alexandre Julliard
parent 736f3ae2df
commit f11e1461aa
Notes: Alexandre Julliard 2023-12-04 22:54:06 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/503

View File

@ -4455,7 +4455,7 @@ static const struct vkd3d_spirv_builtin *get_spirv_builtin_for_sysval(
enum vkd3d_shader_spirv_environment environment;
unsigned int i;
if (!sysval)
if (sysval == VKD3D_SHADER_SV_NONE || sysval == VKD3D_SHADER_SV_TARGET)
return NULL;
/* In pixel shaders, SV_Position is mapped to SpvBuiltInFragCoord. */