summaryrefslogtreecommitdiff
path: root/src/glsl/glcpp/glcpp.c
AgeCommit message (Collapse)Author
2011-03-04glsl/glcpp: Use stdio.h instead of unistd.h.José Fonseca
2011-01-31Convert everything from the talloc API to the ralloc API.Kenneth Graunke
2010-10-14glsl: Slightly change the semantic of _LinkedShadersIan Romanick
Previously _LinkedShaders was a compact array of the linked shaders for each shader stage. Now it is arranged such that each slot, indexed by the MESA_SHADER_* defines, refers to a specific shader stage. As a result, some slots will be NULL. This makes things a little more complex in the linker, but it simplifies things in other places. As a side effect _NumLinkedShaders is removed. NOTE: This may be a candidate for the 7.9 branch. If there are other patches that get backported to 7.9 that use _LinkedShader, this patch should be cherry picked also.
2010-09-07glsl: Define GL_ES preprocessor macro if API is OpenGL ES 2.0.Kenneth Graunke
Also define it if #version 100 is encountered.
2010-08-23glcpp: Make standalone preprocessor work with a tty as stdinCarl Worth
Previously glcpp would silently abort if it couldn't fstat the file being read, (so it would work with stdin redirected from a file, but would not work with stdin as a tty). The stat was so that glcpp could allocate a buffer for the file content in a single call. We now use talloc_realloc instead, (even if the fstat is possible). This is theoretically less efficient, but quite irrelevant, (particularly because the standalone preprocessor is used only for testing).
2010-08-23glcpp: Fix segfault in standalone preprocessor for "file not found", etc.Carl Worth
This error message was missing so that the program would simply segfault if the provided filename could not be opened for some reason. While we're at it, we add explicit support for a filename of "-" to indicate input from stdin.
2010-08-17glcpp: Allow standalone glcpp to accept a filename as first argument.Carl Worth
This is useful for debugging the preprocessor.
2010-07-01glsl2: Conditionally define preprocessor tokens for optional extensionsIan Romanick
The only optional extension currently supported by the compiler is GL_EXT_texture_array.
2010-06-24glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt