vkd3d-shader/ir: Disallow RESOURCE registers in destination parameters.

This commit is contained in:
Giovanni Mascellani 2024-09-23 18:52:47 +02:00 committed by Henri Verbeet
parent 674ad7d655
commit 828e5f1249
Notes: Henri Verbeet 2024-09-26 17:50:28 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1122

View File

@ -6050,6 +6050,11 @@ static void vsir_validate_dst_param(struct validation_context *ctx,
"Invalid SAMPLER register used as destination parameter.");
break;
case VKD3DSPR_RESOURCE:
validator_error(ctx, VKD3D_SHADER_ERROR_VSIR_INVALID_REGISTER_TYPE,
"Invalid RESOURCE register used as destination parameter.");
break;
default:
break;
}