summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-08-14scons: Link talloc.José Fonseca
2010-08-14glsl: Silence gcc warning "control reaches end of non-void function".José Fonseca
2010-08-14mesa: Silence gcc warning "control reaches end of non-void function".José Fonseca
2010-08-14mesa: Silence gcc warning "missing initializer for member".José Fonseca
2010-08-14mesa: Recent versions of MSVC define the single precision functions already.José Fonseca
2010-08-14scons: Add new source files.José Fonseca
2010-08-14mesa: atan2f and powf need two args.José Fonseca
2010-08-14glsl: Clean up header file inclusion in slang_builtin.h.Vinson Lee
Remove prog_parameter.h and slang_utility.h. Include glheader.h for GL symbols. Include mtypes.h for gl_*_result symbols.
2010-08-14glsl: Clean up header file inclusion.Vinson Lee
2010-08-14glsl: Include missing header in slang_compile.c.Vinson Lee
Include sl_pp_purify.h for sl_pp_purify_options symbol.
2010-08-14glsl/cl: Add forward declaration.Vinson Lee
2010-08-13Merge branch 'master' into glsl2Ian Romanick
2010-08-13mesa: Work-arounds for platforms that lack C99 math functionsIan Romanick
2010-08-13glsl2/Makefile: Add a 'make builtins' target.Kenneth Graunke
This copies over a dummy builtin_functions.cpp and rebuilds a bootstrapped version of the compiler, then uses that to generate the proper list of builtins. Finally, it rebuilds the compiler with the new list. Unfortunately, it's no longer automatic, but at least it works.
2010-08-13glsl2: Rework builtin function generation.Kenneth Graunke
Each language version/extension and target now has a "profile" containing all of the available builtin function prototypes. These are written in GLSL, and come directly out of the GLSL spec (except for expanding genType). A new builtins/ir/ folder contains the hand-written IR for each builtin, regardless of what version includes it. Only those definitions that have prototypes in the profile will be included. The autogenerated IR for texture builtins is no longer written to disk, so there's no longer any confusion as to what's hand-written or generated. All scripts are now in python instead of perl.
2010-08-13ir_reader: Don't mark functions as defined if their body is empty.Kenneth Graunke
2010-08-13glsl2: Commit generated file change by commit ab18be74Ian Romanick
This would have been included in commit 23f6017d, but make wisely did not regenerate the file when the .lpp file did not change.
2010-08-13glsl2: Add a pass to strip out noop swizzles.Eric Anholt
With the glsl2-965 branch, the optimization of glsl-algebraic-rcp-rcp regressed due to noop swizzles hiding information from ir_algebraic. This cleans up those noop swizzles for us.
2010-08-13glsl2: Convert ir_constant_propagation to ir_rvalue_visitor.Eric Anholt
This one is a little tricky because of the LHS handling.
2010-08-13glsl2: Add a generic visitor class to call back with pointers to each rvalue.Eric Anholt
I keep copy and pasting this code all over, so consolidate it in one place.
2010-08-13mesa: Avoid using c++ keyword in dri_util.h when compiled with c++.Eric Anholt
2010-08-13intel: Remove include of texmem.h, since we haven't used it in ages.Eric Anholt
2010-08-13glsl2: Move ir_to_mesa handling to driver CompileShader and LinkShader hooks.Eric Anholt
This lets drivers override ir_to_mesa with their own codegen, or at least have a native alternative.
2010-08-13glsl2: Add support for ir_unop_neg to ir_mat_op_to_vecEric Anholt
2010-08-13glsl2: Move the common optimization passes to a helper function.Eric Anholt
These are passes that we expect all codegen to be happy with. The other lowering passes for Mesa IR are moved to the Mesa IR generator.
2010-08-13glsl2: Refresh autogenerated bison parser.Kenneth Graunke
2010-08-13Fix an MSVC build error (bugzilla 29570).Vinson Lee
2010-08-13glsl2: Remove unnecessary use of 'struct' before type namesIan Romanick
In C++ you don't have to say 'struct' or 'class' if the declaration of the type has been seen. Some compilers will complain if you use 'struct' when 'class' should have been used and vice versa. Fixes bugzilla #29539.
2010-08-13glsl2: Use stdint.h instead of inttypes.hIan Romanick
2010-08-13mesa: assorted clean-ups, var type changes, assertions in prog_optimize.cBrian Paul
2010-08-13mesa: more/better program optimizationsBenjamin Segovia
This is the patch from Benjamin's Aug 11, 2010 email with minor fixes (such as moving declarations before code) Signed-off-by: Brian Paul <brianp@vmware.com>
2010-08-13glsl2: Commit generated file changed by previous commitIan Romanick
2010-08-13glsl2: Use --nounistd to fix MSVC buildIan Romanick
Also remove the --never-interactive command line option for the preprocessor lexer. This was already done for main compiler lexer.
2010-08-13linker: Assign attrib location 0 if gl_Vertex is not usedIan Romanick
If gl_Vertex is not used in the shader, then attribute location 0 is available for use. Fixes piglit test case glsl-getattriblocation (bugzilla #29540).
2010-08-13st/dri: make dri_drawable_validate_att staticGeorge Sapountzis
2010-08-13st/dri: move TFP code to dri_drawable.cGeorge Sapountzis
This is based on a patch by nobled <nobled@dreamwidth.org> and allows the TFP extension to be enabled for DRISW also. This patch does not enable TFP for DRISW though, because testing on xephyr segfaults here (for both classic and gallium): Program received signal SIGSEGV, Segmentation fault. 0x00786a4a in _mesa_GenTextures (n=1, textures=0xbfffee4c) at main/texobj.c:788 788 ASSERT_OUTSIDE_BEGIN_END(ctx); (gdb) (gdb) where \#0 0x00786a4a in _mesa_GenTextures (n=1, textures=0xbfffee4c) at main/texobj.c:788 \#1 0x0817a004 in __glXDisp_GenTextures () \#2 0x08168498 in __glXDispatch () \#3 0x0808b6ce in Dispatch () \#4 0x08084435 in main () The TFP code is generic except for the teximage call. We need to verify that DRISW correclty implements whatever hook teximage finally calls.
2010-08-13st/dri: Fix segmentation fault in sw driversnobled
2010-08-13st/dri: dri_drawable_get_format is shared between DRI2 and DRISWGeorge Sapountzis
2010-08-13glsl2: Include string.h in preprocessorJakob Bornecrantz
2010-08-13glsl2: Commit generated files changed by previous two commitsIan Romanick
2010-08-13glsl2: Avoid token name collisions with names used by Windows header filesIan Romanick
2010-08-13glsl2: Eliminate tokens for square matrix short namesIan Romanick
MAT2 and MAT2X2, for example, are treated identically by the parser. The language version based error checking (becuase mat2x2 is not available in GLSL 1.10) is already done in the lexer.
2010-08-13scons: Build the new glsl2 code.José Fonseca
2010-08-13talloc: Make it compile with MSVC, MinGW, and Xcode/gcc4.0.José Fonseca
Based on Aras Pranckevičius' patch.
2010-08-13talloc: Import 2.0.1 code.José Fonseca
2010-08-13mesa: Clean up header file inclusion in vf.h.Vinson Lee
Remove mtypes.h. Include glheader.h for GL symbols.
2010-08-13swrast: Clean up header file inclusion in ss_vb.h.Vinson Lee
Remove unnecessary header swrast_setup.h.
2010-08-12swrast: Clean up header file inclusion in ss_triangle.h.Vinson Lee
Remove ss_context.h. Include mtypes.h for GLcontext symbol.
2010-08-12swrast: Clean up header file inclusion in ss_context.h.Vinson Lee
Remove mtypes.h and swrast_setup.h. Include glheader.h for GL symbols.
2010-08-12mesa: Include missing header in programopt.h.Vinson Lee
Include mtypes.h for GLcontext and gl_register_file symbols.