mesa: add glsl version query (v4)
authorVadym Shovkoplias <vadim.shovkoplias@gmail.com>
Tue, 13 Feb 2018 18:38:22 +0000 (11:38 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 13 Feb 2018 20:24:31 +0000 (13:24 -0700)
commita553c54abf92533daf442073dd3408c35f57d8ba
treead6a333c33af4ae7f045b2a47c5624a9810f1fbd
parentb08d718703bc907d9cb99887f90ea80d7e91dc45
mesa: add glsl version query (v4)

Add support for GL_NUM_SHADING_LANGUAGE_VERSIONS
and glGetStringi for GL_SHADING_LANGUAGE_VERSION

v2:
  - Combine similar functionality into
    _mesa_get_shading_language_version() function.
  - Change GLSL version return mechanism.
v3:
  - Add return of empty string for GLSL ver 1.10.
  - Move _mesa_get_shading_language_version() function
    to src/mesa/main/version.c.
v4:
  - Add OpenGL version check.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104915
Signed-off-by: Andriy Khulap <andriy.khulap@globallogic.com>
Signed-off-by: Vadym Shovkoplias <vadym.shovkoplias@globallogic.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mapi/glapi/gen/GL4x.xml
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/getstring.c
src/mesa/main/version.c
src/mesa/main/version.h