i965: Add field intel_mipmap_tree::disable_aux_buffers
authorChad Versace <chad.versace@intel.com>
Mon, 6 Apr 2015 13:46:09 +0000 (06:46 -0700)
committerChad Versace <chad.versace@intel.com>
Mon, 13 Apr 2015 14:36:29 +0000 (07:36 -0700)
commitd3b042f359df5836d4a4f56664eb228fc80772c0
tree4bfb13f890ebd704d436a3f43154b2f3467fef2f
parente1338f267fa5670fc02a450774fa89b42e990883
i965: Add field intel_mipmap_tree::disable_aux_buffers

The new field disables allocation of auxiliary buffers, such as the HiZ
buffer and MCS buffer. This is useful for sharing the miptree bo with an
external client that doesn't understand auxiliary buffers.

We need this field to safely render to a buffer that was imported with
EGL_EXT_image_dma_buf_import, because EGL does not yet have extensions
to manage flushing and invalidating auxiliary buffers.

Nothing yet enables this field. That's left to follow-up patches.

Testing:
  - Tested on Ivybridge Chromebook Pixel with WebGL Aquarium and
    YouTube.
  - No Piglit regressions on Broadwell with `piglit run -p gbm
    tests/quick.py`.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h