glsl: Add convenience function get_sampler_instance
authorCarl Worth <cworth@cworth.org>
Wed, 22 Oct 2014 23:58:26 +0000 (16:58 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 16 Jan 2015 21:47:40 +0000 (13:47 -0800)
commitf87ffd5cc32dbfaff0a110fd7a94a92866c95f3b
treef3a61cc03c18153e2a3de143ba7cb7b83a2baac5
parent127c9724924f9d93652540a9f3ff8306bb1aacd4
glsl: Add convenience function get_sampler_instance

This is similar to the existing functions get_instance,
get_array_instance, etc. for getting a type singleton. The new
get_sampler_instance() function will be used by the upcoming shader
cache.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h