From ca871728eb10b4c68ff6e69a4a20386d5ff71030 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Wed, 3 Dec 2014 11:33:51 -0700 Subject: 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. --- xgl-generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3