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)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 19:26:43 +0000 (12:26 -0700)
commitee39d3ba918de9d52d79bdee6db2c120bcf0f28e
tree628562fe7b0730659379d3457d3bcbdd7d939d81
parent77d6add00d7f134bf0b033c2aaf59f96a5004548
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>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c