[Mesa-dev] [PATCH 0/3] Consolidating a triple context flush in SwapBuffers

Marek Olšák maraeo at gmail.com
Thu Nov 8 05:48:37 PST 2012


I have noticed the gallium context is flushed 3 times in SwapBuffers. Two of those flushes end up invoking the radeon CS ioctl, which also adds overhead in the kernel. Anyway, it seems very inefficient and this series tries to consolidate all the flushing in SwapBuffers.

The first flush is invoked in SwapBuffers, the second one is invoked when a drawable is flushed inside st/dri, and the last one is invoked in dri2Throttle while adding the fence/sync object in st/dri.

The idea is to remove the flush in SwapBuffers and consolidate the other two flushes.

I am not sure if I am heading in the right direction. I am looking forward to your comments.

Marek


More information about the mesa-dev mailing list