glsl/types: Use _mesa_hash_data for hashing function types