Do not force programming SCM when hasSharedHandles is true

This is a part of refactor of logic around programming SCM.
SCM should not be programmed just because of hasSharedHandles being true.

Related-To: NEO-5995

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2021-12-20 16:46:52 +00:00
committed by Compute-Runtime-Automation
parent 5be4d89b73
commit 0c2f83579c
4 changed files with 10 additions and 15 deletions

View File

@@ -39,7 +39,7 @@ size_t CommandStreamReceiverHw<Family>::getCmdSizeForComputeMode() {
}
size_t size = 0;
if (this->streamProperties.stateComputeMode.isDirty() || csrSizeRequestFlags.hasSharedHandles || csrSizeRequestFlags.numGrfRequiredChanged) {
if (this->streamProperties.stateComputeMode.isDirty() || csrSizeRequestFlags.numGrfRequiredChanged) {
size += sizeof(typename Family::STATE_COMPUTE_MODE);
if (csrSizeRequestFlags.hasSharedHandles) {
size += sizeof(typename Family::PIPE_CONTROL);