vkd3d-shader/dxil: Declare IO registers as VEC4.

Otherwise, for instance, their write masks and swizzles are not written
in the D3D ASM dump.
This commit is contained in:
Giovanni Mascellani 2023-11-27 22:00:45 +01:00 committed by Alexandre Julliard
parent c64909988f
commit a52604da8c
Notes: Alexandre Julliard 2023-11-28 23:05:42 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/500

View File

@ -2884,6 +2884,7 @@ static void dst_param_io_init(struct vkd3d_shader_dst_param *param,
/* DXIL types do not have signedness. Load signed elements as unsigned. */
component_type = e->component_type == VKD3D_SHADER_COMPONENT_INT ? VKD3D_SHADER_COMPONENT_UINT : e->component_type;
vsir_register_init(&param->reg, reg_type, vkd3d_data_type_from_component_type(component_type), 0);
param->reg.dimension = VSIR_DIMENSION_VEC4;
}
static void sm6_parser_init_signature(struct sm6_parser *sm6, const struct shader_signature *s,