mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/ir: Validate RET instructions.
This commit is contained in:
parent
af96730276
commit
67902d4304
Notes:
Alexandre Julliard
2024-01-18 23:21:17 +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/570
@ -2874,6 +2874,11 @@ static void vsir_validate_instruction(struct validation_context *ctx)
|
||||
--ctx->depth;
|
||||
break;
|
||||
|
||||
case VKD3DSIH_RET:
|
||||
vsir_validate_dst_count(ctx, instruction, 0);
|
||||
vsir_validate_src_count(ctx, instruction, 0);
|
||||
break;
|
||||
|
||||
case VKD3DSIH_LABEL:
|
||||
vsir_validate_cf_type(ctx, instruction, CF_TYPE_BLOCKS);
|
||||
vsir_validate_dst_count(ctx, instruction, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user