<div dir="ltr">I've added a viewport_array-rc2 branch to my github repository with updates from the feedback so far. Also includes a commit from Ian to Add varying slot for viewport index.<div><br></div><div>Courtney</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 3:51 PM, Courtney Goeltzenleuchter <span dir="ltr"><<a href="mailto:courtney@lunarg.com" target="_blank">courtney@lunarg.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Got it.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Nov 22, 2013 at 2:55 PM, Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>It's just that last block that were messed up -- rest was context.<br><br></div>Sorry for any confusion.<br>

</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 23, 2013 at 10:06 AM, Courtney Goeltzenleuchter <span dir="ltr"><<a href="mailto:courtney@lunarg.com" target="_blank">courtney@lunarg.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Chris,<div><br></div><div>I'm using this version of the spec: <a href="http://www.opengl.org/registry/specs/ARB/viewport_array.txt" target="_blank">http://www.opengl.org/registry/specs/ARB/viewport_array.txt</a></div>



<div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Nov 21, 2013 at 4:41 PM, Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">I was just comparing to the list in the ARB_viewport_array spec.<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 11:33 AM, Courtney Goeltzenleuchter <span dir="ltr"><<a href="mailto:courtney@lunarg.com" target="_blank">courtney@lunarg.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Chris,<div><br></div><div>Where are you getting your defines?</div>



<div>I copied them from include/GL/gl.h</div>
<div>#define GL_VIEWPORT<span style="white-space:pre-wrap">                               </span>0x0BA2<br></div><div>
<div>/* Scissor box */</div><div>#define GL_SCISSOR_BOX<span style="white-space:pre-wrap">                            </span>0x0C10</div><div>#define GL_SCISSOR_TEST<span style="white-space:pre-wrap">                            </span>0x0C11<br></div><div>#define GL_SCISSOR_TEST<span style="white-space:pre-wrap">                          </span>0x0C11</div>





</div><div>#define GL_DEPTH_RANGE<span style="white-space:pre-wrap">                                </span>0x0B70<br></div><div><br></div><div>Ah, FIRST_VERTEX looks different.</div><div>#define GL_FIRST_VERTEX_CONVENTION        0x8E4D<br></div>
<div><br></div><div>I'll add PROVOKING_VERTEX</div><div><br></div><div>Looks like UNDEFINED_VERTEX was wrong as well.</div><div>(include/GL/glext.h) #define GL_UNDEFINED_VERTEX               0x8260<br></div><div><br>




</div>
<div class="gmail_extra">I was modelling one of the other extension xml files and they had similar defines, though I could see no effect including or excluding them.</div><div class="gmail_extra"><br></div><div class="gmail_extra">





Should I just get rid of the definitions for values that already exist in gl.h or glext.h?</div><span><font color="#888888"><div class="gmail_extra"><br></div></font></span><div class="gmail_extra"><span><font color="#888888">Courtney</font></span><div>




<div><br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 1:00 PM, Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I'm surprised the build system accepts the conflicting second definition of SCISSOR_BOX at all, actually -- that's weird.<br>





</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 8:55 AM, Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</a>></span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I mean some of the values don't match the spec :)<br>



</div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 7:52 AM, Courtney Goeltzenleuchter <span dir="ltr"><<a href="mailto:courtney@lunarg.com" target="_blank">courtney@lunarg.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">



<div>On Wed, Nov 20, 2013 at 7:28 PM, Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Oops -- the 8E4E is obviously correct. Artifact of me switching how I<br>




was commenting halfway through.<br>
<div><div><br>
On Thu, Nov 21, 2013 at 3:25 PM, Chris Forbes <<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</a>> wrote:<br>
> These are bogus:<br>
><br>
> +    <enum name="SCISSOR_BOX" value="0x0C10"/><br>
> +    <enum name="VIEWPORT" value="0x0BA2"/><br>
> +    <enum name="DEPTH_RANGE" value="0x0B70"/><br>
> +    <enum name="SCISSOR_TEST" value="0x0C11"/><br>
> +    <enum name="FIRST_VERTEX_CONVENTION" value="0x0C10"/><br></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote>



</div></div></div></div></div></blockquote></div></div></div></div></blockquote><div><br></div></div></div><div>In the spec I'm using I see:</div><pre style="white-space:pre-wrap;word-wrap:break-word">New Tokens

    Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
    GetDoublev and GetInteger64v:

        MAX_VIEWPORTS                                   0x825B
        VIEWPORT_SUBPIXEL_BITS                          0x825C
        VIEWPORT_BOUNDS_RANGE                           0x825D
        LAYER_PROVOKING_VERTEX                          0x825E
        VIEWPORT_INDEX_PROVOKING_VERTEX                 0x825F

    Accepted by the <pname> parameter of GetIntegeri_v:

        <b>SCISSOR_BOX                                     0x0C10</b>

    Accepted by the <pname> parameter of GetFloati_v:

        <b>VIEWPORT                                        0x0BA2</b>

    Accepted by the <pname> parameter of GetDoublei_v:

        <b>DEPTH_RANGE                                     0x0B70</b>

    Accepted by the <pname> parameter of Enablei, Disablei, and IsEnabledi:

        <b>SCISSOR_TEST                                    0x0C11</b>
<br></pre><pre style="white-space:pre-wrap;word-wrap:break-word">Thus my confusion regarding "bogus" values.</pre><pre style="white-space:pre-wrap;word-wrap:break-word">    Returned in the <data> parameter from a Get query with a <pname> of
    LAYER_PROVOKING_VERTEX or VIEWPORT_INDEX_PROVOKING_VERTEX:

        FIRST_VERTEX_CONVENTION                         0x8E4D
        LAST_VERTEX_CONVENTION                          0x8E4E
        PROVOKING_VERTEX                                0x8E4F
        UNDEFINED_VERTEX                                0x8260</pre><div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div dir="ltr"><div class="gmail_extra"><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div><div></div></div></blockquote><div><br></div></div><div>What do you mean by "bogus"?</div><div>I was emulating other extension xml files. Are these not needed because they are already defined in gl_ext.h?</div>







<div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>
><br>
> 0x8E4D<br>
><br>
> +    <enum name="LAST_VERTEX_CONVENTION" value="0x8E4E"/><br>
><br>
> 0x8E4E<br>
><br>
> add: <enum name="PROVOKING_VERTEX" value="0x8E4F"/><br>
><br>
> +    <enum name="UNDEFINED_VERTEX" value="0x8E4F"/><br>
><br>
> 0x8260<br>
</div></div></blockquote></div></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Courtney Goeltzenleuchter<br><div>LunarG</div><div><img height="65" width="96"><br>


</div></div>
</font></span></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Courtney Goeltzenleuchter<br><div>LunarG</div><div><img height="65" width="96"><br>

</div></div>
</div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div></div><div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Courtney Goeltzenleuchter<br><div>LunarG</div><div><img height="65" width="96"><br>

</div></div>
</div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Courtney Goeltzenleuchter<br><div>LunarG</div><div><img src="http://media.lunarg.com/wp-content/themes/LunarG/images/logo.png" width="96" height="65"><br>

</div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Courtney Goeltzenleuchter<br><div>LunarG</div><div><img src="http://media.lunarg.com/wp-content/themes/LunarG/images/logo.png" width="96" height="65"><br>
</div></div>
</div>