Commit bac66e3e authored by kkinnunen@nvidia.com's avatar kkinnunen@nvidia.com

Remove shm versions of immediate commands from command buffer

The actual code uses only immediate commands. The shm versions are
either unused or used only by the unit tests.

Make the unit tests use the immediate commands.

Solves the problem of not having to implement one useless function for
the a new command when using immediate commands.

BUG=373763

Review URL: https://codereview.chromium.org/289993002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272991 0039d316-1c4b-4281-b951-d872f2087c98
parent 8062ab26
......@@ -2712,6 +2712,7 @@ class TypeHandler(object):
if immediate == True or immediate == None:
if func.num_pointer_args == 1 or immediate:
generator.AddFunction(ImmediateFunction(func))
return True
def AddBucketFunction(self, generator, func):
"""Adds a bucket version of a function."""
......@@ -7312,8 +7313,8 @@ class GLGenerator(object):
gen_cmd = f.GetInfo('gen_cmd')
if gen_cmd == True or gen_cmd == None:
self.AddFunction(f)
f.type_handler.AddImmediateFunction(self, f)
if not f.type_handler.AddImmediateFunction(self, f):
self.AddFunction(f)
f.type_handler.AddBucketFunction(self, f)
self.Log("Auto Generated Functions : %d" %
......
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