vkd3d-shader/spirv: Support 64-bit register info component type in spirv_compiler_emit_load_reg().

For 64-bit indexable temps (and any other 64-bit declarations) the write
mask must not be converted.
This commit is contained in:
Conor McCarthy
2024-03-12 17:49:26 +10:00
committed by Alexandre Julliard
parent 83a67366da
commit 47e56cdfed
Notes: Alexandre Julliard 2024-03-27 23:07:08 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/707
2 changed files with 10 additions and 5 deletions

View File

@@ -1611,6 +1611,11 @@ static inline enum vkd3d_shader_component_type vkd3d_component_type_from_resourc
}
}
static inline bool component_type_is_64_bit(enum vkd3d_shader_component_type component_type)
{
return component_type == VKD3D_SHADER_COMPONENT_DOUBLE || component_type == VKD3D_SHADER_COMPONENT_UINT64;
}
enum vkd3d_shader_input_sysval_semantic vkd3d_siv_from_sysval_indexed(enum vkd3d_shader_sysval_semantic sysval,
unsigned int index);