[Piglit] [PATCH 2/2] glx: Replace glFlush calls with glFinish

Eric Anholt eric at anholt.net
Mon Nov 19 13:27:48 PST 2012


Paul Berry <stereotype441 at gmail.com> writes:

> Currently, in Mesa with the i965 driver, calling glFlush() forces all
> pending drawing operations to be sent to the kernel; this ensures that
> any subsequent drawing operations will be performed after those
> pending drawing operations, even if they come from other contexts.
> The glx-multithread test was relying on this behaviour, however, the
> GL and GLX specs do not garantee this.
>
> This patch modifies the glx-multithread test to use glFinish() instead
> of glFlush().

I'll have to keep this in mind if I ever write some of the other glx
tests I've thought about.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20121119/51d48326/attachment.pgp>


More information about the Piglit mailing list