mesa: Get rid of texture-dependent image unit derived state.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 29 Aug 2015 14:03:08 +0000 (17:03 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 9 Oct 2015 14:49:01 +0000 (17:49 +0300)
commit7e441bf025cf8c5d088430d546acb4c0ed58d27b
treee7d53e61107ac19e740f86b0bb79777d0629fcfd
parent2d97a78b37ddf325d90e056f5eefee0548092530
mesa: Get rid of texture-dependent image unit derived state.

The point is to avoid having to re-validate all image units when
_NEW_TEXTURE is flagged, which can be expensive if the driver exposes
a large number of image units.  This has been reported to fix a 36%
performance regression in the Synmark2 Multithread benchmark on the
i965 driver which exposes 192 image units.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91788
Reported-by: Wendy Wang <wendy.wang@intel.com>
Tested-by: Ye Tian <yex.tian@intel.com>
CC: "11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/mtypes.h
src/mesa/main/shaderimage.c
src/mesa/main/shaderimage.h
src/mesa/main/texstate.c