intel: Rebuild PBO blit glTexImage() on top of miptrees.
authorEric Anholt <eric@anholt.net>
Fri, 24 May 2013 18:42:10 +0000 (11:42 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 May 2013 20:06:57 +0000 (13:06 -0700)
commit5f29dca0700c7bc87c891b1d7653ae3d798407d4
tree1fa3c1902583f782e87debe6b9b48cd79811c030
parent3c3e83014b185791a99a0a2b793ecda7576aa4d1
intel: Rebuild PBO blit glTexImage() on top of miptrees.

This will ensure that we have resolves if we ever extend this to
glTexSubImage(), and fixes missing image start offset handling.

The texture buffer alloc ended up getting moved up, because we want to
look at the format of the image's actual mt to see if we'll end up
blitting the right thing, in the case of packed depth/stencil uploads.

This is the last caller of intelEmitCopyBlit() on a miptree-wrapped BO.

Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/intel/intel_tex_image.c