mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/dxil: Emit an error if a STORE instruction uses a forward-referenced pointer.
This commit is contained in:
parent
b4b5af66ef
commit
9615c38968
Notes:
Alexandre Julliard
2024-04-30 23:14:34 +02: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/836
@ -6886,7 +6886,8 @@ static void sm6_parser_emit_store(struct sm6_parser *sm6, const struct dxil_reco
|
||||
|
||||
if (!(ptr = sm6_parser_get_value_by_ref(sm6, record, NULL, &i))
|
||||
|| !sm6_value_validate_is_register(ptr, sm6)
|
||||
|| !sm6_value_validate_is_pointer(ptr, sm6))
|
||||
|| !sm6_value_validate_is_pointer(ptr, sm6)
|
||||
|| !sm6_value_validate_is_backward_ref(ptr, sm6))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user