Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Return the error if th...
details: https://anonhg.NetBSD.org/src/rev/cc03f99b3d51
branches: trunk
changeset: 336463:cc03f99b3d51
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Mar 02 17:53:00 2015 +0000
description:
Return the error if there is one in radeon_fence_wait_seq.
Don't just always say we succeeded!
diffstat:
sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 8f6eb0c68d09 -r cc03f99b3d51 sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c Mon Mar 02 17:34:23 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c Mon Mar 02 17:53:00 2015 +0000
@@ -323,7 +323,7 @@
{
uint64_t last_seq[RADEON_NUM_RINGS];
bool signaled;
- int i, r;
+ int i, r = 0;
spin_lock(&rdev->fence_lock);
while (!radeon_fence_any_seq_signaled(rdev, target_seq)) {
@@ -425,7 +425,7 @@
}
}
out: spin_unlock(&rdev->fence_lock);
- return 0;
+ return r;
}
/**
Home |
Main Index |
Thread Index |
Old Index