[Intel-gfx] [PATCH i-g-t] lib/igt_gt: Define HANG_ALLOW_* as bit flags
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Wed Feb 8 12:42:03 UTC 2017
On ti, 2017-02-07 at 18:00 -0800, Michel Thierry wrote:
> As that is what they are meant to be. It will prevent any confusion if we
> have to add other flags in the future.
>
> Signed-off-by: Michel Thierry <michel.thierry at intel.com>
<SNIP>
> -#define HANG_ALLOW_BAN 1
> -#define HANG_ALLOW_CAPTURE 2
> +#define HANG_ALLOW_BAN (1<<0)
> +#define HANG_ALLOW_CAPTURE (1<<1)
Make them BIT(0) and BIT(1), and this is;
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
More information about the Intel-gfx
mailing list