mesa: Expose function to calculate whether a shader image unit is valid.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 29 Aug 2015 13:34:50 +0000 (16:34 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 9 Oct 2015 14:48:28 +0000 (17:48 +0300)
commit5152db415f4047569822d648fda09bdde4171d6d
tree96c8f6d9baa2c98b2a4b09cb5793437c3a776ecf
parent5346c1167064d6429c6338974c6342f8346fd34b
mesa: Expose function to calculate whether a shader image unit is valid.

A future commit will remove all texture object-dependent derived state
from the image unit struct to make validation unnecessary on texture
state changes.  Instead of checking gl_image_unit::_Valid drivers will
be required to call this function when needed to find out whether an
image unit is in a valid state and whether access from the shader is
allowed.

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/shaderimage.c
src/mesa/main/shaderimage.h