mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
glsl: add ability to use essl 3.20
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
fa8c0ccfbc
commit
4965c5bf72
4 changed files with 11 additions and 0 deletions
|
|
@ -231,6 +231,12 @@ _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *_ctx,
|
|||
this->supported_versions[this->num_supported_versions].es = true;
|
||||
this->num_supported_versions++;
|
||||
}
|
||||
if ((ctx->API == API_OPENGLES2 && ctx->Version >= 32) ||
|
||||
ctx->Extensions.ARB_ES3_2_compatibility) {
|
||||
this->supported_versions[this->num_supported_versions].ver = 320;
|
||||
this->supported_versions[this->num_supported_versions].es = true;
|
||||
this->num_supported_versions++;
|
||||
}
|
||||
|
||||
/* Create a string for use in error messages to tell the user which GLSL
|
||||
* versions are supported.
|
||||
|
|
@ -566,6 +572,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
|
|||
/* ARB extensions go here, sorted alphabetically.
|
||||
*/
|
||||
EXT(ARB_ES3_1_compatibility, true, false, ARB_ES3_1_compatibility),
|
||||
EXT(ARB_ES3_2_compatibility, true, false, ARB_ES3_2_compatibility),
|
||||
EXT(ARB_arrays_of_arrays, true, false, ARB_arrays_of_arrays),
|
||||
EXT(ARB_compute_shader, true, false, ARB_compute_shader),
|
||||
EXT(ARB_conservative_depth, true, false, ARB_conservative_depth),
|
||||
|
|
|
|||
|
|
@ -512,6 +512,8 @@ struct _mesa_glsl_parse_state {
|
|||
*/
|
||||
bool ARB_ES3_1_compatibility_enable;
|
||||
bool ARB_ES3_1_compatibility_warn;
|
||||
bool ARB_ES3_2_compatibility_enable;
|
||||
bool ARB_ES3_2_compatibility_warn;
|
||||
bool ARB_arrays_of_arrays_enable;
|
||||
bool ARB_arrays_of_arrays_warn;
|
||||
bool ARB_compute_shader_enable;
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ EXT(APPLE_vertex_array_object , dummy_true
|
|||
|
||||
EXT(ARB_ES2_compatibility , ARB_ES2_compatibility , GLL, GLC, x , x , 2009)
|
||||
EXT(ARB_ES3_1_compatibility , ARB_ES3_1_compatibility , x , GLC, x , x , 2014)
|
||||
EXT(ARB_ES3_2_compatibility , ARB_ES3_2_compatibility , x , GLC, x , x , 2015)
|
||||
EXT(ARB_ES3_compatibility , ARB_ES3_compatibility , GLL, GLC, x , x , 2012)
|
||||
EXT(ARB_arrays_of_arrays , ARB_arrays_of_arrays , GLL, GLC, x , x , 2012)
|
||||
EXT(ARB_base_instance , ARB_base_instance , GLL, GLC, x , x , 2011)
|
||||
|
|
|
|||
|
|
@ -3724,6 +3724,7 @@ struct gl_extensions
|
|||
GLboolean ARB_ES2_compatibility;
|
||||
GLboolean ARB_ES3_compatibility;
|
||||
GLboolean ARB_ES3_1_compatibility;
|
||||
GLboolean ARB_ES3_2_compatibility;
|
||||
GLboolean ARB_arrays_of_arrays;
|
||||
GLboolean ARB_base_instance;
|
||||
GLboolean ARB_blend_func_extended;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue