[Mesa-dev] [Bug 106696] repeatable drm:amdgpu_job_timedout with vulkan toy
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon May 28 16:38:37 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=106696
--- Comment #1 from Dave Gilbert <freedesktop at treblig.org> ---
I think there's a fair chance that it's actually getting stuck in the while
loop in my ray.comp (which may well be a screwup on my part); but even so
taking out everything in a non-rebootable way is a bit of a mess!
adding:
diff --git a/ray.comp b/ray.comp
index e75039f..0611d56 100644
--- a/ray.comp
+++ b/ray.comp
@@ -52,13 +52,14 @@ void main() {
// sure that none of rx/ry/rz are greater than a pixel
ray = ray / length(ray);
+ int limit = 0;
float result = 0.0;
bool hitx = false;
bool hity = false;
bool hitz = false;
bool hitedge = false;
float lighting = 0.0;
- while (result <= 255.4 && !hitedge &&
+ while (result <= 255.4 && !hitedge && limit < 256 &&
!(hitx=hitend(pvp.x, ray.x, vsize.x)) &&
!(hity=hitend(pvp.y, ray.y, vsize.y)) &&
!(hitz=hitend(pvp.z, ray.y, vsize.z))) {
@@ -76,6 +77,7 @@ void main() {
result+= float(value/8.0);
}
pvp += ray;
+ limit++;
}
if (result > 255.0) result=255.0;
seems to stop it triggering.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180528/6bda9997/attachment-0001.html>
More information about the mesa-dev
mailing list