summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <[email protected]>2016-03-06 22:06:24 -0800
committerKristian Høgsberg Kristensen <[email protected]>2016-03-06 22:06:24 -0800
commit32aa01663ff649a399480886106e203cc347c212 (patch)
treec86fc97d8315a841964a304726807e81681c173c /src/intel/vulkan
parent23de78768b69d5600233df022431b8f26a0907fc (diff)
anv: Quiet pTessellationState warning
Some application pass a dummy for pTessellationState which results in a lot of noise. Only warn if we're actually given tessellation shadear stages.
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_pipeline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 183589611a1..86831eae30e 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -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],