[Mesa-dev] [PATCH 9/9] dispatch_sanity test: add GL CORE 3.1 test

Matt Turner mattst88 at gmail.com
Thu Oct 25 16:11:30 PDT 2012


On Wed, Oct 24, 2012 at 2:20 PM, Jordan Justen
<jordan.l.justen at intel.com> wrote:
> The function list was generated from glcorearb.h for GL 4.3.
>
> Note that many GL 4.X functions start with a dash (-) which
> indicates that they are not yet known to Mesa.
>
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>  src/mesa/main/tests/dispatch_sanity.cpp |  639 +++++++++++++++++++++++++++++++
>  1 file changed, 639 insertions(+)
>
> diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp
> index d5f0467..f18d4ee 100644
> --- a/src/mesa/main/tests/dispatch_sanity.cpp
> +++ b/src/mesa/main/tests/dispatch_sanity.cpp
> @@ -73,6 +73,7 @@ struct function {
>     int offset;
>  };
>
> +extern const struct function gl_core_functions_possible[];
>  extern const struct function gles2_functions_possible[];
>
>  #if FEATURE_ES1
> @@ -150,6 +151,24 @@ DispatchSanity_test::validate_functions()
>     }
>  }
>
> +TEST_F(DispatchSanity_test, GL31_CORE)
> +{
> +   function_table = gl_core_functions_possible;
> +   ctx.Version = 31;
> +   _mesa_initialize_context(&ctx,
> +                            API_OPENGL_CORE,
> +                            &visual,
> +                            NULL, // share_list
> +                            &driver_functions);
> +
> +   _swrast_CreateContext(&ctx);
> +   _vbo_CreateContext(&ctx);
> +   _tnl_CreateContext(&ctx);
> +   _swsetup_CreateContext(&ctx);
> +
> +   validate_functions();
> +}

Do we need to call all of these _CreateContext functions if we're
setting up a core context that doesn't do fixed function?


More information about the mesa-dev mailing list