Commit ce065d13 by John Kessenich

Merge remote-tracking branch 'GitHub/master'

parents a165a055 b5bf536b
...@@ -2,7 +2,7 @@ hlsl.partialFlattenLocal.vert ...@@ -2,7 +2,7 @@ hlsl.partialFlattenLocal.vert
WARNING: AST will form illegal SPIR-V; need to transform to legalize WARNING: AST will form illegal SPIR-V; need to transform to legalize
// Module Version 10000 // Module Version 10000
// Generated by (magic number): 80004 // Generated by (magic number): 80004
// Id's are bound by 165 // Id's are bound by 169
Capability Shader Capability Shader
1: ExtInstImport "GLSL.std.450" 1: ExtInstImport "GLSL.std.450"
...@@ -52,22 +52,22 @@ WARNING: AST will form illegal SPIR-V; need to transform to legalize ...@@ -52,22 +52,22 @@ WARNING: AST will form illegal SPIR-V; need to transform to legalize
Store 137 38 Store 137 38
Branch 100 Branch 100
100: Label 100: Label
164: 21(int) Phi 25 5 119 106 168: 21(int) Phi 25 5 119 106
105: 54(bool) SLessThan 164 31 105: 54(bool) SLessThan 168 31
LoopMerge 101 106 None LoopMerge 101 106 None
BranchConditional 105 106 101 BranchConditional 105 106 101
106: Label 106: Label
138: 39(ptr) AccessChain 133 164 138: 39(ptr) AccessChain 133 168
110: 18(fvec2) Load 138 110: 18(fvec2) Load 138
139: 34(ptr) AccessChain 131 164 139: 34(ptr) AccessChain 131 168
112: 14(fvec3) Load 139 112: 14(fvec3) Load 139
113: 18(fvec2) VectorShuffle 112 112 0 1 113: 18(fvec2) VectorShuffle 112 112 0 1
114: 18(fvec2) FAdd 113 110 114: 18(fvec2) FAdd 113 110
140: 34(ptr) AccessChain 131 164 140: 34(ptr) AccessChain 131 168
116: 14(fvec3) Load 140 116: 14(fvec3) Load 140
117: 14(fvec3) VectorShuffle 116 114 3 4 2 117: 14(fvec3) VectorShuffle 116 114 3 4 2
Store 140 117 Store 140 117
119: 21(int) IAdd 164 31 119: 21(int) IAdd 168 31
Branch 100 Branch 100
101: Label 101: Label
142: 17 Load 131 142: 17 Load 131
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"site" : "github", "site" : "github",
"subrepo" : "KhronosGroup/SPIRV-Tools", "subrepo" : "KhronosGroup/SPIRV-Tools",
"subdir" : "External/spirv-tools", "subdir" : "External/spirv-tools",
"commit" : "9e19fc0f31ceaf1f6bc907dbf17dcfded85f2ce8" "commit" : "4e4a254bc85ea41af93a048f1713ef27e04c01ab"
}, },
{ {
"name" : "spirv-tools/external/spirv-headers", "name" : "spirv-tools/external/spirv-headers",
......
...@@ -28,8 +28,12 @@ import sys ...@@ -28,8 +28,12 @@ import sys
KNOWN_GOOD_FILE = 'known_good.json' KNOWN_GOOD_FILE = 'known_good.json'
SITE_TO_KNOWN_GOOD_FILE = { 'github' : 'known_good.json',
'gitlab' : 'known_good_khr.json' }
# Maps a site name to its hostname. # Maps a site name to its hostname.
SITE_TO_HOST = { 'github' : 'github.com' } SITE_TO_HOST = { 'github' : 'https://github.com/',
'gitlab' : 'git@gitlab.khronos.org:' }
VERBOSE = True VERBOSE = True
...@@ -82,14 +86,11 @@ class GoodCommit(object): ...@@ -82,14 +86,11 @@ class GoodCommit(object):
self.subdir = json['subdir'] if ('subdir' in json) else '.' self.subdir = json['subdir'] if ('subdir' in json) else '.'
self.commit = json['commit'] self.commit = json['commit']
def GetUrl(self, style='https'): def GetUrl(self):
"""Returns the URL for the repository.""" """Returns the URL for the repository."""
host = SITE_TO_HOST[self.site] host = SITE_TO_HOST[self.site]
sep = '/' if (style is 'https') else ':' return '{host}{subrepo}'.format(
return '{style}://{host}{sep}{subrepo}'.format(
style=style,
host=host, host=host,
sep=sep,
subrepo=self.subrepo) subrepo=self.subrepo)
def AddRemote(self): def AddRemote(self):
...@@ -120,9 +121,10 @@ class GoodCommit(object): ...@@ -120,9 +121,10 @@ class GoodCommit(object):
command_output(['git', 'checkout', self.commit], self.subdir) command_output(['git', 'checkout', self.commit], self.subdir)
def GetGoodCommits(): def GetGoodCommits(site):
"""Returns the latest list of GoodCommit objects.""" """Returns the latest list of GoodCommit objects."""
with open(KNOWN_GOOD_FILE) as known_good: known_good_file = SITE_TO_KNOWN_GOOD_FILE[site]
with open(known_good_file) as known_good:
return [GoodCommit(c) for c in json.loads(known_good.read())['commits']] return [GoodCommit(c) for c in json.loads(known_good.read())['commits']]
...@@ -130,10 +132,12 @@ def main(): ...@@ -130,10 +132,12 @@ def main():
parser = argparse.ArgumentParser(description='Get Glslang source dependencies at a known-good commit') parser = argparse.ArgumentParser(description='Get Glslang source dependencies at a known-good commit')
parser.add_argument('--dir', dest='dir', default='.', parser.add_argument('--dir', dest='dir', default='.',
help="Set target directory for Glslang source root. Default is \'.\'.") help="Set target directory for Glslang source root. Default is \'.\'.")
parser.add_argument('--site', dest='site', default='github',
help="Set git server site. Default is github.")
args = parser.parse_args() args = parser.parse_args()
commits = GetGoodCommits() commits = GetGoodCommits(args.site)
distutils.dir_util.mkpath(args.dir) distutils.dir_util.mkpath(args.dir)
print('Change directory to {d}'.format(d=args.dir)) print('Change directory to {d}'.format(d=args.dir))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment