Re: [Mesa-dev] [PATCH] i965: use strtol to convert the integer deviceID override

2017-07-17 Thread Emil Velikov
On 14 July 2017 at 18:02, Kenneth Graunke wrote: > On Friday, July 14, 2017 5:56:58 AM PDT Emil Velikov wrote: >> From: Emil Velikov >> >> One can override the deviceID, by setting the INTEL_DEVID_OVERRIDE >> variable. A few symbolic names or a numerical value for the actual >> device ID is accep

Re: [Mesa-dev] [PATCH] i965: use strtol to convert the integer deviceID override

2017-07-14 Thread Kenneth Graunke
On Friday, July 14, 2017 5:56:58 AM PDT Emil Velikov wrote: > From: Emil Velikov > > One can override the deviceID, by setting the INTEL_DEVID_OVERRIDE > variable. A few symbolic names or a numerical value for the actual > device ID is accepted. > > At the same time we're using strtod (string to

Re: [Mesa-dev] [PATCH] i965: use strtol to convert the integer deviceID override

2017-07-14 Thread Eric Engestrom
On Friday, 2017-07-14 13:56:58 +0100, Emil Velikov wrote: > From: Emil Velikov > > One can override the deviceID, by setting the INTEL_DEVID_OVERRIDE > variable. A few symbolic names or a numerical value for the actual > device ID is accepted. > > At the same time we're using strtod (string to d

[Mesa-dev] [PATCH] i965: use strtol to convert the integer deviceID override

2017-07-14 Thread Emil Velikov
From: Emil Velikov One can override the deviceID, by setting the INTEL_DEVID_OVERRIDE variable. A few symbolic names or a numerical value for the actual device ID is accepted. At the same time we're using strtod (string to double) to convert the string to a decimal numeral. A seeming thinko, mad