summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-08-29 18:41:19 +0200
committerMichel Dänzer <michel@daenzer.net>2018-08-31 17:51:43 +0200
commit7eea3e2cd74eed22e982319144e18ae5b1087b78 (patch)
treeaee98ec1912abced9b18460a94f982c788d1198f
parentb804d7f85d8a07389ba7d3f9b8af8773f852f1c7 (diff)
Always delete entry from list in drm_queue_handler
We left entries without a handler hook in the list, so the list could keep taking longer to process and use up more memory.
-rw-r--r--src/amdgpu_drm_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amdgpu_drm_queue.c b/src/amdgpu_drm_queue.c
index b13d280..f9db81c 100644
--- a/src/amdgpu_drm_queue.c
+++ b/src/amdgpu_drm_queue.c
@@ -82,7 +82,7 @@ amdgpu_drm_queue_handler(struct xorg_list *signalled, unsigned int frame,
xorg_list_for_each_entry_safe(e, tmp, &amdgpu_drm_queue, list) {
if (e->seq == seq) {
if (!e->handler) {
- e->abort(e->crtc, e->data);
+ amdgpu_drm_queue_handle_one(e);
break;
}