glsl: fix check SSBOs support for builtin functions
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 16 Oct 2015 06:44:38 +0000 (08:44 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 16 Oct 2015 10:47:58 +0000 (12:47 +0200)
commitccbb52ac1117aa99144785bc032dd459f24b8ba1
treec0814f66b8fa729a5a0741ace4641f4d5b49cd8d
parentdc8c221e2890cc9913dfc99e1e0fcb73c89af52c
glsl: fix check SSBOs support for builtin functions

has_shader_storage_buffer_objects() returns true also if the OpenGL
context is 4.30 or ES 3.1.

Previously, we were saying that all atomic*() GLSL builtin functions
for SSBOs were not available when OpenGL ES 3.1 context was in use.

Fixes 48 dEQP-GLES31 tests:

dEQP-GLES31.functional.ssbo.atomic.*

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/glsl/builtin_functions.cpp