File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
tools/clang/unittests/HLSL Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -4086,6 +4086,10 @@ TEST_F(ExecutionTest, ATOProgOffset) {
4086
4086
((UINT)sm & 0x0f ));
4087
4087
break ;
4088
4088
}
4089
+ if (sm >= D3D_SHADER_MODEL_6_7 && !DoesDeviceSupportAdvancedTexOps (pDevice)) {
4090
+ LogCommentFmt (L" Device does not support Advanced Texture Ops" );
4091
+ break ;
4092
+ }
4089
4093
4090
4094
bool bSupportMSASDeriv = DoesDeviceSupportMeshAmpDerivatives (pDevice);
4091
4095
@@ -4181,6 +4185,12 @@ TEST_F(ExecutionTest, ATOSampleCmpLevelTest) {
4181
4185
if (!CreateDevice (&pDevice, D3D_SHADER_MODEL_6_7))
4182
4186
return ;
4183
4187
4188
+ if (!DoesDeviceSupportAdvancedTexOps (pDevice)) {
4189
+ WEX::Logging::Log::Comment (L" Device does not support Advanced Texture Operations." );
4190
+ WEX::Logging::Log::Result (WEX::Logging::TestResults::Skipped);
4191
+ return ;
4192
+ }
4193
+
4184
4194
std::shared_ptr<st::ShaderOpSet> ShaderOpSet =
4185
4195
std::make_shared<st::ShaderOpSet>();
4186
4196
st::ParseShaderOpSetFromStream (pStream, ShaderOpSet.get ());
You can’t perform that action at this time.
0 commit comments