OSDN Git Service

i965/gen4: Pull texture formats from the texture object not the miptree
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 04:58:23 +0000 (21:58 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 24 Jun 2016 19:26:14 +0000 (20:26 +0100)
commitd9219b5b79a21f59306b7048b51b82561ac0ccbf
tree9a2e6d70ed000cf87580a178318e189735d1ddf3
parentabfed13bf40fd5bc49626d6f7a17790aa32b57bd
i965/gen4: Pull texture formats from the texture object not the miptree

This makes texture views sort-of work.  It doesn't add full texture view
support for gen4-5 but it is enough to fix the GL_ARB_copy_image formats
piglit test on Iron Lake.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83036
Cc: "11.1 11.2 12.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit ee39d3ba918de9d52d79bdee6db2c120bcf0f28e)
src/mesa/drivers/dri/i965/brw_wm_surface_state.c