diff options
author | Francisco Jerez <[email protected]> | 2015-08-29 17:03:08 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-10-09 17:49:01 +0300 |
commit | 7e441bf025cf8c5d088430d546acb4c0ed58d27b (patch) | |
tree | e7d53e61107ac19e740f86b0bb79777d0629fcfd /src/mesa/main/shaderimage.h | |
parent | 2d97a78b37ddf325d90e056f5eefee0548092530 (diff) |
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 <[email protected]>
Tested-by: Ye Tian <[email protected]>
CC: "11.0" <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderimage.h')
-rw-r--r-- | src/mesa/main/shaderimage.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mesa/main/shaderimage.h b/src/mesa/main/shaderimage.h index 14a544fca8a..94ee814a716 100644 --- a/src/mesa/main/shaderimage.h +++ b/src/mesa/main/shaderimage.h @@ -65,15 +65,6 @@ _mesa_init_image_units(struct gl_context *ctx); GLboolean _mesa_is_image_unit_valid(struct gl_context *ctx, struct gl_image_unit *u); -/** - * Recalculate the \c _Valid flag of a context's shader image units. - * - * To be called when the state of any texture bound to an image unit - * changes. - */ -void -_mesa_validate_image_units(struct gl_context *ctx); - void GLAPIENTRY _mesa_BindImageTexture(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, |