1. 04 Jun, 2012 1 commit
  2. 24 May, 2012 2 commits
  3. 23 May, 2012 3 commits
  4. 23 Mar, 2012 4 commits
    • Chad Versace's avatar
      cmake: Make each *.o depend on generated piglit_dispatch headers · bb3916c3
      Chad Versace authored
      Alter the wrapper functions `piglit_add_executable` and
      `piglit_add_library` to add to each object file a dependency on
      piglit_dispatch's generated files. This requires that a top-level custom
      target be created, `piglit_dispatch_gen`, to track that dependency.
      The result is that updating any files in `piglit_dispatch_gen_inputs` (for
      example, gl_API.xml) triggers a recompile of all objects.
      Signed-off-by: default avatarChad Versace <chad.versace@linux.intel.com>
    • Chad Versace's avatar
      cmake: Define wrapper functions piglit_add_{executable,library} · 1416f985
      Chad Versace authored
      For now, `piglit_add_executable` is a trivial wrapper around
      `add_executable`.  Ditto for `piglit_add_library`.
      A subsequent commit will leverage the wrappers to add to each object file
      an explicit dependency on the header files generated by piglit_dispatch.
      Signed-off-by: default avatarChad Versace <chad.versace@linux.intel.com>
    • Chad Versace's avatar
      cmake: Move utility functions into piglit_util.cmake · e5056341
      Chad Versace authored
      Currently there is only one utility function, piglit_include_target_api.
      However, subsequent commits will add several more.
      I'm choosing to define all the utility functions in their own file,
      piglit_util.cmake, in order to keep things organized and the top
      CMakeLists uncluttered.
      Signed-off-by: default avatarChad Versace <chad.versace@linux.intel.com>
    • Paul Berry's avatar
      piglit-dispatch: Code generation scripts. · 6fe17bb7
      Paul Berry authored
      This patch contains the code generation scripts that convert the files
      gl.spec, gl.tm, and enumext.spec into C code, as well as the CMake
      directives to run the scripts.
      Code generation occurs in two phases: first the script
      glapi/parse_glspec.py converts the .spec and .tm files into an
      intermediate JSON format, which is stored in glapi/glapi.json.  Then,
      the script tests/util/gen_dispatch.py converts the JSON file into two
      files, tests/util/generated_dispatch.c and
      There are two motivations for breaking code generation into two phases:
      (1) there are other code generation tasks we may add in the future
      (e.g. generating the tests/util/piglit-util-enum.c file), and it would
      be nice not to have to rewrite any parsing code when we do so.  (2) if
      the GL consortium ever decides to change the format of gl.spec, gl.tm,
      and enumext.spec, then we only have to change parse_glspec.py.
      These code generation scripts can be run by invoking "make
      piglit_dispatch_gen" from the toplevel source directory.
      v2: Add clarifying comments, remove a bogus "print" statement, and
      raise an exception if an unrecognized multiplicity is encountered.
      Also, handle "reference" multiplicity.
      v3: Add APIENTRY to stub functions.  Rename "near" and "far" to avoid
      problems on MSVC.  Get rid of "__" in function names.  Rename
      initialize_dispatch_pointers => reset_dispatch_pointers.  Add
      gl_10x_version parameter to get_core_proc().  Output generated code
      relative to CMAKE_BINARY_DIR so that it won't pollute source
      directories when building out of tree.  Add .gitignore so that
      generated files are ignored when building in tree.  Add GL_VERSION_*
  5. 09 Sep, 2011 1 commit
  6. 26 Feb, 2011 5 commits