diff options
author | Matt Turner <[email protected]> | 2012-12-08 17:24:19 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-01-10 10:57:51 -0800 |
commit | 532e05a9d094fdcdeb2c8dfd0bec6eab82dc8163 (patch) | |
tree | 60e1b76aecb5843d01fe9311850e9e084e9f3bfc /src/mesa/main/get_hash_params.py | |
parent | 92855727f1e0ce1a9861e8f7b6c3ca2b6ffbe440 (diff) |
mesa: Support querying GL_MAX_ELEMENT_INDEX in ES 3
The ES 3 spec says that the minumum allowable value is 2^24-1, but the
GL 4.3 and ARB_ES3_compatibility specs require 2^32-1, so return 2^32-1.
Fixes es3conform's element_index_uint_constants test.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/get_hash_params.py')
-rw-r--r-- | src/mesa/main/get_hash_params.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py index 3ad61d30df7..c0826c7caf0 100644 --- a/src/mesa/main/get_hash_params.py +++ b/src/mesa/main/get_hash_params.py @@ -321,6 +321,9 @@ descriptor=[ # Enums in OpenGL and ES 3.0 { "apis": ["GL", "GL_CORE", "GLES3"], "params": [ +# GL_ARB_ES3_compatibility + [ "MAX_ELEMENT_INDEX", "CONTEXT_INT64(Const.MaxElementIndex), extra_ARB_ES3_compatibility_api_es3"], + # GL_ARB_fragment_shader [ "MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB", "CONTEXT_INT(Const.FragmentProgram.MaxUniformComponents), extra_ARB_fragment_shader" ], |