<div dir="ltr"><div>I've pushed the two patches Ian reviewed.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 17, 2015 at 3:35 AM, Erik Faye-Lund <span dir="ltr"><<a href="mailto:kusmabite@gmail.com" target="_blank">kusmabite@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How do I get this series (minus patch 2/3) applied?<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Aug 25, 2015 at 3:46 PM, Ian Romanick <<a href="mailto:idr@freedesktop.org">idr@freedesktop.org</a>> wrote:<br>
> This patch is<br>
><br>
> Reviewed-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
><br>
> On 08/24/2015 09:38 PM, Erik Faye-Lund wrote:<br>
>> The OpenGL 1.0 legacy formats 1, 2, 3 and 4 are not supposed to<br>
>> be supported for glCopyTexImage. So let's verify that they aren't<br>
>> accepted.<br>
>><br>
>> Signed-off-by: Erik Faye-Lund <<a href="mailto:kusmabite@gmail.com">kusmabite@gmail.com</a>><br>
>> ---<br>
>>  tests/texturing/copyteximage.c | 51 ++++++++++++++++++++++++++++++++++++++++++<br>
>>  1 file changed, 51 insertions(+)<br>
>><br>
>> diff --git a/tests/texturing/copyteximage.c b/tests/texturing/copyteximage.c<br>
>> index e7e79c7..52a7254 100644<br>
>> --- a/tests/texturing/copyteximage.c<br>
>> +++ b/tests/texturing/copyteximage.c<br>
>> @@ -575,6 +575,7 @@ create_texture(GLenum target)<br>
>>  enum piglit_result<br>
>>  piglit_display(void)<br>
>>  {<br>
>> +     GLint format;<br>
>>       GLuint tex;<br>
>>       GLboolean pass = GL_TRUE;<br>
>>       const GLfloat *expected;<br>
>> @@ -614,6 +615,56 @@ piglit_display(void)<br>
>>                       }<br>
>>               }<br>
>><br>
>> +             /* Test that internalformats 1, 2, 3 and 4 are not accepted<br>
>> +              * as OpenGL 1.0 backwards-compatible aliases.<br>
>> +              *<br>
>> +              * The OpenGL 1.1 spec, section 3.8 ('Texturing') says the<br>
>> +              * the following about glCopyTexImage2D (and similar for<br>
>> +              * glCopyTexImage1D):<br>
>> +              *<br>
>> +              * Parameters level, internalformat, and border are specified<br>
>> +              * using the same values, with the same meanings, as the<br>
>> +              * equivalent arguments of TexImage2D, except that<br>
>> +              * internalformat may not be specified as 1, 2, 3, or 4.<br>
>> +              */<br>
>> +             for (format = 1; format <= 4; ++format) {<br>
>> +                     switch (target[j].target) {<br>
>> +                     case GL_TEXTURE_1D:<br>
>> +                     case GL_TEXTURE_1D_ARRAY:<br>
>> +                             glCopyTexImage1D(target[j].target, 0,<br>
>> +                                              format,<br>
>> +                                              0, 0, IMAGE_SIZE, 0);<br>
>> +                             pass = piglit_check_gl_error(GL_INVALID_ENUM) && pass;<br>
>> +                             break;<br>
>> +<br>
>> +                     case GL_TEXTURE_2D:<br>
>> +                     case GL_TEXTURE_2D_ARRAY:<br>
>> +                     case GL_TEXTURE_RECTANGLE:<br>
>> +                             glCopyTexImage2D(target[j].target, 0, format,<br>
>> +                                              0, 0, IMAGE_SIZE, IMAGE_SIZE,<br>
>> +                                              0);<br>
>> +                             pass = piglit_check_gl_error(GL_INVALID_ENUM) && pass;<br>
>> +                             break;<br>
>> +<br>
>> +                     case GL_TEXTURE_CUBE_MAP:<br>
>> +                             for (i = 0; i < 6; i++) {<br>
>> +                                     glCopyTexImage2D(cube_face_targets[i],<br>
>> +                                                      0, format, 0, 0,<br>
>> +                                                      IMAGE_SIZE,<br>
>> +                                                      IMAGE_SIZE, 0);<br>
>> +                                     pass = piglit_check_gl_error(GL_INVALID_ENUM) && pass;<br>
>> +                             }<br>
>> +                             break;<br>
>> +<br>
>> +                     case GL_TEXTURE_3D:<br>
>> +                             /* There is no glCopyTexImage3D, and<br>
>> +                              * glCopyTexSubImage3D does not take an<br>
>> +                              * internalformat argument<br>
>> +                                 */<br>
>> +                             continue;<br>
>> +                     }<br>
>> +             }<br>
>> +<br>
>>               glDeleteTextures(1, &tex);<br>
>>       }<br>
>>       if (!piglit_automatic)<br>
>><br>
><br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</div></div></blockquote></div><br></div>