meta/TexSubImage: Stash everything other than PIXEL_TRANSFER/store in meta_begin
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 27 Feb 2015 20:29:03 +0000 (12:29 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 2 Mar 2015 19:06:37 +0000 (11:06 -0800)
commitb1ab02d9c0cc11ba8ef4efaba9452d644b6a0811
tree4b98958d5b41e31c8417b2658d45c122a18986e4
parent93a8c702a6582049d2f49c752fdaab1df625cc0c
meta/TexSubImage: Stash everything other than PIXEL_TRANSFER/store in meta_begin

Previously, there were bugs where if the app set a scissor it could affect
the area of the texture that was downloaded.  There was also potential that
the framebuffer SRGB state could affect downloads.  This ensures that those
will get saved/restored and can't affect the texture download.

Cc: 10.5 <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89292
Reviewed-by: Neil Roberts <neil@linux.intel.com>
src/mesa/drivers/common/meta_tex_subimage.c