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.
" %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"