[Mesa-dev] [PATCH 09/11] mesa: Allow querying for GL_PRIMITIVE_RESTART_FIXED_INDEX under GLES 3

Ian Romanick idr at freedesktop.org
Mon Jan 19 19:05:24 PST 2015


On 01/19/2015 03:32 AM, Eduardo Lima Mitev wrote:
> GLES 3.0.0 spec introduces context state PRIMITIVE_RESTART_FIXED_INDEX
> (2.8.1 Transferring Array Elements, page 26) which is not currently
> possible to query using glGet*() funcs.

This should also be queryable when GL_ARB_ES3_compatibility is supported.

> Fixes 4 dEQP tests:
> * dEQP-GLES3.functional.state_query.boolean.primitive_restart_fixed_index_getboolean
> * dEQP-GLES3.functional.state_query.boolean.primitive_restart_fixed_index_getinteger
> * dEQP-GLES3.functional.state_query.boolean.primitive_restart_fixed_index_getinteger64
> * dEQP-GLES3.functional.state_query.boolean.primitive_restart_fixed_index_getfloat
> ---
>  src/mesa/main/get_hash_params.py | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py
> index c487e98..7f85c0d 100644
> --- a/src/mesa/main/get_hash_params.py
> +++ b/src/mesa/main/get_hash_params.py
> @@ -397,6 +397,11 @@ descriptor=[
>    [ "MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS", "CONTEXT_INT(Const.MaxTransformFeedbackSeparateComponents), extra_EXT_transform_feedback" ],
>  ]},
>  
> +# Enums in OpenGL ES 3.+ only
> +{ "apis": ["GLES3"], "params": [
> +  [ "PRIMITIVE_RESTART_FIXED_INDEX", "CONTEXT_BOOL(Array.PrimitiveRestartFixedIndex), NO_EXTRA" ],
> +]},
> +
>  { "apis": ["GLES", "GLES2"], "params": [
>  # GL_OES_EGL_image_external
>    [ "TEXTURE_BINDING_EXTERNAL_OES", "LOC_CUSTOM, TYPE_INT, TEXTURE_EXTERNAL_INDEX, extra_OES_EGL_image_external" ],
> 



More information about the mesa-dev mailing list