<div dir="ltr">On 22 June 2016 at 15:07, Jason Ekstrand <span dir="ltr"><<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This makes texture views sort-of work. It doesn't add full texture view<br>
support for gen4-5 but it is enough to fix the GL_ARB_copy_image formats<br>
piglit test on Iron Lake.<br>
<br>
Signed-off-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=83036" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=83036</a><br>
Cc: "11.1 11.2 12.0" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>><br>
---<br>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c<br>
index 133a944..b07bf19 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c<br>
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c<br>
@@ -335,7 +335,7 @@ brw_update_texture_surface(struct gl_context *ctx,<br>
surf = brw_state_batch(brw, AUB_TRACE_SURFACE_STATE,<br>
6 * 4, 32, surf_offset);<br>
<br>
- uint32_t tex_format = translate_tex_format(brw, mt->format,<br>
+ uint32_t tex_format = translate_tex_format(brw, intelObj->_Format,<br>
sampler->sRGBDecode);<br>
<br>
if (tObj->Target == GL_TEXTURE_EXTERNAL_OES) {<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>For what it is worth, this series is:<br><br>Reviewed-by: Rhys Kidd <<a href="mailto:rhyskidd@gmail.com">rhyskidd@gmail.com</a>><br>Tested-by: Rhys Kidd <<a href="mailto:rhyskidd@gmail.com">rhyskidd@gmail.com</a>> <br></div></div><br></div></div>