mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
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:
committed by
Compute-Runtime-Automation
parent
5be4d89b73
commit
0c2f83579c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user