Re: [Bf-committers] OpenGL Dependency Report and Script
50/50 offtopic/related to another post /warning Actually, I thought it was fine, other then the odd extraneous print here, or function param there ;) Still, neat stuff. I don't know python, but thought your code seemed to nicely cover enough key areas that it interested me. I was wondering though if you caught the message here earlier about the clang reports? After glimpsing your code, it seemed like it had all the parts one would really need to use to parse the clang reports for differences. Anyways, very cool and thanks for sharing/inspiring :) On Thu, Apr 26, 2012 at 12:41 AM, Jason Wilkins jason.a.wilk...@gmail.com wrote: In preparation for SoC I have started to study how Blender uses OpenGL Here is a report I generated: http://www.pasteall.org/31251/ Here is the script I used to generate it: http://www.pasteall.org/31252/python You need to download a full glew to run it (and edit the file paths inside the script). I'm a novice python user, so please don't mind how primitive my code is ;) There are some obvious problems, the main one is that I assume each token belongs to exactly one opengl extension, which I do not think is true at all. The other is that some tokens inside Blender mimic OpenGL symbols. I think one of my first tasks will be to find those fake opengl symbols, like glMats, and rename them. ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] OpenGL Dependency Report and Script
We also use GL_ARB_texture_query_lod as well (gpu_codegen.c 653). Just reported for completeness and to maybe check the parser as it is not actually included in the report. Maybe it's a solitary case because it is a relatively recent extension. ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] OpenGL Dependency Report and Script
It appears the GL_ARB_texture_query_lod does not define any new C functions or enums. Those kinds of extensions may be difficult to catch using my technique. The best I can do is look for references to the extension string. However, my experience with NVIDIA's drivers is that they let you use GLSL extensions without explicitly saying so (IIRC). Also, if an extension is simply using an existing API with a new parameter and it is not guarded with a pre-processor directive then it would still not be detected. A tool that could detect that would be on the level of a full source code analyzer. Fortunately I just need a tool that gives me a lay of the land. On Thu, Apr 26, 2012 at 5:27 AM, Antony Riakiotakis kal...@gmail.com wrote: We also use GL_ARB_texture_query_lod as well (gpu_codegen.c 653). Just reported for completeness and to maybe check the parser as it is not actually included in the report. Maybe it's a solitary case because it is a relatively recent extension. ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
[Bf-committers] OpenGL Dependency Report and Script
In preparation for SoC I have started to study how Blender uses OpenGL Here is a report I generated: http://www.pasteall.org/31251/ Here is the script I used to generate it: http://www.pasteall.org/31252/python You need to download a full glew to run it (and edit the file paths inside the script). I'm a novice python user, so please don't mind how primitive my code is ;) There are some obvious problems, the main one is that I assume each token belongs to exactly one opengl extension, which I do not think is true at all. The other is that some tokens inside Blender mimic OpenGL symbols. I think one of my first tasks will be to find those fake opengl symbols, like glMats, and rename them. ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers