intel: Fix gfx pipeline create check to flag error if PATCH topology used without tess shaders enabled
diff --git a/icd/intel/pipeline.c b/icd/intel/pipeline.c
index 879b94a..03e197c 100644
--- a/icd/intel/pipeline.c
+++ b/icd/intel/pipeline.c
@@ -521,13 +521,13 @@
*/
if (pipeline->active_shaders & (SHADER_TESS_CONTROL_FLAG | SHADER_TESS_EVAL_FLAG) &&
(pipeline->topology != VK_PRIMITIVE_TOPOLOGY_PATCH)) {
- // TODO: Log debug message: Invalid topology used with tessalation shader.
+ // TODO: Log debug message: Invalid topology used with tessellation shader.
return VK_ERROR_BAD_PIPELINE_DATA;
}
if ((pipeline->topology == VK_PRIMITIVE_TOPOLOGY_PATCH) &&
- (pipeline->active_shaders & ~(SHADER_TESS_CONTROL_FLAG | SHADER_TESS_EVAL_FLAG))) {
- // TODO: Log debug message: Cannot use TOPOLOGY_PATCH on non-tessalation shader.
+ (~pipeline->active_shaders & (SHADER_TESS_CONTROL_FLAG | SHADER_TESS_EVAL_FLAG))) {
+ // TODO: Log debug message: Cannot use TOPOLOGY_PATCH on non-tessellation shader.
return VK_ERROR_BAD_PIPELINE_DATA;
}