<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - repeatable drm:amdgpu_job_timedout with vulkan toy"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106696#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - repeatable drm:amdgpu_job_timedout with vulkan toy"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106696">bug 106696</a>
from <span class="vcard"><a class="email" href="mailto:freedesktop@treblig.org" title="Dave Gilbert <freedesktop@treblig.org>"> <span class="fn">Dave Gilbert</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>