<div dir="ltr">Yes, good catch.  I found and fixed that during my giant rebase onto master today: <a href="http://cgit.freedesktop.org/~ldeks/piglit/commit/tests?h=adsa-framebuffers&id=5469858ff858c5b811ebbf2af0e5a63e600daa92">http://cgit.freedesktop.org/~ldeks/piglit/commit/tests?h=adsa-framebuffers&id=5469858ff858c5b811ebbf2af0e5a63e600daa92</a>.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 6, 2015 at 10:47 AM, 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">Shouldn't this be added to all.py?<br>
<div><div class="h5"><br>
On Thu, Mar 05, 2015 at 06:01:11PM -0800, Laura Ekstrand wrote:<br>
> ---<br>
>  .../arb_direct_state_access/create-framebuffers.c  | 76 ++++++++++++++++++++++<br>
>  1 file changed, 76 insertions(+)<br>
>  create mode 100644 tests/spec/arb_direct_state_access/create-framebuffers.c<br>
><br>
> diff --git a/tests/spec/arb_direct_state_access/create-framebuffers.c b/tests/spec/arb_direct_state_access/create-framebuffers.c<br>
> new file mode 100644<br>
> index 0000000..97ba454<br>
> --- /dev/null<br>
> +++ b/tests/spec/arb_direct_state_access/create-framebuffers.c<br>
> @@ -0,0 +1,76 @@<br>
> +/*<br>
> + * Copyright 2015 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>
> +/** @file create_framebuffers.c<br>
> + *<br>
> + * Tests glCreateFramebuffers to see if it behaves in the expected way,<br>
> + * throwing the correct errors, etc.<br>
> + */<br>
> +<br>
> +#include "piglit-util-gl.h"<br>
> +#include "dsa-utils.h"<br>
> +<br>
> +PIGLIT_GL_TEST_CONFIG_BEGIN<br>
> +<br>
> +     config.supports_gl_core_version = 32;<br>
> +<br>
> +     config.window_visual = PIGLIT_GL_VISUAL_RGBA |<br>
> +             PIGLIT_GL_VISUAL_DOUBLE;<br>
> +<br>
> +PIGLIT_GL_TEST_CONFIG_END<br>
> +<br>
> +void<br>
> +piglit_init(int argc, char **argv)<br>
> +{<br>
> +     piglit_require_extension("GL_ARB_direct_state_access");<br>
> +}<br>
> +<br>
> +enum piglit_result<br>
> +piglit_display(void)<br>
> +{<br>
> +     bool pass = true;<br>
> +     GLuint name;<br>
> +<br>
> +     /* Throw some invalid inputs at glCreateFramebuffers. */<br>
> +<br>
> +     /* n is negative */<br>
> +     glCreateFramebuffers(-1, &name);<br>
> +     SUBTEST(GL_INVALID_VALUE, pass, "n < 0");<br>
> +<br>
> +     /* name is not a valid pointer */<br>
> +     glCreateFramebuffers(1, NULL);<br>
> +     SUBTEST(GL_NO_ERROR, pass, "framebuffers = NULL");<br>
> +<br>
> +<br>
> +     /* Check if it actually generates a real framebuffer object */<br>
> +<br>
> +     glCreateFramebuffers(1, &name);<br>
> +     pass = piglit_check_gl_error(GL_NO_ERROR) && pass;<br>
> +     SUBTESTCONDITION((bool) glIsFramebuffer(name), pass,<br>
> +                      "IsFramebuffer()");<br>
> +<br>
> +     glDeleteFramebuffers(1, &name);<br>
> +<br>
> +     return pass ? PIGLIT_PASS : PIGLIT_FAIL;<br>
> +}<br>
> +<br>
> --<br>
> 2.1.0<br>
><br>
</div></div>> _______________________________________________<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>
</blockquote></div><br></div>