Revert "intel: Drop the immediate validation of the texture object in TFP."
authorEric Anholt <eric@anholt.net>
Tue, 1 Nov 2011 16:24:47 +0000 (09:24 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 1 Nov 2011 22:42:17 +0000 (15:42 -0700)
commit15b58d8c2233f0e67257cb907c7d90fa23c723a5
treecf36cff1d0be136569803172792820e008463f7e
parent689df24503d018f2d120316dc99cd96410526895
Revert "intel: Drop the immediate validation of the texture object in TFP."

This reverts commit abaebcee787eeb8a89bf7a82ed4d1532fcde5e39.

The assertion I made was that "the zero-copy code in validation" would
zero copy.  Of course, I deleted that check back in January because
the two sites that would trigger it (glTexImage() and this one) both
immediately bound their mt to the object, making the other check
pointless.

Removes two extra blits in glx-tfp.  Also fixed the Android home
screen, which wasn't rendering because the extra copy broke the
relationship between the texture and the eglimage.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42152
Tested-by: Chad Versace <chad@chad-versace.us>
Tested-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
src/mesa/drivers/dri/intel/intel_tex_image.c