[Piglit] [PATCH 1/5] util: Wrapper to load exact hex patterns for ints

Emil Velikov emil.l.velikov at gmail.com
Wed Jun 29 16:46:55 UTC 2016

On 14 June 2016 at 22:36, Andres Gomez <agomez at igalia.com> wrote:
> For some cases we want to have shaders where we load an exact bit
> pattern into a signed int.
> This fixes the errno-based range validation that was broken when the
> integer vbo attribute parsing on 32-bit systems was recently fixed.
Is this because strtol{,l} requires the '-' sign to prefix the
negative values, while we feed it a unsigned encoded signed value ?
I.e. function throws an error if we give it 0x8000 0000, as it expects
-0x7fff ffff.
Or is that due to sizeof(long) varying between 32 and 64bit systems ?


More information about the Piglit mailing list