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 b5a287b622f79bd70bdbe1c31d8cf892cb57b0c0..28c4874a4385fd31ccc0d85ffb5da8dadcf9396f 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])