OSDN Git Service

mesa: Skip redundant texture completeness checking during image validation.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 3 Sep 2015 13:12:59 +0000 (16:12 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 21 Oct 2015 13:23:20 +0000 (14:23 +0100)
commitdf361e2311b61f215b01a98452ffb448015f896a
tree786430afc9824bbd03f037250a2f8c76fb866800
parent7259f17eca89060c9367c4e859d5a4ba43d010c1
mesa: Skip redundant texture completeness checking during image validation.

The call to _mesa_test_texobj_completeness() is unnecessary if the
texture is already known to be complete.  If the texture object is
dirtied in the meantime _BaseComplete and _MipmapComplete will be
reset to false.  _mesa_is_image_unit_valid() will start to be called
more frequently in a future commit, so it seems desirable to avoid the
unnecessary work.

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>
(cherry picked from commit 25d3338be37ddbfe676716034ec5f29e27323704)
src/mesa/main/shaderimage.c