glsl: Create and use a has_uniform_buffer_objects() helper.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Sep 2013 01:18:14 +0000 (18:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Sep 2013 23:55:18 +0000 (16:55 -0700)
commitf91475d4ab7e1328904a1df443fbf85ed8acb7f3
tree0915c00a53c92fd9f65266028a1d8ee4d4978859
parente4af55c78f9d639653bb9290e0fc63c6658cdc4d
glsl: Create and use a has_uniform_buffer_objects() helper.

This is better than overriding the extension enable based on the
language version; it's robust against shaders that do:

   #version 140
   #extension GL_ARB_uniform_buffer_object : disable

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h