i965/tex: Unify the TexImage and TexSubImage code
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 31 May 2017 20:48:10 +0000 (13:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Sep 2017 17:59:05 +0000 (10:59 -0700)
commit7bd5931cc1e1102e0171ca70bd2d6bbad81f71dc
tree0e99a57de0fc5c10bddbf2701931f35cffae5314
parentbb811fa8282a0117e81354ab6ac91deb1c37d2ed
i965/tex: Unify the TexImage and TexSubImage code

It's nearly the same so there's no good reason why it can't be in a
common function.  The one difference is that _mesa_store_teximage
calls AllocTextureImageBuffer for us, while _mesa_store_texsubimage
doesn't, but we don't need that anyway - intelTexImage already does it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/intel_tex_image.c