<div dir="ltr">Hi Dylan, <div><br></div><div>Based on the advice from Brian Paul on the location of the first patch I submitted, I looked into <span style="font-size:12.8000001907349px">fdo14575.c to get the appropriate location for this test.</span><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Best Wishes.</span></div><div><span style="font-size:12.8000001907349px">Guy-Daniel Tiku.</span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 3, 2015 at 11:04 PM, Dylan Baker <span dir="ltr"><<a href="mailto:baker.dylan.c@gmail.com" target="_blank">baker.dylan.c@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm also assuming that you've looked through all.py and made sure that<br>
these tests are in the appropriate location?<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Apr 02, 2015 at 07:50:28PM -0400, Ilia Mirkin wrote:<br>
> Ideally you'd give it a more descriptive name than "fdo14575". What is<br>
> it testing? Some sort of create/delete sequence?<br>
><br>
> On Thu, Apr 2, 2015 at 7:43 PM, Guy-Daniel Tiku <<a href="mailto:guydany37@gmail.com">guydany37@gmail.com</a>> wrote:<br>
> > ---<br>
> >  tests/bugs/CMakeLists.gl.txt                       |  1 -<br>
> >  tests/bugs/fdo14575.c                              | 88 ----------------------<br>
> >  .../arb_vertex_buffer_object/CMakeLists.gl.txt     |  1 +<br>
> >  tests/spec/arb_vertex_buffer_object/fdo14575.c     | 88 ++++++++++++++++++++++<br>
> >  4 files changed, 89 insertions(+), 89 deletions(-)<br>
> >  delete mode 100644 tests/bugs/fdo14575.c<br>
> >  create mode 100644 tests/spec/arb_vertex_buffer_object/fdo14575.c<br>
> ><br>
> > diff --git a/tests/bugs/CMakeLists.gl.txt b/tests/bugs/CMakeLists.gl.txt<br>
> > index e24ec6b..78bc2d3 100644<br>
> > --- a/tests/bugs/CMakeLists.gl.txt<br>
> > +++ b/tests/bugs/CMakeLists.gl.txt<br>
> > @@ -15,7 +15,6 @@ piglit_add_executable (crash-cubemap-order crash-cubemap-order.c)<br>
> >  piglit_add_executable (crash-texparameter-before-teximage crash-texparameter-before-teximage.c)<br>
> >  piglit_add_executable (drawbuffer-modes drawbuffer-modes.c)<br>
> >  piglit_add_executable (fdo10370 fdo10370.c)<br>
> > -piglit_add_executable (fdo14575 fdo14575.c)<br>
> >  piglit_add_executable (r300-readcache r300-readcache.c)<br>
> >  piglit_add_executable (tex1d-2dborder tex1d-2dborder.c)<br>
> >  piglit_add_executable (fdo20701 fdo20701.c)<br>
> > diff --git a/tests/bugs/fdo14575.c b/tests/bugs/fdo14575.c<br>
> > deleted file mode 100644<br>
> > index a6125dc..0000000<br>
> > --- a/tests/bugs/fdo14575.c<br>
> > +++ /dev/null<br>
> > @@ -1,88 +0,0 @@<br>
> > -/*<br>
> > - * Copyright © 2007 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 DEALINGS<br>
> > - * IN THE SOFTWARE.<br>
> > - *<br>
> > - * Authors:<br>
> > - *    Eric Anholt <<a href="mailto:eric@anholt.net">eric@anholt.net</a>><br>
> > - *<br>
> > - */<br>
> > -<br>
> > -/**<br>
> > - * @file fdo14575.c<br>
> > - *<br>
> > - * Tests that the driver doesn't fail when deleting a mapped buffer object.<br>
> > - */<br>
> > -#include "piglit-util-gl.h"<br>
> > -<br>
> > -PIGLIT_GL_TEST_CONFIG_BEGIN<br>
> > -<br>
> > -       config.supports_gl_compat_version = 10;<br>
> > -<br>
> > -       config.window_visual = PIGLIT_GL_VISUAL_RGB;<br>
> > -<br>
> > -PIGLIT_GL_TEST_CONFIG_END<br>
> > -<br>
> > -void<br>
> > -piglit_init(int argc, char**argv)<br>
> > -{<br>
> > -       GLfloat data = 1.0;<br>
> > -       GLfloat *v;<br>
> > -       GLuint buf;<br>
> > -<br>
> > -       piglit_require_extension("GL_ARB_vertex_buffer_object");<br>
> > -<br>
> > -       glGenBuffersARB(1, &buf);<br>
> > -<br>
> > -       /* First, do a normal buffer create/data/delete */<br>
> > -       glBindBufferARB(GL_ARRAY_BUFFER_ARB, buf);<br>
> > -       glBufferDataARB(GL_ARRAY_BUFFER_ARB, 4, &data, GL_STATIC_DRAW_ARB);<br>
> > -       glDeleteBuffersARB(1, &buf);<br>
> > -       if (!piglit_check_gl_error(GL_NO_ERROR))<br>
> > -               piglit_report_result(PIGLIT_FAIL);<br>
> > -<br>
> > -       /* Then, another normal path: create, map, write, unmap, delete */<br>
> > -       glBindBufferARB(GL_ARRAY_BUFFER_ARB, buf);<br>
> > -       glBufferDataARB(GL_ARRAY_BUFFER_ARB, 4, NULL, GL_STATIC_DRAW_ARB);<br>
> > -       v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB);<br>
> > -       *v = data;<br>
> > -       glUnmapBufferARB(GL_ARRAY_BUFFER_ARB);<br>
> > -       glDeleteBuffersARB(1, &buf);<br>
> > -       if (!piglit_check_gl_error(GL_NO_ERROR))<br>
> > -               piglit_report_result(PIGLIT_FAIL);<br>
> > -<br>
> > -       /* Then, do the failing path: create, map, delete */<br>
> > -       glBindBufferARB(GL_ARRAY_BUFFER_ARB, buf);<br>
> > -       glBufferDataARB(GL_ARRAY_BUFFER_ARB, 4, NULL, GL_STATIC_DRAW_ARB);<br>
> > -       v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB);<br>
> > -       *v = data;<br>
> > -       glDeleteBuffersARB(1, &buf);<br>
> > -       if (!piglit_check_gl_error(GL_NO_ERROR))<br>
> > -               piglit_report_result(PIGLIT_FAIL);<br>
> > -<br>
> > -       piglit_report_result(PIGLIT_PASS);<br>
> > -}<br>
> > -<br>
> > -enum piglit_result<br>
> > -piglit_display(void)<br>
> > -{<br>
> > -       /* Should never be reached */<br>
> > -       return PIGLIT_FAIL;<br>
> > -}<br>
> > diff --git a/tests/spec/arb_vertex_buffer_object/CMakeLists.gl.txt b/tests/spec/arb_vertex_buffer_object/CMakeLists.gl.txt<br>
> > index 6baaa19..a1c4c8e 100644<br>
> > --- a/tests/spec/arb_vertex_buffer_object/CMakeLists.gl.txt<br>
> > +++ b/tests/spec/arb_vertex_buffer_object/CMakeLists.gl.txt<br>
> > @@ -14,5 +14,6 @@ piglit_add_executable (arb_vertex_buffer_object-mixed-immediate-and-vbo mixed-im<br>
> >  piglit_add_executable (arb_vertex_buffer_object-ib-data-sync ib-data-sync.c)<br>
> >  piglit_add_executable (arb_vertex_buffer_object-ib-subdata-sync ib-subdata-sync.c)<br>
> >  piglit_add_executable (arb_vertex_buffer_object-vbo-subdata-many vbo-subdata-many.c)<br>
> > +piglit_add_executable (fdo14575 fdo14575.c)<br>
> ><br>
> >  # vim: ft=cmake:<br>
> > diff --git a/tests/spec/arb_vertex_buffer_object/fdo14575.c b/tests/spec/arb_vertex_buffer_object/fdo14575.c<br>
> > new file mode 100644<br>
> > index 0000000..a6125dc<br>
> > --- /dev/null<br>
> > +++ b/tests/spec/arb_vertex_buffer_object/fdo14575.c<br>
> > @@ -0,0 +1,88 @@<br>
> > +/*<br>
> > + * Copyright © 2007 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 DEALINGS<br>
> > + * IN THE SOFTWARE.<br>
> > + *<br>
> > + * Authors:<br>
> > + *    Eric Anholt <<a href="mailto:eric@anholt.net">eric@anholt.net</a>><br>
> > + *<br>
> > + */<br>
> > +<br>
> > +/**<br>
> > + * @file fdo14575.c<br>
> > + *<br>
> > + * Tests that the driver doesn't fail when deleting a mapped buffer object.<br>
> > + */<br>
> > +#include "piglit-util-gl.h"<br>
> > +<br>
> > +PIGLIT_GL_TEST_CONFIG_BEGIN<br>
> > +<br>
> > +       config.supports_gl_compat_version = 10;<br>
> > +<br>
> > +       config.window_visual = PIGLIT_GL_VISUAL_RGB;<br>
> > +<br>
> > +PIGLIT_GL_TEST_CONFIG_END<br>
> > +<br>
> > +void<br>
> > +piglit_init(int argc, char**argv)<br>
> > +{<br>
> > +       GLfloat data = 1.0;<br>
> > +       GLfloat *v;<br>
> > +       GLuint buf;<br>
> > +<br>
> > +       piglit_require_extension("GL_ARB_vertex_buffer_object");<br>
> > +<br>
> > +       glGenBuffersARB(1, &buf);<br>
> > +<br>
> > +       /* First, do a normal buffer create/data/delete */<br>
> > +       glBindBufferARB(GL_ARRAY_BUFFER_ARB, buf);<br>
> > +       glBufferDataARB(GL_ARRAY_BUFFER_ARB, 4, &data, GL_STATIC_DRAW_ARB);<br>
> > +       glDeleteBuffersARB(1, &buf);<br>
> > +       if (!piglit_check_gl_error(GL_NO_ERROR))<br>
> > +               piglit_report_result(PIGLIT_FAIL);<br>
> > +<br>
> > +       /* Then, another normal path: create, map, write, unmap, delete */<br>
> > +       glBindBufferARB(GL_ARRAY_BUFFER_ARB, buf);<br>
> > +       glBufferDataARB(GL_ARRAY_BUFFER_ARB, 4, NULL, GL_STATIC_DRAW_ARB);<br>
> > +       v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB);<br>
> > +       *v = data;<br>
> > +       glUnmapBufferARB(GL_ARRAY_BUFFER_ARB);<br>
> > +       glDeleteBuffersARB(1, &buf);<br>
> > +       if (!piglit_check_gl_error(GL_NO_ERROR))<br>
> > +               piglit_report_result(PIGLIT_FAIL);<br>
> > +<br>
> > +       /* Then, do the failing path: create, map, delete */<br>
> > +       glBindBufferARB(GL_ARRAY_BUFFER_ARB, buf);<br>
> > +       glBufferDataARB(GL_ARRAY_BUFFER_ARB, 4, NULL, GL_STATIC_DRAW_ARB);<br>
> > +       v = (GLfloat *) glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB);<br>
> > +       *v = data;<br>
> > +       glDeleteBuffersARB(1, &buf);<br>
> > +       if (!piglit_check_gl_error(GL_NO_ERROR))<br>
> > +               piglit_report_result(PIGLIT_FAIL);<br>
> > +<br>
> > +       piglit_report_result(PIGLIT_PASS);<br>
> > +}<br>
> > +<br>
> > +enum piglit_result<br>
> > +piglit_display(void)<br>
> > +{<br>
> > +       /* Should never be reached */<br>
> > +       return PIGLIT_FAIL;<br>
> > +}<br>
> > --<br>
> > 2.1.0<br>
> ><br>
> > _______________________________________________<br>
> > Piglit mailing list<br>
> > <a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
> > <a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
> _______________________________________________<br>
> Piglit mailing list<br>
> <a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</div></div></blockquote></div><br></div>