[Mesa-dev] [PATCH 03/12] i965/cnl: Update the script generating genX_bits.h
Anuj Phogat
anuj.phogat at gmail.com
Sat Apr 15 00:35:18 UTC 2017
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/intel/genxml/gen_bits_header.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/intel/genxml/gen_bits_header.py b/src/intel/genxml/gen_bits_header.py
index 808e6cf..77cd966 100644
--- a/src/intel/genxml/gen_bits_header.py
+++ b/src/intel/genxml/gen_bits_header.py
@@ -84,6 +84,7 @@ static inline uint32_t ATTRIBUTE_PURE
${field.token_name}(const struct gen_device_info *devinfo)
{
switch (devinfo->gen) {
+ case 10: return ${field.bits(10)};
case 9: return ${field.bits(9)};
case 8: return ${field.bits(8)};
case 7:
@@ -151,8 +152,7 @@ class Gen(object):
def __init__(self, z):
# Convert potential "major.minor" string
z = float(z)
- if z < 10:
- z *= 10
+ z *= 10
self.tenx = int(z)
def __lt__(self, other):
--
2.9.3
More information about the mesa-dev
mailing list