test: add test for scratch when secondary context is used

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-06-04 13:59:38 +00:00
committed by Compute-Runtime-Automation
parent ae90c526f2
commit 20452577ab
3 changed files with 64 additions and 10 deletions

View File

@@ -140,6 +140,9 @@ class CommandContainer : public NonCopyableOrMovableClass {
void setImmediateCmdListCsr(CommandStreamReceiver *newValue) {
this->immediateCmdListCsr = newValue;
}
CommandStreamReceiver *getImmediateCmdListCsr() {
return this->immediateCmdListCsr;
}
void enableHeapSharing() { heapSharingEnabled = true; }
bool immediateCmdListSharedHeap(HeapType heapType) {
return (heapSharingEnabled && (heapType == HeapType::dynamicState || heapType == HeapType::surfaceState));