i965/miptree: Add support for window system images to create_for_dri_image
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Jun 2017 16:57:12 +0000 (09:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 13 Jul 2017 04:15:46 +0000 (21:15 -0700)
commit90d93755d17397bb2b27fece9aec02914e31e9b7
treefa9c6272cdde77737f1dfb061f36eabfb52d8631
parent2dd4e2348f3c05cd11cd6573fbbaeea7ab898692
i965/miptree: Add support for window system images to create_for_dri_image

We want to start using create_for_dri_image for all miptrees created
from __DRIimage, including those which come from a window system.  In
order to allow for fast clears to still work on window system buffers,
we need to allow for creating aux surfaces.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/intel_fbo.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h
src/mesa/drivers/dri/i965/intel_tex_image.c