meta: Refactor the BlitFramebuffer depth CopyTexImage fallback.
authorEric Anholt <eric@anholt.net>
Fri, 28 Feb 2014 20:47:54 +0000 (12:47 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 15 Apr 2014 21:34:22 +0000 (14:34 -0700)
commit4cc42805e72d7edba0599f4d45099b4ed97ec185
treec61fa878d759c3fa158c54df437e3197d7532d01
parentb702233f53d6de50943fa0b81e1def8f879ab644
meta: Refactor the BlitFramebuffer depth CopyTexImage fallback.

This avoids a ReadPixels() if there's accelerated CopyTexImage present.
It now requires GLSL as opposed to just fragment programs, but we don't
have any drivers that do ARB_fp but not GLSL.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/common/meta.h
src/mesa/drivers/common/meta_blit.c