[igt-dev] [PATCH i-g-t] igt: Replace 'all-engines' magic numbers with macro

Antonio Argenziano antonio.argenziano at intel.com
Tue Mar 20 19:57:42 UTC 2018



On 20/03/18 03:28, Chris Wilson wrote:
> Quoting Antonio Argenziano (2018-03-19 22:30:38)
>> In interfaces where a parameter allow to select an engine, we usually
>> use '-1' or '~0u' to select all engines. This patch replaces magic
>> numbers with a named constant.
>>
>> Suggested-by: Chris Wilson <chris at chris-wilson.co.uk>
>> Signed-off-by: Antonio Argenziano <antonio.argenziano at intel.com>
>>
>> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
> 
> Quick before I add more -1.

Pushed ;). Thanks for the review.

Antonio

> -Chris
> 


More information about the igt-dev mailing list