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>2009-12-03 00:35:52 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 00:35:52 +0000
commitd041d8c023aca9bff3c5407e4927d75fb7d5f111 (patch)
tree32964cdeb1ec0e2bcf0da8a25cb9467af4d6ddae /gpu/command_buffer/build_gles2_cmd_buffer.py
parent7b07d63735de934b372cc5aaca082d467be3a64e (diff)
downloadchromium_src-d041d8c023aca9bff3c5407e4927d75fb7d5f111.zip
chromium_src-d041d8c023aca9bff3c5407e4927d75fb7d5f111.tar.gz
chromium_src-d041d8c023aca9bff3c5407e4927d75fb7d5f111.tar.bz2
TBR=apatrick@chromium.org
TEST=none BUG=none NOTE: This CL was already reviewed. See: http://codereview.chromium.org/437044/show Add ids and stubs for new common commands and change it so command ids are 11 bits and the size is 21 bits. Since size is in command elements and 1 command element is 4 bytes that allows you to pass 2^23rd bytes inside the command buffer which is 8meg. Review URL: http://codereview.chromium.org/465013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rw-r--r--gpu/command_buffer/build_gles2_cmd_buffer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index 0d9a7e8..5c26709 100644
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -14,7 +14,7 @@ from optparse import OptionParser
_SIZE_OF_UINT32 = 4
_SIZE_OF_COMMAND_HEADER = 4
-_FIRST_SPECIFIC_COMMAND_ID = 1024
+_FIRST_SPECIFIC_COMMAND_ID = 256
_LICENSE = """
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
@@ -2553,7 +2553,7 @@ class GLGenerator(object):
file.Write("// *** These IDs MUST NOT CHANGE!!! ***\n")
file.Write("// Changing them will break all client programs.\n")
file.Write("TEST(GLES2CommandIdTest, CommandIdsMatch) {\n")
- command_id = 1024
+ command_id = _FIRST_SPECIFIC_COMMAND_ID
for func in self.functions:
file.Write(" COMPILE_ASSERT(%s::kCmdId == %d,\n" %
(func.name, command_id))