mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
mesa: Support more glGet enums for ES3
For glGetIntegerv, add support for the following in an OpenGL ES 3.0
context:
GL_MAJOR_VERSION
GL_MINOR_VERSION
GL_NUM_EXTENSIONS
See Table 6.29 of the OpenGL ES 3.0 spec.
Fixes error GL_INVALID_ENUM in piglit egl-create-context-verify-gl-flavor,
testcase for OpenGL ES 3.0.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
532e05a9d0
commit
75b963c095
2 changed files with 11 additions and 3 deletions
|
|
@ -364,6 +364,12 @@ static const int extra_version_30[] = { EXTRA_VERSION_30, EXTRA_END };
|
|||
static const int extra_version_31[] = { EXTRA_VERSION_31, EXTRA_END };
|
||||
static const int extra_version_32[] = { EXTRA_VERSION_32, EXTRA_END };
|
||||
|
||||
static const int extra_gl30_es3[] = {
|
||||
EXTRA_VERSION_30,
|
||||
EXTRA_API_ES3,
|
||||
EXTRA_END,
|
||||
};
|
||||
|
||||
static const int
|
||||
extra_ARB_vertex_program_api_es2[] = {
|
||||
EXT(ARB_vertex_program),
|
||||
|
|
|
|||
|
|
@ -321,6 +321,11 @@ descriptor=[
|
|||
|
||||
# Enums in OpenGL and ES 3.0
|
||||
{ "apis": ["GL", "GL_CORE", "GLES3"], "params": [
|
||||
# GL 3.0 / GLES3
|
||||
[ "NUM_EXTENSIONS", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ],
|
||||
[ "MAJOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ],
|
||||
[ "MINOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ],
|
||||
|
||||
# GL_ARB_ES3_compatibility
|
||||
[ "MAX_ELEMENT_INDEX", "CONTEXT_INT64(Const.MaxElementIndex), extra_ARB_ES3_compatibility_api_es3"],
|
||||
|
||||
|
|
@ -661,9 +666,6 @@ descriptor=[
|
|||
[ "SAMPLER_BINDING", "LOC_CUSTOM, TYPE_INT, GL_SAMPLER_BINDING, NO_EXTRA" ],
|
||||
|
||||
# GL 3.0
|
||||
[ "NUM_EXTENSIONS", "LOC_CUSTOM, TYPE_INT, 0, extra_version_30" ],
|
||||
[ "MAJOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_version_30" ],
|
||||
[ "MINOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_version_30" ],
|
||||
[ "CONTEXT_FLAGS", "CONTEXT_INT(Const.ContextFlags), extra_version_30" ],
|
||||
|
||||
# GL3.0 / GL_EXT_framebuffer_sRGB
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue