summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/build_gles2_cmd_buffer.py
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-31 17:10:43 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-31 17:10:43 +0000
commitcadde4a696d15d4d5cb6b61c346d98ac2a8b1993 (patch)
treea237ce64bc5616f633e8fb265d7dc07534465162 /gpu/command_buffer/build_gles2_cmd_buffer.py
parentfc586c7e48d90dac7963906bf34c8f6382b55846 (diff)
downloadchromium_src-cadde4a696d15d4d5cb6b61c346d98ac2a8b1993.zip
chromium_src-cadde4a696d15d4d5cb6b61c346d98ac2a8b1993.tar.gz
chromium_src-cadde4a696d15d4d5cb6b61c346d98ac2a8b1993.tar.bz2
Adds range checking to glTexSubImage2D, glCompressedTexSubImage2D,
glCopyTexSubImage2D. Adds missing range tracking for glCopyTexImage2D Also makes glTexImage2D, glCopyTexImage2D and glCompressedTexImage2D check for errors. TEST=some unit test and ran conformance tests. BUG=none Review URL: http://codereview.chromium.org/3046033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54452 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-xgpu/command_buffer/build_gles2_cmd_buffer.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index ef4a004..58c3025 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -1056,6 +1056,13 @@ _FUNCTION_INFO = {
'CompressedTexSubImage2D': {
'type': 'Data',
'bucket': True,
+ 'decoder_func': 'DoCompressedTexSubImage2D',
+ },
+ 'CopyTexImage2D': {
+ 'decoder_func': 'DoCopyTexImage2D',
+ },
+ 'CopyTexSubImage2D': {
+ 'decoder_func': 'DoCopyTexSubImage2D',
},
'CreateProgram': {'type': 'Create'},
'CreateShader': {'type': 'Create'},
@@ -1388,7 +1395,10 @@ _FUNCTION_INFO = {
'count': 1,
'decoder_func': 'DoTexParameteriv',
},
- 'TexSubImage2D': {'type': 'Data'},
+ 'TexSubImage2D': {
+ 'type': 'Data',
+ 'decoder_func': 'DoTexSubImage2D',
+ },
'Uniform1f': {'type': 'PUTXn', 'data_type': 'GLfloat', 'count': 1},
'Uniform1fv': {
'type': 'PUTn',