<div class="gmail_quote">On 2 July 2012 15:42, Jordan Justen <span dir="ltr"><<a href="mailto:jljusten@gmail.com" target="_blank">jljusten@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Patch Series:<br>
Reviewed-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>><br>
<br>
I assume you recommend I use piglit-util-gl.c for<br>
* piglit_require_primitive_restart<br>
* piglit_EnablePrimitiveRestart<br>
* piglit_DisablePrimitiveRestart<br>
(RE: [PATCH v2 1/2] util: add primitive restart util routines)<br></blockquote><div><br></div><div>I don't have a strong feeling either way.  I'll try to review your patches this morning. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Thanks,<br>
<br>
-Jordan<br>
<div><div><br>
On Mon, Jul 2, 2012 at 2:57 PM, Paul Berry <<a href="mailto:stereotype441@gmail.com" target="_blank">stereotype441@gmail.com</a>> wrote:<br>
> With the transform feedback wrapper functions removed,<br>
> piglit_require_transform_feedback() was the only function left in<br>
> piglit-transform-feedback.{c.h}.  This patch moves it to piglit-util.c<br>
> so that it won't get lonely.<br>
> ---<br>
>  tests/util/CMakeLists.gl.txt           |    2 -<br>
>  tests/util/piglit-transform-feedback.c |   43 --------------------------------<br>
>  tests/util/piglit-transform-feedback.h |   32 -----------------------<br>
>  tests/util/piglit-util-gl-common.h     |    2 +-<br>
>  tests/util/piglit-util-gl.c            |   17 ++++++++++++<br>
>  5 files changed, 18 insertions(+), 78 deletions(-)<br>
>  delete mode 100644 tests/util/piglit-transform-feedback.c<br>
>  delete mode 100644 tests/util/piglit-transform-feedback.h<br>
><br>
> diff --git a/tests/util/CMakeLists.gl.txt b/tests/util/CMakeLists.gl.txt<br>
> index 8b8d40e..02c6d3a 100644<br>
> --- a/tests/util/CMakeLists.gl.txt<br>
> +++ b/tests/util/CMakeLists.gl.txt<br>
> @@ -4,7 +4,6 @@ set(UTIL_GL_SOURCES<br>
>         piglit-dispatch-init.c<br>
>         piglit-shader.c<br>
>         piglit-shader-gl.c<br>
> -       piglit-transform-feedback.c<br>
>         piglit-util-gl.c<br>
>         piglit-vbo.cpp<br>
>         sized-internalformats.c<br>
> @@ -30,7 +29,6 @@ IF(BUILD_GLX_TESTS)<br>
>         piglit_add_library (piglitglxutil<br>
>                     piglit-shader.c<br>
>                     piglit-shader-gl.c<br>
> -                   piglit-transform-feedback.c<br>
>                     piglit-util-gl-common.c<br>
>                     piglit-util-gl-enum.c<br>
>                     piglit-util-gl.c<br>
> diff --git a/tests/util/piglit-transform-feedback.c b/tests/util/piglit-transform-feedback.c<br>
> deleted file mode 100644<br>
> index 173d32d..0000000<br>
> --- a/tests/util/piglit-transform-feedback.c<br>
> +++ /dev/null<br>
> @@ -1,43 +0,0 @@<br>
> -/*<br>
> - * Copyright © 2011 Intel Corporation<br>
> - *<br>
> - * Permission is hereby granted, free of charge, to any person obtaining a<br>
> - * copy of this software and associated documentation files (the "Software"),<br>
> - * to deal in the Software without restriction, including without limitation<br>
> - * the rights to use, copy, modify, merge, publish, distribute, sublicense,<br>
> - * and/or sell copies of the Software, and to permit persons to whom the<br>
> - * Software is furnished to do so, subject to the following conditions:<br>
> - *<br>
> - * The above copyright notice and this permission notice (including the next<br>
> - * paragraph) shall be included in all copies or substantial portions of the<br>
> - * Software.<br>
> - *<br>
> - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>
> - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>
> - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL<br>
> - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>
> - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING<br>
> - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER<br>
> - * DEALINGS IN THE SOFTWARE.<br>
> - */<br>
> -<br>
> -#ifndef USE_OPENGL<br>
> -#      error USE_OPENGL is undefined<br>
> -#endif<br>
> -<br>
> -#if defined(_MSC_VER)<br>
> -#include <windows.h><br>
> -#endif<br>
> -<br>
> -#include "piglit-util-gl-common.h"<br>
> -<br>
> -void<br>
> -piglit_require_transform_feedback(void)<br>
> -{<br>
> -       if (!(piglit_get_gl_version() >= 30 ||<br>
> -             piglit_is_extension_supported("GL_EXT_transform_feedback"))) {<br>
> -               printf("Transform feedback not supported.\n");<br>
> -               piglit_report_result(PIGLIT_SKIP);<br>
> -               exit(1);<br>
> -       }<br>
> -}<br>
> diff --git a/tests/util/piglit-transform-feedback.h b/tests/util/piglit-transform-feedback.h<br>
> deleted file mode 100644<br>
> index 312bb85..0000000<br>
> --- a/tests/util/piglit-transform-feedback.h<br>
> +++ /dev/null<br>
> @@ -1,32 +0,0 @@<br>
> -/*<br>
> - * Copyright © 2011 Intel Corporation<br>
> - *<br>
> - * Permission is hereby granted, free of charge, to any person obtaining a<br>
> - * copy of this software and associated documentation files (the "Software"),<br>
> - * to deal in the Software without restriction, including without limitation<br>
> - * the rights to use, copy, modify, merge, publish, distribute, sublicense,<br>
> - * and/or sell copies of the Software, and to permit persons to whom the<br>
> - * Software is furnished to do so, subject to the following conditions:<br>
> - *<br>
> - * The above copyright notice and this permission notice (including the next<br>
> - * paragraph) shall be included in all copies or substantial portions of the<br>
> - * Software.<br>
> - *<br>
> - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>
> - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>
> - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL<br>
> - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>
> - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING<br>
> - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER<br>
> - * DEALINGS IN THE SOFTWARE.<br>
> - */<br>
> -<br>
> -#pragma once<br>
> -<br>
> -/**<br>
> - * Require transform feedback.<br>
> - *<br>
> - * Transform feedback may either be provided by GL 3.0 or<br>
> - * EXT_transform_feedback.<br>
> - */<br>
> -extern void piglit_require_transform_feedback(void);<br>
> diff --git a/tests/util/piglit-util-gl-common.h b/tests/util/piglit-util-gl-common.h<br>
> index ca30e6d..d2e6b3e 100644<br>
> --- a/tests/util/piglit-util-gl-common.h<br>
> +++ b/tests/util/piglit-util-gl-common.h<br>
> @@ -38,7 +38,6 @@ extern "C" {<br>
><br>
>  #include "piglit-framework.h"<br>
>  #include "piglit-shader.h"<br>
> -#include "piglit-transform-feedback.h"<br>
><br>
>  extern const uint8_t fdo_bitmap[];<br>
>  extern const unsigned int fdo_bitmap_width;<br>
> @@ -170,6 +169,7 @@ GLuint piglit_rgbw_texture(GLenum format, int w, int h, GLboolean mip,<br>
>  GLuint piglit_depth_texture(GLenum target, GLenum format, int w, int h, int d, GLboolean mip);<br>
>  extern float piglit_tolerance[4];<br>
>  void piglit_set_tolerance_for_bits(int rbits, int gbits, int bbits, int abits);<br>
> +extern void piglit_require_transform_feedback(void);<br>
><br>
>  extern GLfloat cube_face_texcoords[6][4][3];<br>
>  extern const char *cube_face_names[6];<br>
> diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c<br>
> index 2f08ba4..f54f58e 100644<br>
> --- a/tests/util/piglit-util-gl.c<br>
> +++ b/tests/util/piglit-util-gl.c<br>
> @@ -1338,3 +1338,20 @@ piglit_depth_texture(GLenum target, GLenum internalformat, int w, int h, int d,<br>
>         free(data);<br>
>         return tex;<br>
>  }<br>
> +<br>
> +/**<br>
> + * Require transform feedback.<br>
> + *<br>
> + * Transform feedback may either be provided by GL 3.0 or<br>
> + * EXT_transform_feedback.<br>
> + */<br>
> +void<br>
> +piglit_require_transform_feedback(void)<br>
> +{<br>
> +       if (!(piglit_get_gl_version() >= 30 ||<br>
> +             piglit_is_extension_supported("GL_EXT_transform_feedback"))) {<br>
> +               printf("Transform feedback not supported.\n");<br>
> +               piglit_report_result(PIGLIT_SKIP);<br>
> +               exit(1);<br>
> +       }<br>
> +}<br>
> --<br>
> 1.7.7.6<br>
><br>
</div></div></blockquote></div><br>