Updated capabilites for SampleMask
authorDavid Neto <dneto@google.com>
Wed, 23 Aug 2017 17:28:48 +0000 (13:28 -0400)
committerDavid Neto <dneto@google.com>
Thu, 24 Aug 2017 14:00:39 +0000 (10:00 -0400)
SPIRV-Headers recently fixed the capability dependency
for SampleMask.  It depends on Shader, not SampleRateShading

test/operand_capabilities_test.cpp
test/val/val_capability_test.cpp

index e13b934..39e5022 100644 (file)
@@ -514,7 +514,7 @@ INSTANTIATE_TEST_CASE_P(
             CASE1(BUILT_IN, BuiltInFrontFacing, Shader),
             CASE1(BUILT_IN, BuiltInSampleId, SampleRateShading),  // Bug 15234
             CASE1(BUILT_IN, BuiltInSamplePosition, SampleRateShading), // Bug 15234
-            CASE1(BUILT_IN, BuiltInSampleMask, SampleRateShading),  // Bug 15234
+            CASE1(BUILT_IN, BuiltInSampleMask, Shader),  // Bug 15234, Issue 182
             // Value 21 intentionally missing
             CASE1(BUILT_IN, BuiltInFragDepth, Shader),
             CASE1(BUILT_IN, BuiltInHelperInvocation, Shader),
index f5d8fa8..6b9dd25 100644 (file)
@@ -1213,7 +1213,7 @@ make_pair(string(kOpenCLMemoryModel) +
           "OpEntryPoint Kernel %func \"compute\" \n" +
           "OpDecorate %intt BuiltIn SampleMask\n"
           "%intt = OpTypeInt 32 0\n" + string(kVoidFVoid),
-          vector<string>{"SampleRateShading"}),
+          ShaderDependencies()),
 make_pair(string(kOpenCLMemoryModel) +
           "OpEntryPoint Kernel %func \"compute\" \n" +
           "OpDecorate %intt BuiltIn FragDepth\n"