[Piglit] Patch to prefix piglit window titles with "pigli : "

Michal Suchanek hramrach at centrum.cz
Fri Aug 20 05:35:25 PDT 2010


On 17 August 2010 10:45, Dave Airlie <airlied at gmail.com> wrote:
> On Tue, Aug 17, 2010 at 6:05 PM, Michal Suchanek <hramrach at centrum.cz> wrote:
>> Sorry, forgot tot attach the patch.
>>
>> On 17 August 2010 00:40, Dave Airlie <airlied at gmail.com> wrote:
>>> On Fri, Aug 13, 2010 at 11:12 PM, Michal Suchanek <hramrach at centrum.cz> wrote:
>>>> Hello
>>>>
>>>> I was trying how managed vs unmamaged windows affect my piglit results
>>>> and wrote a patch that prefixes all piglit window titles with piglit:
>>>> to make it easier to match them in window management rules.
>>>>
>>>> It seems that read-front always fails when the window is resized and
>>>> often fails when the window is managed.
>>>>
>>>
>>> I think this is a bug in freeglut if you are using it, it didn't at
>>> one point wait for the window to be mapped,
>>> so you'd read from a 0x0 frontbuffer, then X would map the window and
>>> you'd get a resize event.
>>>
>>
>> How does it explain that it works better when the window is not
>> resized and even better when the window is not managed?
>
> Since the map race is won in that case and the window is mapped before
> GL starts,
> otherwise resizing/management is causing a delay on the initial map
> event or the initial map is 0x0, I forget the exact details now.
>
> non-free glut didn't suffer from this issue at the time.
>
> Dave.
>

I tried to patch the freeglut library to wait for the window to get
mapped and now the results of read-front are much more consistent.

It only fails with llvmpipe and new intel classic driver.

Thanks

Michal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 04_wait_for_window_map.diff
Type: plain/text
Size: 1225 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20100820/946f5c1c/attachment.bin>


More information about the Piglit mailing list