performance: limit number of copies of dirty flags and state values

Related-To: NEO-7828

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-04-28 22:31:28 +00:00
committed by Compute-Runtime-Automation
parent 34348874e3
commit 01c20212c3
3 changed files with 39 additions and 38 deletions

View File

@@ -379,17 +379,17 @@ void StateBaseAddressProperties::resetState() {
this->statelessMocs.value = StreamProperty::initValue;
this->globalAtomics.value = StreamProperty::initValue;
this->bindingTablePoolBaseAddress.value = StreamProperty::initValue;
this->bindingTablePoolSize.value = StreamProperty::initValue;
this->bindingTablePoolBaseAddress.value = StreamProperty64::initValue;
this->bindingTablePoolSize.value = StreamPropertySizeT::initValue;
this->surfaceStateBaseAddress.value = StreamProperty::initValue;
this->surfaceStateSize.value = StreamProperty::initValue;
this->surfaceStateBaseAddress.value = StreamProperty64::initValue;
this->surfaceStateSize.value = StreamPropertySizeT::initValue;
this->indirectObjectBaseAddress.value = StreamProperty::initValue;
this->indirectObjectSize.value = StreamProperty::initValue;
this->indirectObjectBaseAddress.value = StreamProperty64::initValue;
this->indirectObjectSize.value = StreamPropertySizeT::initValue;
this->dynamicStateBaseAddress.value = StreamProperty::initValue;
this->dynamicStateSize.value = StreamProperty::initValue;
this->dynamicStateBaseAddress.value = StreamProperty64::initValue;
this->dynamicStateSize.value = StreamPropertySizeT::initValue;
}
void StateBaseAddressProperties::setPropertiesBindingTableSurfaceState(int64_t bindingTablePoolBaseAddress, size_t bindingTablePoolSize,
@@ -408,8 +408,6 @@ void StateBaseAddressProperties::setPropertiesBindingTableSurfaceState(int64_t b
}
void StateBaseAddressProperties::setPropertiesSurfaceState(int64_t surfaceStateBaseAddress, size_t surfaceStateSize) {
DEBUG_BREAK_IF(!this->propertiesSupportLoaded);
this->surfaceStateBaseAddress.isDirty = false;
this->surfaceStateBaseAddress.set(surfaceStateBaseAddress);