[PATCH xf86-video-ati 03/21] Ignore RADEON_DRM_QUEUE_ERROR (0) in radeon_drm_abort_entry

Michel Dänzer michel at daenzer.net
Wed Jul 11 17:27:48 UTC 2018


From: Michel Dänzer <michel.daenzer at amd.com>

This allows a following change to be slightly simpler.
(Ported from amdgpu commit 8fcc3a9b43d3907052a83a96e5a2423afab5ad3f)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/radeon_drm_queue.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/radeon_drm_queue.c b/src/radeon_drm_queue.c
index 869f95c32..ac775f86a 100644
--- a/src/radeon_drm_queue.c
+++ b/src/radeon_drm_queue.c
@@ -150,6 +150,9 @@ radeon_drm_abort_entry(uintptr_t seq)
 {
     struct radeon_drm_queue_entry *e, *tmp;
 
+    if (seq == RADEON_DRM_QUEUE_ERROR)
+	return;
+
     xorg_list_for_each_entry_safe(e, tmp, &radeon_drm_queue, list) {
 	if (e->seq == seq) {
 	    radeon_drm_abort_one(e);
-- 
2.18.0



More information about the amd-gfx mailing list