On 2 November 2012 09:32, Brian Paul <span dir="ltr"><<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I think I've brought this up in the past.  On Windows, the minimum width of a window is 116 pixels (at least in my current Win7 setup). A lot of piglit tests create 100x100 pixels and when piglit creates the window, Win7 resizes it to 116x100.  The framework code detects this change and reports:<br>

<br>
Got spurious window resize in automatic run (100,100 to 116,100)<br>
PIGLIT: {'result': 'warn'}<br>
<br>
So a bunch of tests get the 'warn' result instead of being run properly.  I think this changed at some point during the recent framework/waffle overhaul.<br>
<br>
My proposal for this is to set a default window size of 150x150 in the piglit-framework-gl.h header:<br>
<br>
--- a/tests/util/piglit-framework-<u></u>gl.h<br>
+++ b/tests/util/piglit-framework-<u></u>gl.h<br>
@@ -216,6 +216,13 @@ piglit_gl_test_run(int argc, char *argv[],<br>
<br>
         \<br>
                 config.init = piglit_init;          \<br>
                 config.display = piglit_display;          \<br>
+         \<br>
+                /* Default window size.  Note: Win7's min window width */    \<br>
+               /* seems to be 116 pixels.  When the window size is */       \<br>
+                /* unexpectedly resized, tests are marked as "WARN". */      \<br>
+                /* Let's use a larger default to avoid that. */         \<br>
+                config.window_width = 150;         \<br>
+                config.window_height = 150;<br>
<br>
 #define PIGLIT_GL_TEST_CONFIG_END          \<br>
<br>
<br>
And then remove these config lines from a bunch of tests:<br>
<br>
       config.window_width = 100;<br>
       config.window_height = 100;<br>
<br>
Of course, I'll have to inspect these tests to make sure they don't rely on that specific window size, but I bet few if any of them do.<br>
<br>
This change fixes things here.<br>
<br>
Sound OK?<br>
<br>
-Brian<br></blockquote><div><br>Sounds reasonable to me.  I like the idea of having a default window size, since a lot of piglit tests just paint the whole window with the same color, so for those tests the size is pretty much irrelevant :)<br>
</div></div>