mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/ir: Check that tessellation system values only appear in the patch constant signature.
This commit is contained in:
parent
018f3e8094
commit
e383834049
Notes:
Henri Verbeet
2024-11-21 19:36:02 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1266
@ -7577,6 +7577,12 @@ static void vsir_validate_signature_element(struct validation_context *ctx,
|
|||||||
|
|
||||||
if (expected_tess_domain != VKD3D_TESSELLATOR_DOMAIN_INVALID)
|
if (expected_tess_domain != VKD3D_TESSELLATOR_DOMAIN_INVALID)
|
||||||
{
|
{
|
||||||
|
if (signature_type != SIGNATURE_TYPE_PATCH_CONSTANT)
|
||||||
|
validator_error(ctx, VKD3D_SHADER_ERROR_VSIR_INVALID_SIGNATURE,
|
||||||
|
"element %u of %s signature: System value semantic %#x is only valid "
|
||||||
|
"in the patch constant signature.",
|
||||||
|
idx, signature_type_name, element->sysval_semantic);
|
||||||
|
|
||||||
if (ctx->program->tess_domain != expected_tess_domain)
|
if (ctx->program->tess_domain != expected_tess_domain)
|
||||||
validator_error(ctx, VKD3D_SHADER_ERROR_VSIR_INVALID_SIGNATURE,
|
validator_error(ctx, VKD3D_SHADER_ERROR_VSIR_INVALID_SIGNATURE,
|
||||||
"element %u of %s signature: Invalid system value semantic %#x for tessellator domain %#x.",
|
"element %u of %s signature: Invalid system value semantic %#x for tessellator domain %#x.",
|
||||||
|
Loading…
Reference in New Issue
Block a user