mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Prealloc cmd buffer for CSR only when being used
Related-To: NEO-7361 Currently additional command buffer is preallocated for all CSRs, even for those which won't be used by application. This PR changes that Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
3a58579bbe
commit
a66e69abc9
@ -117,6 +117,7 @@ class UltCommandStreamReceiver : public CommandStreamReceiverHw<GfxFamily>, publ
|
||||
using BaseClass::CommandStreamReceiver::profilingTimeStampAllocator;
|
||||
using BaseClass::CommandStreamReceiver::requiredPrivateScratchSize;
|
||||
using BaseClass::CommandStreamReceiver::requiredScratchSize;
|
||||
using BaseClass::CommandStreamReceiver::resourcesInitialized;
|
||||
using BaseClass::CommandStreamReceiver::samplerCacheFlushRequired;
|
||||
using BaseClass::CommandStreamReceiver::scratchSpaceController;
|
||||
using BaseClass::CommandStreamReceiver::stallingCommandsOnNextFlushRequired;
|
||||
|
@ -93,6 +93,10 @@ class TestedDrmCommandStreamReceiver : public DrmCommandStreamReceiver<GfxFamily
|
||||
}
|
||||
}
|
||||
|
||||
void fillReusableAllocationsList() override {
|
||||
fillReusableAllocationsListCalled++;
|
||||
}
|
||||
|
||||
struct WaitUserFenceResult {
|
||||
uint32_t called = 0u;
|
||||
uint32_t waitValue = 0u;
|
||||
@ -125,6 +129,7 @@ class TestedDrmCommandStreamReceiver : public DrmCommandStreamReceiver<GfxFamily
|
||||
}
|
||||
|
||||
void *latestReadBackAddress = nullptr;
|
||||
uint32_t fillReusableAllocationsListCalled = 0;
|
||||
};
|
||||
|
||||
template <typename GfxFamily>
|
||||
|
Reference in New Issue
Block a user