summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-07-10 18:41:43 +0200
committerMichel Dänzer <michel@daenzer.net>2018-07-12 18:02:07 +0200
commitd14ff6b77824d0e32728869907e88d6866243101 (patch)
treeeb76c1981450c728f05150507f11a7f7337033fb
parent731d4b386a55cdb468e37b69d41284150952cf8c (diff)
Ignore RADEON_DRM_QUEUE_ERROR (0) in radeon_drm_abort_entry
This allows a following change to be slightly simpler. (Ported from amdgpu commit 8fcc3a9b43d3907052a83a96e5a2423afab5ad3f) Acked-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/radeon_drm_queue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_drm_queue.c b/src/radeon_drm_queue.c
index 869f95c3..ac775f86 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);