<br><br>On Sunday, March 15, 2015, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Mar 15, 2015 at 9:28 PM, Aditya Avinash<br>
<<a href="javascript:;" onclick="_e(event, 'cvml', 'adityaavinash1@gmail.com')">adityaavinash1@gmail.com</a>> wrote:<br>
> On Sunday, March 15, 2015, Ilia Mirkin <<a href="javascript:;" onclick="_e(event, 'cvml', 'imirkin@alum.mit.edu')">imirkin@alum.mit.edu</a>> wrote:<br>
>><br>
>> On Sun, Mar 15, 2015 at 12:10 AM, Aditya Atluri<br>
>> <<a href="javascript:;" onclick="_e(event, 'cvml', 'adityaavinash1@gmail.com')">adityaavinash1@gmail.com</a>> wrote:<br>
>> > ---<br>
>> ><br>
>> > The tests pass on AMD proprietary drivers but,<br>
>> > fails on NVIDIA cards at offset alignment (32 only)<br>
>> ><br>
>> >  tests/all.py                                       |  5 ++<br>
>> >  tests/spec/CMakeLists.txt                          |  1 +<br>
>> >  .../CMakeLists.gl.txt                              | 15 +++++<br>
>> >  .../CMakeLists.txt                                 |  1 +<br>
>> >  .../spec/arb_shader_storage_buffer_object/minmax.c | 67<br>
>> > ++++++++++++++++++++++<br>
>> >  5 files changed, 89 insertions(+)<br>
>> >  create mode 100644<br>
>> > tests/spec/arb_shader_storage_buffer_object/CMakeLists.gl.txt<br>
>> >  create mode 100644<br>
>> > 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..02d8c13 100644<br>
>> > --- a/tests/all.py<br>
>> > +++ b/tests/all.py<br>
>> > @@ -3963,6 +3963,11 @@ with profile.group_manager(<br>
>> >        grouptools.join('compiler', 'work_group_size_too_large'))<br>
>> ><br>
>> >  with profile.group_manager(<br>
>> > +               PiglitGLTest,<br>
>> > +               grouptools.join('spec',<br>
>> > 'arb_shader_storage_buffer_object')) as g:<br>
>> > +       g(['arb_shader_storage_buffer_object-minmax'], 'minmax')<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>
>> > 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<br>
>> > a/tests/spec/arb_shader_storage_buffer_object/CMakeLists.gl.txt<br>
>> > b/tests/spec/arb_shader_storage_buffer_object/CMakeLists.gl.txt<br>
>> > new file mode 100644<br>
>> > index 0000000..d2a9d87<br>
>> > --- /dev/null<br>
>> > +++ b/tests/spec/arb_shader_storage_buffer_object/CMakeLists.gl.txt<br>
>> > @@ -0,0 +1,15 @@<br>
>> > +include_directories(<br>
>> > +       ${GLEXT_INCLUDE_DIR}<br>
>> > +       ${OPENGL_INCLUDE_PATH}<br>
>> > +       ${piglit_SOURCE_DIR}/tests/util<br>
>> > +)<br>
>> > +<br>
>> > +link_libraries (<br>
>> > +       piglitutil_${piglit_target_api}<br>
>> > +       ${OPENGL_gl_LIBRARY}<br>
>> > +       ${OPENGL_glu_LIBRARY}<br>
>> > +)<br>
>> > +<br>
>> > +piglit_add_executable (arb_shader_storage_buffer_object-minmax<br>
>> > minmax.c)<br>
>> > +<br>
>> > +# vim: ft=cmake:<br>
>> > diff --git a/tests/spec/arb_shader_storage_buffer_object/CMakeLists.txt<br>
>> > 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<br>
>> > b/tests/spec/arb_shader_storage_buffer_object/minmax.c<br>
>> > new file mode 100644<br>
>> > index 0000000..0e27b04<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="javascript:;" onclick="_e(event, 'cvml', 'adityaavinash1@gmail.com')">adityaavinash1@gmail.com</a>><br>
>> > + *<br>
>> > + * Permission is hereby granted, free of charge, to any person<br>
>> > obtaining a<br>
>> > + * copy of this software and associated documentation files (the<br>
>> > "Software"),<br>
>> > + * to deal in the Software without restriction, including without<br>
>> > limitation<br>
>> > + * the rights to use, copy, modify, merge, publish, distribute,<br>
>> > sublicense,<br>
>> > + * and/or sell copies of the Software, and to permit persons to whom<br>
>> > 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<br>
>> > next<br>
>> > + * paragraph) shall be included in all copies or substantial portions<br>
>> > of the<br>
>> > + * Software.<br>
>> > + *<br>
>> > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,<br>
>> > EXPRESS OR<br>
>> > + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF<br>
>> > MERCHANTABILITY,<br>
>> > + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT<br>
>> > SHALL<br>
>> > + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR<br>
>> > OTHER<br>
>> > + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,<br>
>> > 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>
>> > +#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 = 43;<br>
>><br>
>> According to the spec:<br>
>><br>
>>     OpenGL 4.0 (either core or compatibility profile) is required.<br>
>><br>
>> TBH I'm not sure why that is, but not _too_ much harm in requiring it,<br>
>> I guess. Either way, your gl_core_version needs to be 40, not 43.<br>
><br>
><br>
> I searched 4.0 spec doc for it and did not find it. So, I used different<br>
> version for core<br>
<br>
Nor is there any reason why you would expect to see anything about<br>
this extension in the 4.0 spec. However the extension spec specifies<br>
4.0 as a minimum, so that's what you should put there.<br>
<br></blockquote><div>Gotcha! Cool. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
><br>
> Do you want me to change it?<br>
<br>
Yes.</blockquote><div>Sure<span></span> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
  -ilia<br>
</blockquote><br><br>-- <br><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><br>