mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
performance: Improve dispatch monitor fence from wait
-update last submitted value while flush monitor fence -dispatch monitor fence with workload when stalling cmds present Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
54fce64583
commit
d3355411b8
@@ -31,7 +31,7 @@ class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily, Dispatcher> {
|
||||
|
||||
void ensureRingCompletion() override;
|
||||
void handleSwitchRingBuffers() override;
|
||||
uint64_t updateTagValue() override;
|
||||
uint64_t updateTagValue(bool hasStallingCmds) override;
|
||||
void getTagAddressValue(TagData &tagData) override;
|
||||
bool isCompleted(uint32_t ringBufferIndex) override;
|
||||
bool isCompletionFenceSupported();
|
||||
|
||||
@@ -217,7 +217,7 @@ void DrmDirectSubmission<GfxFamily, Dispatcher>::handleSwitchRingBuffers() {
|
||||
}
|
||||
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
uint64_t DrmDirectSubmission<GfxFamily, Dispatcher>::updateTagValue() {
|
||||
uint64_t DrmDirectSubmission<GfxFamily, Dispatcher>::updateTagValue(bool hasStallingCmds) {
|
||||
if (!this->disableMonitorFence) {
|
||||
this->currentTagData.tagValue++;
|
||||
this->ringBuffers[this->currentRingBuffer].completionFence = this->currentTagData.tagValue;
|
||||
|
||||
Reference in New Issue
Block a user