[Piglit] [PATCH] shader_runner: Use %u in "probe atomic counter" scanf calls.

Kenneth Graunke kenneth at whitecape.org
Wed Jun 1 05:49:13 UTC 2016


On Wednesday, June 1, 2016 1:34:42 AM PDT Ilia Mirkin wrote:
> Because strtol() truncates the the maximum value of "long", as does
> scanf apparently. This will make it impossible to test that a counter
> == -1 though, right?

Yes, I suppose it would.  But you can always do == 4294967295 instead,
and that seems pretty reasonable (if a bit inconvenient) considering
the GLSL type is "atomic_uint"...

--Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160531/6169e897/attachment.sig>


More information about the Piglit mailing list