Skip to content

Commit e5fc71e

Browse files
committed
Update GetMinValidatorVersion for DXR 1_1 (1.5) and Subobjects (1.4)
1 parent 28a00c2 commit e5fc71e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/DXIL/DxilModule.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,13 @@ bool DxilModule::GetMinValidatorVersion(unsigned &ValMajor, unsigned &ValMinor)
197197
if (!m_pSM)
198198
return false;
199199
m_pSM->GetMinValidatorVersion(ValMajor, ValMinor);
200-
if (ValMajor == 1 && ValMinor == 0 &&
200+
if (DXIL::CompareVersions(ValMajor, ValMinor, 1, 5) < 0 &&
201+
m_ShaderFlags.GetRaytracingTier1_1())
202+
ValMinor = 5;
203+
else if (DXIL::CompareVersions(ValMajor, ValMinor, 1, 4) < 0 &&
204+
GetSubobjects() && !GetSubobjects()->GetSubobjects().empty())
205+
ValMinor = 4;
206+
else if (DXIL::CompareVersions(ValMajor, ValMinor, 1, 1) < 0 &&
201207
(m_ShaderFlags.GetFeatureInfo() & hlsl::DXIL::ShaderFeatureInfo_ViewID))
202208
ValMinor = 1;
203209
return true;

0 commit comments

Comments
 (0)