<div dir="ltr">Thank you!! :)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 2:33 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"><span class="">On Mon, Mar 16, 2015 at 2:10 PM, Aditya Atluri <<a href="mailto:adityaavinash1@gmail.com">adityaavinash1@gmail.com</a>> wrote:<br>
> ---<br>
> v2: - changed gl_core to 40, removed whitespace,<br>
>       changed min test to max test for offset of alignment,<br>
>       changed block size to 2^27 (Ilia)<br>
> v3: - removed link library glu,<br>
>       removed include libraries in tests/util,<br>
>       changed block size back to 2^27,<br>
>       added run_concurrent=True in all.py<br>
<br>
</span>FYI, it's customary to include the version in the subject, e.g.<br>
<br>
[PATCH v3] bla bla bla<br>
<br>
git format-patch -v3<br>
<br>
will do that for you automatically.<br>
<div><div class="h5"><br>
><br>
>  tests/all.py                                       |  5 ++<br>
>  tests/spec/CMakeLists.txt                          |  1 +<br>
>  .../CMakeLists.gl.txt                              | 13 +++++<br>
>  .../CMakeLists.txt                                 |  1 +<br>
>  .../spec/arb_shader_storage_buffer_object/minmax.c | 67 ++++++++++++++++++++++<br>
>  5 files changed, 87 insertions(+)<br>
>  create mode 100644 tests/spec/arb_shader_storage_buffer_object/CMakeLists.gl.txt<br>
>  create mode 100644 tests/spec/arb_shader_storage_buffer_object/CMakeLists.txt<br>
>  create mode 100644 tests/spec/arb_shader_storage_buffer_object/minmax.c<br>
><br>
> diff --git a/tests/all.py b/tests/all.py<br>
> index 1c3c889..2ddcdeb 100644<br>
> --- a/tests/all.py<br>
> +++ b/tests/all.py<br>
> @@ -3964,6 +3964,11 @@ with profile.group_manager(<br>
><br>
>  with profile.group_manager(<br>
>          PiglitGLTest,<br>
> +        grouptools.join('spec', 'arb_shader_storage_buffer_object')) as g:<br>
> +    g(['arb_shader_storage_buffer_object-minmax'], run_concurrent=True)<br>
> +<br>
> +with profile.group_manager(<br>
> +        PiglitGLTest,<br>
>          grouptools.join('spec', 'ext_polygon_offset_clamp')) as g:<br>
>      g(['ext_polygon_offset_clamp-draw'], run_concurrent=True)<br>
>      g(['ext_polygon_offset_clamp-dlist'], run_concurrent=True)<br>
> diff --git a/tests/spec/CMakeLists.txt b/tests/spec/CMakeLists.txt<br>
> index 7423589..a680c1b 100644<br>
> --- a/tests/spec/CMakeLists.txt<br>
> +++ b/tests/spec/CMakeLists.txt<br>
> @@ -84,6 +84,7 @@ add_subdirectory (arb_vertex_array_bgra)<br>
>  add_subdirectory (arb_vertex_buffer_object)<br>
>  add_subdirectory (arb_vertex_program)<br>
>  add_subdirectory (arb_copy_buffer)<br>
> +add_subdirectory (arb_shader_storage_buffer_object)<br>
>  add_subdirectory (glsl-1.10)<br>
>  add_subdirectory (glsl-1.20)<br>
>  add_subdirectory (glsl-1.30)<br>
> diff --git a/tests/spec/arb_shader_storage_buffer_object/CMakeLists.gl.txt b/tests/spec/arb_shader_storage_buffer_object/CMakeLists.gl.txt<br>
> new file mode 100644<br>
> index 0000000..d0ba641<br>
> --- /dev/null<br>
> +++ b/tests/spec/arb_shader_storage_buffer_object/CMakeLists.gl.txt<br>
> @@ -0,0 +1,13 @@<br>
> +include_directories(<br>
> +       ${GLEXT_INCLUDE_DIR}<br>
> +       ${OPENGL_INCLUDE_PATH}<br>
> +)<br>
> +<br>
> +link_libraries (<br>
> +       piglitutil_${piglit_target_api}<br>
> +       ${OPENGL_gl_LIBRARY}<br>
> +)<br>
> +<br>
> +piglit_add_executable (arb_shader_storage_buffer_object-minmax minmax.c)<br>
> +<br>
> +# vim: ft=cmake:<br>
> diff --git a/tests/spec/arb_shader_storage_buffer_object/CMakeLists.txt b/tests/spec/arb_shader_storage_buffer_object/CMakeLists.txt<br>
> new file mode 100644<br>
> index 0000000..144a306<br>
> --- /dev/null<br>
> +++ b/tests/spec/arb_shader_storage_buffer_object/CMakeLists.txt<br>
> @@ -0,0 +1 @@<br>
> +piglit_include_target_api()<br>
> diff --git a/tests/spec/arb_shader_storage_buffer_object/minmax.c b/tests/spec/arb_shader_storage_buffer_object/minmax.c<br>
> new file mode 100644<br>
> index 0000000..7c53db6<br>
> --- /dev/null<br>
> +++ b/tests/spec/arb_shader_storage_buffer_object/minmax.c<br>
> @@ -0,0 +1,67 @@<br>
> +/*<br>
> + * Copyright © 2015 Aditya Atluri <<a href="mailto:adityaavinash1@gmail.com">adityaavinash1@gmail.com</a>><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<br>
> + *<br>
> + * Test for the minimum maximum values specified in the<br>
> + * ARB_shader_storage_buffer_object.<br>
<br>
</div></div>Needs the word 'spec' in there. Anyways, I can add this when I push.<br>
<br>
Reviewed-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>><br>
<br>
Going to leave it for a little while in case others have feedback.<br>
<div><div class="h5"><br>
> + */<br>
> +#include "piglit-util-gl.h"<br>
> +#include "minmax-test.h"<br>
> +<br>
> +PIGLIT_GL_TEST_CONFIG_BEGIN<br>
> +<br>
> +       config.supports_gl_compat_version = 40;<br>
> +       config.supports_gl_core_version = 40;<br>
> +<br>
> +PIGLIT_GL_TEST_CONFIG_END<br>
> +<br>
> +enum piglit_result<br>
> +piglit_display(void)<br>
> +{<br>
> +       /* UNREACHED */<br>
> +       return PIGLIT_FAIL;<br>
> +}<br>
> +<br>
> +void<br>
> +piglit_init(int argc, char **argv)<br>
> +{<br>
> +       piglit_require_extension("GL_ARB_shader_storage_buffer_object");<br>
> +       piglit_print_minmax_header();<br>
> +<br>
> +       piglit_test_min_int(GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS, 0);<br>
> +       piglit_test_min_int(GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS, 0);<br>
> +       piglit_test_min_int(GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS, 0);<br>
> +       piglit_test_min_int(GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS, 0);<br>
> +       piglit_test_min_int(GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS, 8);<br>
> +       piglit_test_min_int(GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS, 8);<br>
> +       piglit_test_min_int(GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS, 8);<br>
> +       piglit_test_min_int(GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS, 8);<br>
> +       piglit_test_min_int64(GL_MAX_SHADER_STORAGE_BLOCK_SIZE, 16777216); // 2^24<br>
> +       piglit_test_max_int(GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT, 256);<br>
> +       piglit_test_min_int(GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES, 8);<br>
> +<br>
> +       if (!piglit_check_gl_error(GL_NO_ERROR))<br>
> +               piglit_report_result(PIGLIT_FAIL);<br>
> +       piglit_report_result(piglit_minmax_pass ? PIGLIT_PASS : PIGLIT_FAIL);<br>
> +}<br>
> --<br>
> 1.9.1<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><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><font style="font-family:trebuchet ms,sans-serif">Regards,<br></font></div><font style="font-family:trebuchet ms,sans-serif"><b style="background-color:rgb(255,255,255);color:rgb(0,0,153)">Aditya Atluri,<br></b></font></div><div><font style="font-family:trebuchet ms,sans-serif"><b style="background-color:rgb(255,255,255);color:rgb(0,0,153)">USA.<br></b></font></div><font style="font-family:trebuchet ms,sans-serif"><b style="background-color:rgb(255,255,255);color:rgb(0,0,153)"></b><span style="background-color:rgb(255,255,255);color:rgb(0,0,153)"></span></font><br></div></div>
</div>