[Piglit] [PATCH] generator: clear before rendering with the builtin tests

Eric Anholt eric at anholt.net
Mon Apr 6 11:36:35 PDT 2015


Dave Airlie <airlied at gmail.com> writes:

> From: Dave Airlie <airlied at redhat.com>
>
> Otherwise there is a chance you'll get the contents from the last
> test which are green, and if this test fails to renderer you'll pass.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>

This probably slightly improves performance for me, actually.  I
initially wondered why you were getting previous buffer contents, then
rememered that on a discrete GPU the on-GPU memory wouldn't be getting
zeroed in between allocations.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150406/d6c40951/attachment.sig>


More information about the Piglit mailing list