[Piglit] [PATCH] util/framework/glut: check if we have a core profile
Brian Paul
brianp at vmware.com
Wed Jun 25 10:23:45 PDT 2014
Thanks, but I think I'm going to do a bit more in this area. New
patch(es) to come, after more testing...
-Brian
On 06/25/2014 10:28 AM, Charmaine Lee wrote:
> Reviewed-by: Charmaine Lee <charmainel at vmware.com>
> ________________________________________
> From: Piglit <piglit-bounces at lists.freedesktop.org> on behalf of Brian Paul <brianp at vmware.com>
> Sent: Wednesday, June 25, 2014 8:45 AM
> To: piglit at lists.freedesktop.org
> Subject: [Piglit] [PATCH] util/framework/glut: check if we have a core profile
>
> For the GLUT framework, check the context version and whether
> GL_ARB_compatibility is supported to determine if we should set
> piglit_is_core_profile. Fixes some issues when running GL 3.1 and
> later on Windows.
> ---
> tests/util/piglit-framework-gl/piglit_glut_framework.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/tests/util/piglit-framework-gl/piglit_glut_framework.c b/tests/util/piglit-framework-gl/piglit_glut_framework.c
> index 7c872fb..7530d8d 100644
> --- a/tests/util/piglit-framework-gl/piglit_glut_framework.c
> +++ b/tests/util/piglit-framework-gl/piglit_glut_framework.c
> @@ -256,6 +256,14 @@ piglit_glut_framework_create(const struct piglit_gl_test_config *test_config)
> if (!check_gl_version(test_config))
> piglit_report_result(PIGLIT_SKIP);
>
> + /* Check if we actually have a core profile */
> + {
> + int actual_version = piglit_get_gl_version();
> + if (actual_version >= 31 &&
> + !piglit_is_extension_supported("GL_ARB_compatibility"))
> + piglit_is_core_profile = true;
> + }
> +
> glut_fw.gl_fw.swap_buffers = swap_buffers;
> glut_fw.gl_fw.run_test = run_test;
> glut_fw.gl_fw.post_redisplay = post_redisplay;
> --
> 1.7.10.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/piglit&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=iVNYIcCaC9TDvyNBQU%2F5q5NVsC01tSgJb3oX27T14ck%3D%0A&m=q1wT4aOetVETQd5Kpg%2BrVDT1YOiCXlPN%2FKQSvxFlXvY%3D%0A&s=593c61f70c28e359fb1c33b631b6e9e065393333eaa67d08ce9bbc2b8998bf6d
>
More information about the Piglit
mailing list