aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2014-12-03 11:33:51 -0700
committerJon Ashburn <jon@lunarg.com>2014-12-04 17:24:59 -0700
commitca871728eb10b4c68ff6e69a4a20386d5ff71030 (patch)
tree3a420df4f7454224d4a8bdb9fd93a46220211536
parent4263a8912942d1d29710a43caf31215c6e2d424d (diff)
downloadusermoji-ca871728eb10b4c68ff6e69a4a20386d5ff71030.tar.xz
icd: Fix bug in generated Icd generated entrypoints don't unwrap gpu object
Generated code for icd API entrypoints with XGL_PHYSICAL_GPU was unwrapping the handle; but with no loader present gpu objects are never wrapped. Allows one to LD_PRELOAD libXGL_i965.so and the tests work.
-rwxr-xr-xxgl-generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xgl-generate.py b/xgl-generate.py
index b7f0fa0c..ed5b636b 100755
--- a/xgl-generate.py
+++ b/xgl-generate.py
@@ -130,7 +130,7 @@ class Subcommand(object):
" %s = wrapped_obj->nextObject;\n"
" %s;\n"
"}" % (qual, decl, proto.params[0].name, proto.params[1].name, proto.params[0].name, proto.params[0].name, stmt))
- elif proto.params[0].ty != "XGL_PHYSICAL_GPU":
+ elif proto.params[0].ty != "XGL_PHYSICAL_GPU" or qual != "LOADER_EXPORT ":
funcs.append("%s%s\n"
"{\n"
" const XGL_LAYER_DISPATCH_TABLE * const *disp =\n"