util/u_trace: Replace Flag with IntEnum to support python3.5

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5586

Fixes: cefaa73909

Signed-off-by: Kostiantyn Lazukin <kostiantyn.lazukin@globallogic.com>

Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13643>
This commit is contained in:
Kostiantyn Lazukin 2021-11-03 13:23:52 +02:00 committed by Marge Bot
parent 349bfb7275
commit 78b613db23

View File

@ -23,7 +23,7 @@
from mako.template import Template
from collections import namedtuple
from enum import Flag, auto
from enum import IntEnum
import os
TRACEPOINTS = {}
@ -101,9 +101,9 @@ class TracepointArg(object):
HEADERS = []
class HeaderScope(Flag):
HEADER = auto()
SOURCE = auto()
class HeaderScope(IntEnum):
HEADER = (1 << 0)
SOURCE = (1 << 1)
class Header(object):
"""Class that represents a header file dependency of generated tracepoints