mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/ir: Do not allow IMMCONST and IMMCONST64 as destination registers.
This commit is contained in:
parent
21633fcc52
commit
56f9057985
Notes:
Alexandre Julliard
2024-01-23 23:03:03 +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/559
@ -2623,6 +2623,16 @@ static void vsir_validate_dst_param(struct validation_context *ctx,
|
||||
}
|
||||
break;
|
||||
|
||||
case VKD3DSPR_IMMCONST:
|
||||
validator_error(ctx, VKD3D_SHADER_ERROR_VSIR_INVALID_REGISTER_TYPE,
|
||||
"Invalid IMMCONST register used as destination parameter.");
|
||||
break;
|
||||
|
||||
case VKD3DSPR_IMMCONST64:
|
||||
validator_error(ctx, VKD3D_SHADER_ERROR_VSIR_INVALID_REGISTER_TYPE,
|
||||
"Invalid IMMCONST64 register used as destination parameter.");
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user