Finished migration of validation checks out of cmd_pipeline.c
Added check to DrawState layer for submission of Primary cmd buffer in vkCmdExecuteCommands() call. Added a test to verify the check.
Replaced some other checks in cmd_pipeline.c with asserts and the checks themselves are already handled in ParamChecker.
diff --git a/icd/intel/cmd_pipeline.c b/icd/intel/cmd_pipeline.c
index 67bd7a8..29967cc 100644
--- a/icd/intel/cmd_pipeline.c
+++ b/icd/intel/cmd_pipeline.c
@@ -3459,8 +3459,7 @@
cmd_bind_graphics_pipeline(cmd, intel_pipeline(pipeline));
break;
default:
- /* TODOVV: Move test to validation layer */
-// cmd_fail(cmd, VK_ERROR_INVALID_VALUE);
+ assert(!"unsupported pipelineBindPoint");
break;
}
}
@@ -3551,9 +3550,7 @@
data = &cmd->bind.dset.graphics_data;
break;
default:
- /* TODOVV: Move test to validation layer */
-// cmd_fail(cmd, VK_ERROR_INVALID_VALUE);
- return;
+ assert(!"unsupported pipelineBindPoint");
break;
}