vk: Stop asserting we have a fragment shader
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Thu, 11 Jun 2015 22:07:38 +0000 (15:07 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Thu, 11 Jun 2015 22:07:38 +0000 (15:07 -0700)
Even for graphics, this is not a requirement, we can have a depth-only output pipeline.

src/vulkan/compiler.cpp

index b5a287b..28c4874 100644 (file)
@@ -923,8 +923,6 @@ anv_compiler_run(struct anv_compiler *compiler, struct anv_pipeline *pipeline)
       assert(pipeline->shaders[i]->size % 4 == 0);
    }
 
-   assert(pipeline->shaders[VK_SHADER_STAGE_FRAGMENT] != NULL);
-
    if (all_spirv) {
       for (unsigned i = 0; i < VK_NUM_SHADER_STAGE; i++) {
          if (pipeline->shaders[i])