Skip to content
Snippets Groups Projects
Commit e3838340 authored by Giovanni Mascellani's avatar Giovanni Mascellani Committed by Henri Verbeet
Browse files

vkd3d-shader/ir: Check that tessellation system values only appear in the patch constant signature.

parent 018f3e80
No related branches found
No related tags found
1 merge request!1266vkd3d-shader/ir: Validate tessellation system values.
Pipeline #34806 skipped
......@@ -7577,6 +7577,12 @@ static void vsir_validate_signature_element(struct validation_context *ctx,
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)
validator_error(ctx, VKD3D_SHADER_ERROR_VSIR_INVALID_SIGNATURE,
"element %u of %s signature: Invalid system value semantic %#x for tessellator domain %#x.",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment