[igt-dev] [RFT v4 3/6] igt/lib: Add wrapper to check if gtt mapping is available

Antonio Argenziano antonio.argenziano at intel.com
Tue Apr 16 16:43:32 UTC 2019



On 16/04/19 06:28, Chris Wilson wrote:
> 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?

I use -1 for when there is no mappable aperture.

> 
> The real question is why is it still a static int at all.

Ops, I guess I forgot about that.

Antonio

> -Chris
> 


More information about the igt-dev mailing list