<div dir="ltr">Hi Kenneth,<div><br></div><div>Can you please look at this patch ?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-07 15:30 GMT+03:00 Den <span dir="ltr"><<a href="mailto:den.kos363@gmail.com" target="_blank">den.kos363@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello. Found out that this patch also fixes 2 new issues:<br>
<br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=106158" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/s<wbr>how_bug.cgi?id=106158</a><br>
<br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=106667" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/s<wbr>how_bug.cgi?id=106667</a><br>
<br>
Tested-by: Denis <<a href="mailto:denys.kostin@globallogic.com" target="_blank">denys.kostin@globallogic.com</a>><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 24.05.18 14:16, vadym.shovkoplias wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=104388" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/s<wbr>how_bug.cgi?id=104388</a><br>
Signed-off-by: Andriy Khulap <<a href="mailto:andriy.khulap@globallogic.com" target="_blank">andriy.khulap@globallogic.com</a><wbr>><br>
---<br>
src/mesa/drivers/dri/i965/genX<wbr>_state_upload.c | 11 +++++++++++<br>
1 file changed, 11 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/ge<wbr>nX_state_upload.c b/src/mesa/drivers/dri/i965/ge<wbr>nX_state_upload.c<br>
index b485e2c..5aa8033 100644<br>
--- a/src/mesa/drivers/dri/i965/ge<wbr>nX_state_upload.c<br>
+++ b/src/mesa/drivers/dri/i965/ge<wbr>nX_state_upload.c<br>
@@ -2473,6 +2473,17 @@ brw_calculate_guardband_size(u<wbr>int32_t fb_width, uint32_t fb_height,<br>
*/<br>
const float gb_size = GEN_GEN >= 7 ? 16384.0f : 8192.0f;<br>
+ /* Workaround: prevent gpu hangs on SandyBridge<br>
+ * by disabling guardband clipping for odd dimensions.<br>
+ */<br>
+ if (GEN_GEN == 6 && (fb_width & 1 || fb_height & 1)) {<br>
+ *xmin = -1.0f;<br>
+ *xmax = 1.0f;<br>
+ *ymin = -1.0f;<br>
+ *ymax = 1.0f;<br>
+ return;<br>
+ }<br>
+<br>
if (m00 != 0 && m11 != 0) {<br>
/* First, we compute the screen-space render area */<br>
const float ss_ra_xmin = MIN3( 0, m30 + m00, m30 - m00);<br>
</blockquote>
<br></div></div><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div>