Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1133033002: Update GetTexParameter* and TexParameter* for ES3 in GPU command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """code generator for GLES2 command buffers.""" 6 """code generator for GLES2 command buffers."""
7 7
8 import itertools 8 import itertools
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 'GL_UNIFORM_BUFFER_START', 844 'GL_UNIFORM_BUFFER_START',
845 ], 845 ],
846 'invalid': [ 846 'invalid': [
847 'GL_FOG_HINT', 847 'GL_FOG_HINT',
848 ], 848 ],
849 }, 849 },
850 'GetTexParamTarget': { 850 'GetTexParamTarget': {
851 'type': 'GLenum', 851 'type': 'GLenum',
852 'valid': [ 852 'valid': [
853 'GL_TEXTURE_2D', 853 'GL_TEXTURE_2D',
854 'GL_TEXTURE_3D',
Zhenyao Mo 2015/05/11 23:23:44 put the ES3 specific ones under 'valid_es3'.
legend 2015/05/12 02:34:16 Done.
855 'GL_TEXTURE_2D_ARRAY',
854 'GL_TEXTURE_CUBE_MAP', 856 'GL_TEXTURE_CUBE_MAP',
855 ], 857 ],
856 'invalid': [ 858 'invalid': [
857 'GL_PROXY_TEXTURE_CUBE_MAP', 859 'GL_PROXY_TEXTURE_CUBE_MAP',
858 ] 860 ]
859 }, 861 },
860 'TextureTarget': { 862 'TextureTarget': {
861 'type': 'GLenum', 863 'type': 'GLenum',
862 'valid': [ 864 'valid': [
863 'GL_TEXTURE_2D', 865 'GL_TEXTURE_2D',
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 'GL_SHADING_LANGUAGE_VERSION', 1210 'GL_SHADING_LANGUAGE_VERSION',
1209 'GL_EXTENSIONS', 1211 'GL_EXTENSIONS',
1210 ], 1212 ],
1211 }, 1213 },
1212 'TextureParameter': { 1214 'TextureParameter': {
1213 'type': 'GLenum', 1215 'type': 'GLenum',
1214 'valid': [ 1216 'valid': [
1215 'GL_TEXTURE_MAG_FILTER', 1217 'GL_TEXTURE_MAG_FILTER',
1216 'GL_TEXTURE_MIN_FILTER', 1218 'GL_TEXTURE_MIN_FILTER',
1217 'GL_TEXTURE_POOL_CHROMIUM', 1219 'GL_TEXTURE_POOL_CHROMIUM',
1220 'GL_TEXTURE_WRAP_R',
Zhenyao Mo 2015/05/11 23:23:44 put the ES3 specific ones under 'valid_es3'.
legend 2015/05/12 02:34:16 Done.
1218 'GL_TEXTURE_WRAP_S', 1221 'GL_TEXTURE_WRAP_S',
1219 'GL_TEXTURE_WRAP_T', 1222 'GL_TEXTURE_WRAP_T',
1223 'GL_TEXTURE_COMPARE_FUNC',
1224 'GL_TEXTURE_COMPARE_MODE',
1225 'GL_TEXTURE_MAX_LOD',
1226 'GL_TEXTURE_MIN_LOD',
1227 'GL_TEXTURE_BASE_LEVEL',
1228 'GL_TEXTURE_MAX_LEVEL',
1229 'GL_TEXTURE_IMMUTABLE_FORMAT',
1230 'GL_TEXTURE_IMMUTABLE_LEVELS',
1220 ], 1231 ],
1221 'invalid': [ 1232 'invalid': [
1222 'GL_GENERATE_MIPMAP', 1233 'GL_GENERATE_MIPMAP',
1223 ], 1234 ],
1224 }, 1235 },
1225 'TexturePool': { 1236 'TexturePool': {
1226 'type': 'GLenum', 1237 'type': 'GLenum',
1227 'valid': [ 1238 'valid': [
1228 'GL_TEXTURE_POOL_MANAGED_CHROMIUM', 1239 'GL_TEXTURE_POOL_MANAGED_CHROMIUM',
1229 'GL_TEXTURE_POOL_UNMANAGED_CHROMIUM', 1240 'GL_TEXTURE_POOL_UNMANAGED_CHROMIUM',
(...skipping 18 matching lines...) Expand all
1248 'GL_LINEAR_MIPMAP_LINEAR', 1259 'GL_LINEAR_MIPMAP_LINEAR',
1249 ], 1260 ],
1250 }, 1261 },
1251 'TextureMagFilterMode': { 1262 'TextureMagFilterMode': {
1252 'type': 'GLenum', 1263 'type': 'GLenum',
1253 'valid': [ 1264 'valid': [
1254 'GL_NEAREST', 1265 'GL_NEAREST',
1255 'GL_LINEAR', 1266 'GL_LINEAR',
1256 ], 1267 ],
1257 }, 1268 },
1269 'TextureCompareFunc': {
1270 'type': 'GLenum',
1271 'valid': [
1272 'GL_LEQUAL',
1273 'GL_GEQUAL',
1274 'GL_LESS',
1275 'GL_GREATER',
1276 'GL_EQUAL',
1277 'GL_NOTEQUAL',
1278 'GL_ALWAYS',
1279 'GL_NEVER',
1280 ],
1281 },
1282 'TextureCompareMode': {
1283 'type': 'GLenum',
1284 'valid': [
1285 'GL_NONE',
1286 'GL_COMPARE_REF_TO_TEXTURE',
1287 ],
1288 },
1258 'TextureUsage': { 1289 'TextureUsage': {
1259 'type': 'GLenum', 1290 'type': 'GLenum',
1260 'valid': [ 1291 'valid': [
1261 'GL_NONE', 1292 'GL_NONE',
1262 'GL_FRAMEBUFFER_ATTACHMENT_ANGLE', 1293 'GL_FRAMEBUFFER_ATTACHMENT_ANGLE',
1263 ], 1294 ],
1264 }, 1295 },
1265 'VertexAttribute': { 1296 'VertexAttribute': {
1266 'type': 'GLenum', 1297 'type': 'GLenum',
1267 'valid': [ 1298 'valid': [
(...skipping 9562 matching lines...) Expand 10 before | Expand all | Expand 10 after
10830 Format(gen.generated_cpp_filenames) 10861 Format(gen.generated_cpp_filenames)
10831 10862
10832 if gen.errors > 0: 10863 if gen.errors > 0:
10833 print "%d errors" % gen.errors 10864 print "%d errors" % gen.errors
10834 return 1 10865 return 1
10835 return 0 10866 return 0
10836 10867
10837 10868
10838 if __name__ == '__main__': 10869 if __name__ == '__main__':
10839 sys.exit(main(sys.argv[1:])) 10870 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698