i965: Disable aux buffers for EGLImage-backed miptrees
authorChad Versace <chad.versace@intel.com>
Mon, 6 Apr 2015 15:07:27 +0000 (08:07 -0700)
committerChad Versace <chad.versace@intel.com>
Mon, 13 Apr 2015 14:36:32 +0000 (07:36 -0700)
commit2943b15ce7ce1bc29424949124a69538253008f7
tree7ac34c87830518adaffbc0a4d73eccf95bce0c82
parentbf504b61274123f09720c80569a8b4f2d3495630
i965: Disable aux buffers for EGLImage-backed miptrees

EGL does not yet have extensions to manage the flushing and invalidating
of driver-internal aux buffers. So we must disable aux buffers of
dma_buf-backed EGLImages in order to safely render into them.

This patch is obviously needed for renderbufers. It's also needed for
textures because the user can attach the texture to a framebuffer and
because the driver sometimes renders to textures for internal reasons.

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_fbo.c
src/mesa/drivers/dri/i965/intel_tex_image.c