vkd3d-shader/d3dbc: Avoid D3DVS_VERSION and D3DPS_VERSION.

This commit is contained in:
Henri Verbeet 2024-08-13 21:43:30 +02:00
parent de6abd964e
commit f163df787e
Notes: Henri Verbeet 2024-09-10 21:56:24 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1045

View File

@ -1481,10 +1481,8 @@ struct d3dbc_compiler
static uint32_t sm1_version(enum vkd3d_shader_type type, unsigned int major, unsigned int minor) static uint32_t sm1_version(enum vkd3d_shader_type type, unsigned int major, unsigned int minor)
{ {
if (type == VKD3D_SHADER_TYPE_VERTEX) return vkd3d_make_u32(vkd3d_make_u16(minor, major),
return D3DVS_VERSION(major, minor); type == VKD3D_SHADER_TYPE_VERTEX ? VKD3D_SM1_VS : VKD3D_SM1_PS);
else
return D3DPS_VERSION(major, minor);
} }
D3DXPARAMETER_CLASS hlsl_sm1_class(const struct hlsl_type *type) D3DXPARAMETER_CLASS hlsl_sm1_class(const struct hlsl_type *type)