mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/tpf: Use the default vec4 swizzle if a src param contains a mask.
This commit is contained in:
committed by
Alexandre Julliard
parent
7e5d9e3b6f
commit
92021b7a3c
Notes:
Alexandre Julliard
2023-08-28 22:16:25 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/225
@@ -204,11 +204,6 @@ static inline bool register_is_undef(const struct vkd3d_shader_register *reg)
|
||||
return reg->type == VKD3DSPR_UNDEF;
|
||||
}
|
||||
|
||||
static inline bool register_is_constant(const struct vkd3d_shader_register *reg)
|
||||
{
|
||||
return (reg->type == VKD3DSPR_IMMCONST || reg->type == VKD3DSPR_IMMCONST64);
|
||||
}
|
||||
|
||||
static inline bool register_is_constant_or_undef(const struct vkd3d_shader_register *reg)
|
||||
{
|
||||
return register_is_constant(reg) || register_is_undef(reg);
|
||||
|
Reference in New Issue
Block a user