<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 14, 2014 at 9:09 AM, Topi Pohjolainen <span dir="ltr"><<a href="mailto:topi.pohjolainen@intel.com" target="_blank">topi.pohjolainen@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@gmail.com">topi.pohjolainen@gmail.com</a>><br>
<br>
Fixes gles3 conformance tests:<br>
<br>
framebuffer_blit_functionality_negative_height_blit<br>
framebuffer_blit_functionality_negative_width_blit<br>
framebuffer_blit_functionality_negative_dimensions_blit<br>
framebuffer_blit_functionality_magnifying_blit<br>
framebuffer_blit_functionality_multisampled_to_singlesampled_blit<br>
<br>
Signed-off-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@gmail.com">topi.pohjolainen@gmail.com</a>><br>
---<br>
src/mesa/drivers/dri/i965/gen8_viewport_state.c | 7 +++++++<br>
1 file changed, 7 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/gen8_viewport_state.c b/src/mesa/drivers/dri/i965/gen8_viewport_state.c<br>
index 9c89532..eda9aad 100644<br>
--- a/src/mesa/drivers/dri/i965/gen8_viewport_state.c<br>
+++ b/src/mesa/drivers/dri/i965/gen8_viewport_state.c<br>
@@ -94,6 +94,13 @@ gen8_upload_sf_clip_viewport(struct brw_context *brw)<br>
float gbx = maximum_guardband_extent / ctx->ViewportArray[i].Width;<br>
float gby = maximum_guardband_extent / ctx->ViewportArray[i].Height;<br>
<br>
+ /**<br>
+ * Stencil blits require W-tiled to be treated as Y-tiled needing in<br>
+ * turn width to be programmed twice the original.<br>
+ */<br>
+ if (brw->meta_in_progress)<br>
+ gbx *= 2;<br>
+<br>
/* _NEW_VIEWPORT: Guardband Clipping */<br>
vp[8] = -gbx; /* x-min */<br>
vp[9] = gbx; /* x-max */<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.1<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a></font></span></blockquote><div> </div></div></div><div class="gmail_extra">Tested-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>></div>
<div class="gmail_extra"><br></div></div>