mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Check for majority modifiers on non-matrices in apply_type_modifiers().
This commit is contained in:
committed by
Alexandre Julliard
parent
1ee7a4e82a
commit
af65287423
Notes:
Alexandre Julliard
2023-02-20 22:45:26 +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/98
@@ -903,6 +903,10 @@ static struct hlsl_type *apply_type_modifiers(struct hlsl_ctx *ctx, struct hlsl_
|
||||
else
|
||||
default_majority = HLSL_MODIFIER_ROW_MAJOR;
|
||||
}
|
||||
else if (type->type != HLSL_CLASS_MATRIX)
|
||||
{
|
||||
check_invalid_matrix_modifiers(ctx, *modifiers, loc);
|
||||
}
|
||||
|
||||
if (!default_majority && !(*modifiers & HLSL_TYPE_MODIFIERS_MASK))
|
||||
return type;
|
||||
@@ -2041,9 +2045,6 @@ static struct list *declare_vars(struct hlsl_ctx *ctx, struct hlsl_type *basic_t
|
||||
}
|
||||
vkd3d_free(v->arrays.sizes);
|
||||
|
||||
if (type->type != HLSL_CLASS_MATRIX)
|
||||
check_invalid_matrix_modifiers(ctx, modifiers, v->loc);
|
||||
|
||||
if (modifiers & (HLSL_STORAGE_IN | HLSL_STORAGE_OUT))
|
||||
{
|
||||
struct vkd3d_string_buffer *string;
|
||||
|
||||
Reference in New Issue
Block a user