<div dir="ltr">Yes, sorry, that one slipped my radar.  (Although somehow it tested on my Ivybridge just fine :/)  Here's the fixed one: <a href="http://cgit.freedesktop.org/~ldeks/piglit/commit/?h=adsa-framebuffers&id=538aafe3db4838846ffc2e7cf926b7624d08da1c">http://cgit.freedesktop.org/~ldeks/piglit/commit/?h=adsa-framebuffers&id=538aafe3db4838846ffc2e7cf926b7624d08da1c</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 4, 2015 at 5:48 PM, Ilia Mirkin <span dir="ltr"><<a href="mailto:imirkin@alum.mit.edu" target="_blank">imirkin@alum.mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Mar 4, 2015 at 8:38 PM, Laura Ekstrand <<a href="mailto:laura@jlekstrand.net">laura@jlekstrand.net</a>> wrote:<br>
> ---<br>
>  tests/all.py                                       |  1 +<br>
>  .../spec/arb_direct_state_access/CMakeLists.gl.txt |  1 +<br>
>  .../spec/arb_direct_state_access/create-buffers.c  | 78 ++++++++++++++++++++++<br>
>  3 files changed, 80 insertions(+)<br>
>  create mode 100644 tests/spec/arb_direct_state_access/create-buffers.c<br>
><br>
> diff --git a/tests/all.py b/tests/all.py<br>
> index 0f07105..e60a02c 100644<br>
> --- a/tests/all.py<br>
> +++ b/tests/all.py<br>
> @@ -4006,6 +4006,7 @@ spec['ARB_direct_state_access']['compressedtexturesubimage'] = PiglitGLTest(['ar<br>
>  spec['ARB_direct_state_access']['texture-storage-multisample'] = PiglitGLTest(['arb_direct_state_access-texture-storage-multisample'], run_concurrent=True)<br>
>  spec['ARB_direct_state_access']['texture-buffer'] = PiglitGLTest(['arb_direct_state_access-texture-buffer'], run_concurrent=True)<br>
>  spec['ARB_direct_state_access']['texture-buffer-range'] = PiglitGLTest(['arb_direct_state_access-texture-buffer-range'], run_concurrent=True)<br>
> +spec['ARB_direct_state_access']['create-buffers'] = PiglitGLTest(['arb_direct_state_access-create-buffers'], run_concurrent=True)<br>
>  spec['ARB_direct_state_access']['namedbufferstorage-persistent'] = PiglitGLTest(['arb_direct_state_access-namedbufferstorage-persistent'], run_concurrent=True)<br>
>  spec['ARB_direct_state_access']['namedbuffersubdata-vbo-sync'] = PiglitGLTest(['arb_direct_state_access-namedbuffersubdata-vbo-sync'], run_concurrent=True)<br>
>  spec['ARB_direct_state_access']['clearnamedbufferdata-invalid-internal-format'] = PiglitGLTest(['arb_direct_state_access-clearnamedbufferdata-invalid-internal-format'], run_concurrent=True)<br>
> diff --git a/tests/spec/arb_direct_state_access/CMakeLists.gl.txt b/tests/spec/arb_direct_state_access/CMakeLists.gl.txt<br>
> index b2b7465..2a4915d 100644<br>
> --- a/tests/spec/arb_direct_state_access/CMakeLists.gl.txt<br>
> +++ b/tests/spec/arb_direct_state_access/CMakeLists.gl.txt<br>
> @@ -10,6 +10,7 @@ link_libraries (<br>
>  )<br>
><br>
>  piglit_add_executable (arb_direct_state_access-create-transformfeedbacks create-transformfeedbacks.c)<br>
> +piglit_add_executable (arb_direct_state_access-create-buffers create-buffers.c)<br>
>  piglit_add_executable (arb_direct_state_access-namedbufferstorage-persistent namedbufferstorage.c)<br>
>  piglit_add_executable (arb_direct_state_access-namedbuffersubdata-vbo-sync namedbuffersubdata-vbo-sync.c)<br>
>  piglit_add_executable (arb_direct_state_access-clearnamedbufferdata-invalid-internal-format clearnamedbufferdata-invalid-internal-format.c)<br>
> diff --git a/tests/spec/arb_direct_state_access/create-buffers.c b/tests/spec/arb_direct_state_access/create-buffers.c<br>
> new file mode 100644<br>
> index 0000000..12fcf0b<br>
> --- /dev/null<br>
> +++ b/tests/spec/arb_direct_state_access/create-buffers.c<br>
> @@ -0,0 +1,78 @@<br>
> +/*<br>
> + * Copyright 2014 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_buffers.c<br>
> + *<br>
> + * Tests glCreateBuffers to see if it behaves in the expected way,<br>
> + * throwing the correct errors, etc.<br>
> + */<br>
> +<br>
> +#include "piglit-util-gl.h"<br>
> +<br>
> +PIGLIT_GL_TEST_CONFIG_BEGIN<br>
> +<br>
> +       config.supports_gl_compat_version = 32;<br>
<br>
</div></div>This will never run on mesa, right? I assume you meant<br>
<br>
supports_gl_core_version = 31 (or 32?)<br>
<div><div class="h5"><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>
> +       GLboolean ret;<br>
> +<br>
> +       /* Throw some invalid inputs at glCreateBuffers. */<br>
> +<br>
> +       /* n is negative */<br>
> +       glCreateBuffers(-1, &name);<br>
> +       pass = piglit_check_gl_error(GL_INVALID_VALUE) && pass;<br>
> +<br>
> +       /* name is not a valid pointer */<br>
> +       glCreateBuffers(1, 0);<br>
> +       pass = piglit_check_gl_error(GL_NO_ERROR) && pass;<br>
> +       glCreateBuffers(1, NULL);<br>
> +       pass = piglit_check_gl_error(GL_NO_ERROR) && pass;<br>
> +<br>
> +<br>
> +       /* Check if it actually generates a real buffer object */<br>
> +<br>
> +       glCreateBuffers(1, &name);<br>
> +       pass = piglit_check_gl_error(GL_NO_ERROR) && pass;<br>
> +<br>
> +       ret = glIsBuffer(name);<br>
> +       pass = (ret == GL_TRUE) && pass;<br>
> +       pass = piglit_check_gl_error(GL_NO_ERROR) && pass;<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>