anv: Quiet pTessellationState warning
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 7 Mar 2016 06:06:24 +0000 (22:06 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 7 Mar 2016 06:06:24 +0000 (22:06 -0800)
Some application pass a dummy for pTessellationState which results in a
lot of noise. Only warn if we're actually given tessellation shadear
stages.

src/intel/vulkan/anv_pipeline.c

index 183589611a12a0c575ddd7f26bbe96de893e9f8e..86831eae30e7a1f447401d91f2789fdae1a038f3 100644 (file)
@@ -1113,9 +1113,6 @@ anv_pipeline_init(struct anv_pipeline *pipeline,
 
    anv_pipeline_init_dynamic_state(pipeline, pCreateInfo);
 
-   if (pCreateInfo->pTessellationState)
-      anv_finishme("VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO");
-
    pipeline->use_repclear = extra && extra->use_repclear;
 
    /* When we free the pipeline, we detect stages based on the NULL status
@@ -1148,6 +1145,9 @@ anv_pipeline_init(struct anv_pipeline *pipeline,
                               pStages[MESA_SHADER_VERTEX]->pSpecializationInfo);
    }
 
+   if (modules[MESA_SHADER_TESS_CTRL] || modules[MESA_SHADER_TESS_EVAL])
+      anv_finishme("no tessellation support");
+
    if (modules[MESA_SHADER_GEOMETRY]) {
       anv_pipeline_compile_gs(pipeline, cache, pCreateInfo,
                               modules[MESA_SHADER_GEOMETRY],