projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1458aa1
)
anv: simplify chained comparison
author
Eric Engestrom
<eric.engestrom@intel.com>
Wed, 27 Feb 2019 10:40:14 +0000
(10:40 +0000)
committer
Eric Engestrom
<eric@engestrom.ch>
Fri, 1 Mar 2019 11:20:28 +0000
(11:20 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_entrypoints_gen.py
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_entrypoints_gen.py
b/src/intel/vulkan/anv_entrypoints_gen.py
index 1dca173c0a952e427f280967bfc2b744a762c656..6f6053915d8a70c7eec8f1d6e08f4566749fc355 100644
(file)
--- a/
src/intel/vulkan/anv_entrypoints_gen.py
+++ b/
src/intel/vulkan/anv_entrypoints_gen.py
@@
-454,7
+454,7
@@
class StringIntMap(object):
def add_string(self, string, num):
assert not self.baked
assert string not in self.strings
- assert
num >= 0 and
num < 2**31
+ assert
0 <=
num < 2**31
self.strings[string] = StringIntMapEntry(string, num)
def bake(self):