mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Turn ON DrmGemCloseWorker.
- For every command buffer that we submit, pass it to gem close worker. - Gem close worker will do asynchronous cleanup if this resource is meant to be destroyed. - if the resource is not meant to be destroyed we will call IOCTL wait for this batch buffer. - This will result in bumping up GPU clocks and better performance. Change-Id: If9f181e411d7748573f31682e875a97c5355abe5
This commit is contained in:
committed by
sys_ocldev
parent
562ededffe
commit
cec056f3c4
@@ -48,7 +48,7 @@ class DrmCommandStreamReceiver : public DeviceCommandStreamReceiver<GfxFamily> {
|
||||
public:
|
||||
// When drm is null default implementation is used. In this case DrmCommandStreamReceiver is responsible to free drm.
|
||||
// When drm is passed, DCSR will not free it at destruction
|
||||
DrmCommandStreamReceiver(const HardwareInfo &hwInfoIn, Drm *drm, gemCloseWorkerMode mode = gemCloseWorkerMode::gemCloseWorkerInactive);
|
||||
DrmCommandStreamReceiver(const HardwareInfo &hwInfoIn, Drm *drm, gemCloseWorkerMode mode = gemCloseWorkerMode::gemCloseWorkerActive);
|
||||
|
||||
FlushStamp flush(BatchBuffer &batchBuffer, EngineType engineType, ResidencyContainer *allocationsForResidency) override;
|
||||
void makeResident(GraphicsAllocation &gfxAllocation) override;
|
||||
|
||||
Reference in New Issue
Block a user