[Piglit] [PATCH 1/3] Set config.requires_displayed_window in tests that use front buffers.

Paul Berry stereotype441 at gmail.com
Tue Jun 4 09:31:04 PDT 2013


On 3 June 2013 15:52, Chad Versace <chad.versace at linux.intel.com> wrote:

> On 05/31/2013 12:50 PM, Paul Berry wrote:
>
>> When running tests with a non-composited window manager, it isn't safe
>> to access the front buffer until after the window is shown.  This
>> patch sets config.requires_displayed_**window in tests that access front
>> buffers, to make sure that the piglit framework exposes the window,
>> even when testing in "-auto" mode.
>> ---
>>   tests/bugs/drawbuffer-modes.c | 1 +
>>   tests/fbo/fbo-sys-blit.c      | 1 +
>>   tests/fbo/fbo-sys-sub-blit.c  | 1 +
>>   tests/general/masked-clear.c  | 1 +
>>   4 files changed, 4 insertions(+)
>>
>
>
>
>
>
>
>  diff --git a/tests/general/masked-clear.c b/tests/general/masked-clear.c
>> index fdf81ba..21fe944 100644
>> --- a/tests/general/masked-clear.c
>> +++ b/tests/general/masked-clear.c
>> @@ -39,6 +39,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
>>                                 PIGLIT_GL_VISUAL_DEPTH |
>>                                 PIGLIT_GL_VISUAL_STENCIL |
>>                                 PIGLIT_GL_VISUAL_DOUBLE);
>> +       config.requires_displayed_**window = true;
>>   PIGLIT_GL_TEST_CONFIG_END
>>
>
> Indentation weirdness in masked-clear.c.
>

I'm pretty sure it's properly indented.  Here's the hunk with more context:

diff --git a/tests/general/masked-clear.c b/tests/general/masked-clear.c
index fdf81ba..21fe944 100644
--- a/tests/general/masked-clear.c
+++ b/tests/general/masked-clear.c
@@ -35,14 +35,15 @@

 PIGLIT_GL_TEST_CONFIG_BEGIN
        config.supports_gl_compat_version = 10;
        config.window_visual = (PIGLIT_GL_VISUAL_RGB |
                                PIGLIT_GL_VISUAL_DEPTH |
                                PIGLIT_GL_VISUAL_STENCIL |
                                PIGLIT_GL_VISUAL_DOUBLE);
+       config.requires_displayed_window = true;
 PIGLIT_GL_TEST_CONFIG_END


 static void
 failRGB(GLint chan, GLfloat expected,
        GLfloat actual, GLenum buffer)
 {



>
> Other than that, patch 1 is
> Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130604/5eaa4cec/attachment-0001.html>


More information about the Piglit mailing list