summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-04-19 16:20:44 -0700
committerJason Ekstrand <[email protected]>2017-04-20 15:24:06 -0700
commitb7a2af8e382b4f3bd8e38eb39b3eddd0d379c693 (patch)
tree09f0126c75fd99e121f91f65b998c5cca7a2608b /src/intel
parent35ea0c07a1040e57714da53fdbb583eec950a492 (diff)
genxml/pack: Allow hex values in the XML
Acked-by: Kenneth Graunke <[email protected]> Reviewed by: Iago Toral Quiroga <[email protected]> Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/genxml/gen_pack_header.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py
index 2a709454af3..5228f30bd05 100644
--- a/src/intel/genxml/gen_pack_header.py
+++ b/src/intel/genxml/gen_pack_header.py
@@ -3,6 +3,7 @@
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
+import ast
import xml.parsers.expat
import re
import sys
@@ -476,7 +477,7 @@ class Group(object):
class Value(object):
def __init__(self, attrs):
self.name = safe_name(attrs["name"])
- self.value = int(attrs["value"])
+ self.value = ast.literal_eval(attrs["value"])
class Parser(object):
def __init__(self):