[igt-dev] [RFT v4 3/6] igt/lib: Add wrapper to check if gtt mapping is available
Chris Wilson
chris at chris-wilson.co.uk
Tue Apr 16 13:28:17 UTC 2019
Quoting Katarzyna Dec (2019-04-16 14:25:28)
> Sorry Antonio for entering this patchset discussion so late :).
>
> On Mon, Mar 25, 2019 at 04:20:40PM -0700, Antonio Argenziano wrote:
> > +static int gem_mmap__gtt_version(int fd)
> > +{
> > + static int gtt_version = ~0;
> What is the reason that you are using '~0' value here and not -1?
The real question is why is it still a static int at all.
-Chris
More information about the igt-dev
mailing list