@@ -185,7 +185,8 @@ class PSVContentVerifier {
185185 unsigned PSVVersion);
186186 void VerifyViewIDDependence (PSVRuntimeInfo1 *PSV1, unsigned PSVVersion);
187187 void VerifyEntryProperties (const ShaderModel *SM, PSVRuntimeInfo0 *PSV0,
188- PSVRuntimeInfo1 *PSV1, PSVRuntimeInfo2 *PSV2);
188+ PSVRuntimeInfo1 *PSV1, PSVRuntimeInfo2 *PSV2,
189+ PSVRuntimeInfo3 *PSV3, PSVRuntimeInfo4 *PSV4);
189190 void EmitMismatchError (StringRef Name, StringRef PartContent,
190191 StringRef ModuleContent) {
191192 ValCtx.EmitFormatError (ValidationRule::ContainerContentMatches,
@@ -412,7 +413,9 @@ void PSVContentVerifier::VerifyResources(unsigned PSVVersion) {
412413void PSVContentVerifier::VerifyEntryProperties (const ShaderModel *SM,
413414 PSVRuntimeInfo0 *PSV0,
414415 PSVRuntimeInfo1 *PSV1,
415- PSVRuntimeInfo2 *PSV2) {
416+ PSVRuntimeInfo2 *PSV2,
417+ PSVRuntimeInfo3 *PSV3,
418+ PSVRuntimeInfo4 *PSV4) {
416419 PSVRuntimeInfo4 DMPSV;
417420 memset (&DMPSV, 0 , sizeof (PSVRuntimeInfo4));
418421
@@ -445,6 +448,9 @@ void PSVContentVerifier::VerifyEntryProperties(const ShaderModel *SM,
445448 else
446449 Mismatched = memcmp (PSV0, &DMPSV, sizeof (PSVRuntimeInfo0)) != 0 ;
447450
451+ if (PSV4 && PSV4->NumBytesGroupSharedMemory != DMPSV.NumBytesGroupSharedMemory )
452+ Mismatched = true ;
453+
448454 if (Mismatched) {
449455 std::string Str;
450456 raw_string_ostream OS (Str);
@@ -477,9 +483,11 @@ void PSVContentVerifier::Verify(unsigned ValMajor, unsigned ValMinor,
477483 PSVRuntimeInfo0 *PSV0 = PSV.GetPSVRuntimeInfo0 ();
478484 PSVRuntimeInfo1 *PSV1 = PSV.GetPSVRuntimeInfo1 ();
479485 PSVRuntimeInfo2 *PSV2 = PSV.GetPSVRuntimeInfo2 ();
486+ PSVRuntimeInfo3 *PSV3 = PSV.GetPSVRuntimeInfo3 ();
487+ PSVRuntimeInfo4 *PSV4 = PSV.GetPSVRuntimeInfo4 ();
480488
481489 const ShaderModel *SM = DM.GetShaderModel ();
482- VerifyEntryProperties (SM, PSV0, PSV1, PSV2);
490+ VerifyEntryProperties (SM, PSV0, PSV1, PSV2, PSV3, PSV4 );
483491 if (PSVVersion > 0 ) {
484492 if (((PSV.GetSigInputElements () + PSV.GetSigOutputElements () +
485493 PSV.GetSigPatchConstOrPrimElements ()) > 0 ) &&
0 commit comments