intel: Make a temporary miptree when doing blit uploads for glTexSubImage().
authorEric Anholt <eric@anholt.net>
Thu, 23 May 2013 21:16:15 +0000 (14:16 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 May 2013 20:06:56 +0000 (13:06 -0700)
commit4a13beef886a1d4ce190fe29d3ef94db0c2e60b8
treeb2a3353c4aacf109f58cc914fe31e922f768b6f0
parentda2880bea05bfc87109477ab026a7f5401fc8f0c
intel: Make a temporary miptree when doing blit uploads for glTexSubImage().

While this is a bit more CPU work, it also is less code to handle this
path, and fixes problems with 32k-pitch textures and missing resolves.

v2: Add error checking in new code.

Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/intel/intel_tex_subimage.c