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

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: Use previous macro 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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_CUBE_MAP', 854 'GL_TEXTURE_CUBE_MAP',
855 ], 855 ],
856 'valid_es3': [
857 'GL_TEXTURE_2D_ARRAY',
858 'GL_TEXTURE_3D',
859 ],
856 'invalid': [ 860 'invalid': [
857 'GL_PROXY_TEXTURE_CUBE_MAP', 861 'GL_PROXY_TEXTURE_CUBE_MAP',
858 ] 862 ]
859 }, 863 },
860 'TextureTarget': { 864 'TextureTarget': {
861 'type': 'GLenum', 865 'type': 'GLenum',
862 'valid': [ 866 'valid': [
863 'GL_TEXTURE_2D', 867 'GL_TEXTURE_2D',
864 'GL_TEXTURE_CUBE_MAP_POSITIVE_X', 868 'GL_TEXTURE_CUBE_MAP_POSITIVE_X',
865 'GL_TEXTURE_CUBE_MAP_NEGATIVE_X', 869 'GL_TEXTURE_CUBE_MAP_NEGATIVE_X',
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 }, 1215 },
1212 'TextureParameter': { 1216 'TextureParameter': {
1213 'type': 'GLenum', 1217 'type': 'GLenum',
1214 'valid': [ 1218 'valid': [
1215 'GL_TEXTURE_MAG_FILTER', 1219 'GL_TEXTURE_MAG_FILTER',
1216 'GL_TEXTURE_MIN_FILTER', 1220 'GL_TEXTURE_MIN_FILTER',
1217 'GL_TEXTURE_POOL_CHROMIUM', 1221 'GL_TEXTURE_POOL_CHROMIUM',
1218 'GL_TEXTURE_WRAP_S', 1222 'GL_TEXTURE_WRAP_S',
1219 'GL_TEXTURE_WRAP_T', 1223 'GL_TEXTURE_WRAP_T',
1220 ], 1224 ],
1225 'valid_es3': [
1226 'GL_TEXTURE_BASE_LEVEL',
1227 'GL_TEXTURE_COMPARE_FUNC',
1228 'GL_TEXTURE_COMPARE_MODE',
1229 'GL_TEXTURE_IMMUTABLE_FORMAT',
1230 'GL_TEXTURE_IMMUTABLE_LEVELS',
1231 'GL_TEXTURE_MAX_LEVEL',
1232 'GL_TEXTURE_MAX_LOD',
1233 'GL_TEXTURE_MIN_LOD',
1234 'GL_TEXTURE_WRAP_R',
1235 ],
1221 'invalid': [ 1236 'invalid': [
1222 'GL_GENERATE_MIPMAP', 1237 'GL_GENERATE_MIPMAP',
1223 ], 1238 ],
1224 }, 1239 },
1225 'TexturePool': { 1240 'TexturePool': {
1226 'type': 'GLenum', 1241 'type': 'GLenum',
1227 'valid': [ 1242 'valid': [
1228 'GL_TEXTURE_POOL_MANAGED_CHROMIUM', 1243 'GL_TEXTURE_POOL_MANAGED_CHROMIUM',
1229 'GL_TEXTURE_POOL_UNMANAGED_CHROMIUM', 1244 'GL_TEXTURE_POOL_UNMANAGED_CHROMIUM',
1230 ], 1245 ],
(...skipping 17 matching lines...) Expand all
1248 'GL_LINEAR_MIPMAP_LINEAR', 1263 'GL_LINEAR_MIPMAP_LINEAR',
1249 ], 1264 ],
1250 }, 1265 },
1251 'TextureMagFilterMode': { 1266 'TextureMagFilterMode': {
1252 'type': 'GLenum', 1267 'type': 'GLenum',
1253 'valid': [ 1268 'valid': [
1254 'GL_NEAREST', 1269 'GL_NEAREST',
1255 'GL_LINEAR', 1270 'GL_LINEAR',
1256 ], 1271 ],
1257 }, 1272 },
1273 'TextureCompareFunc': {
1274 'type': 'GLenum',
1275 'valid': [
1276 'GL_LEQUAL',
1277 'GL_GEQUAL',
1278 'GL_LESS',
1279 'GL_GREATER',
1280 'GL_EQUAL',
1281 'GL_NOTEQUAL',
1282 'GL_ALWAYS',
1283 'GL_NEVER',
1284 ],
1285 },
1286 'TextureCompareMode': {
1287 'type': 'GLenum',
1288 'valid': [
1289 'GL_NONE',
1290 'GL_COMPARE_REF_TO_TEXTURE',
1291 ],
1292 },
1258 'TextureUsage': { 1293 'TextureUsage': {
1259 'type': 'GLenum', 1294 'type': 'GLenum',
1260 'valid': [ 1295 'valid': [
1261 'GL_NONE', 1296 'GL_NONE',
1262 'GL_FRAMEBUFFER_ATTACHMENT_ANGLE', 1297 'GL_FRAMEBUFFER_ATTACHMENT_ANGLE',
1263 ], 1298 ],
1264 }, 1299 },
1265 'VertexAttribute': { 1300 'VertexAttribute': {
1266 'type': 'GLenum', 1301 'type': 'GLenum',
1267 'valid': [ 1302 'valid': [
(...skipping 9562 matching lines...) Expand 10 before | Expand all | Expand 10 after
10830 Format(gen.generated_cpp_filenames) 10865 Format(gen.generated_cpp_filenames)
10831 10866
10832 if gen.errors > 0: 10867 if gen.errors > 0:
10833 print "%d errors" % gen.errors 10868 print "%d errors" % gen.errors
10834 return 1 10869 return 1
10835 return 0 10870 return 0
10836 10871
10837 10872
10838 if __name__ == '__main__': 10873 if __name__ == '__main__':
10839 sys.exit(main(sys.argv[1:])) 10874 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698