layers: Remove obsolete error check from CV
authorMark Lobodzinski <mark@lunarg.com>
Fri, 24 Mar 2017 21:09:23 +0000 (15:09 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Mon, 27 Mar 2017 19:50:07 +0000 (13:50 -0600)
Bad shader capability check is now in the spirv validator.

Change-Id: I3d96f935d0adb7081d6693cfc004ba215391054e

layers/core_validation.cpp

index d44b3a6..1d4e731 100644 (file)
@@ -2542,10 +2542,7 @@ static bool validate_shader_capabilities(layer_data *dev_data, shader_module con
                     break;
 
                 default:
-                    if (log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VkDebugReportObjectTypeEXT(0), 0, __LINE__,
-                                SHADER_CHECKER_BAD_CAPABILITY, "SC", "Shader declares capability %u, not supported in Vulkan.",
-                                insn.word(1)))
-                        pass = false;
+                    // Spirv-validator should catch these errors
                     break;
             }
         }