<div dir="auto">On my list</div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 5, 2017 7:51 PM, "Ben Widawsky" <<a href="mailto:ben@bwidawsk.net">ben@bwidawsk.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 17-01-02 18:37:17, Ben Widawsky wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
v2: Put the commit message as a comment (Topi)<br>
<br>
Cc: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@gmail.com" target="_blank">topi.pohjolainen@gmail.com</a>><br>
Cc: Ville Syrjälä <<a href="mailto:ville.syrjala@linux.intel.com" target="_blank">ville.syrjala@linux.intel.com</a><wbr>><br>
Cc: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>><br>
Signed-off-by: Ben Widawsky <<a href="mailto:ben@bwidawsk.net" target="_blank">ben@bwidawsk.net</a>><br>
Acked-by: Daniel Stone <<a href="mailto:daniels@collabora.com" target="_blank">daniels@collabora.com</a>><br>
---<br>
src/mesa/drivers/dri/i965/inte<wbr>l_screen.c | 5 ++++-<br>
1 file changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/in<wbr>tel_screen.c b/src/mesa/drivers/dri/i965/in<wbr>tel_screen.c<br>
index b65ed76720..dfd642893a 100644<br>
--- a/src/mesa/drivers/dri/i965/in<wbr>tel_screen.c<br>
+++ b/src/mesa/drivers/dri/i965/in<wbr>tel_screen.c<br>
@@ -983,7 +983,10 @@ intel_from_planar(__DRIimage *parent, int plane, void *loaderPrivate)<br>
if (parent == NULL || parent->planar_format == NULL) {<br>
if (is_aux) {<br>
offset = parent->aux_offset;<br>
- stride = ALIGN(parent->pitch / 32, 128);<br>
+ /* Make CCS stride match kernel's expectations. Mesa's internals<br>
+ * expect: stride = ALIGN(parent->pitch / 32, 128)<br>
+ */<br>
+ stride = ALIGN(parent->pitch / 64, 128);<br>
height = ALIGN(DIV_ROUND_UP(parent->hei<wbr>ght, 16), 32);<br>
dri_format = parent->dri_format;<br>
goto done;<br>
</blockquote>
<br>
Jason, Ville, can one of you two ack or review this?<br>
</blockquote></div></div>