summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-06-04st/egl: Fix compiler warnings.Chia-I Wu
Forgot to stage this chunk in last commit.
2010-06-04st/egl: Move sw screen creation to native helper.Chia-I Wu
The code is shared by ximage and gdi backend.
2010-06-03scons: Add cygwin to list of accepted platforms.Vinson Lee
2010-06-04r600g: implement clear_{render_target, depth_stencil}, resource_copy_regionMarek Olšák
resource_copy_region uses a software fallback because it relies on texture samplers which haven't been implemented yet.
2010-06-04r600g: make blit functions static (private)Marek Olšák
2010-06-04r600g: use cast wrappersMarek Olšák
2010-06-03r600g: Move declaration before code.Vinson Lee
Fixes SCons build.
2010-06-03util: Remove unnecessary header.Vinson Lee
2010-06-03nv50: Remove unnecessary header.Vinson Lee
2010-06-03svga: Remove unnecessary header.Vinson Lee
2010-06-03llvmpipe: Fix uninitialized variable on non-debug builds.Vinson Lee
2010-06-03r600g: added code for depthtestingBas Nieuwenhuizen
- added code to configure the depth buffer and to set up depth testing.
2010-06-03r600g: adapt to interface changesRoland Scheidegger
r600g should be able to handle separate depth stencil clears as well. Also adapt surface_fill/copy stubs to new interface (not that it matters).
2010-06-03Merge branch 'gallium-newclear'Roland Scheidegger
Conflicts: src/gallium/state_trackers/python/p_context.i
2010-06-03gallium: rename clearRT / clearDS to clear_render_target / clear_depth_stencilRoland Scheidegger
more consistent with rest of gallium naming conventions. Also rename driver-internal names for these the same.
2010-06-02test suite: Add expected output for every test.Carl Worth
Rather than using the (munged) output of "gcc -E" we now capture precisely the output we expect from every test case. This allows us to stay immune from strange output from gcc (unpredictable whitespace output---aprticularly with different gcc versions). This will also allow us to write tests that capture expected error messages from the preprocessor as well.
2010-06-02Restore error message for a macro with unbalanced parentheses.Carl Worth
We had to remove this earlier because our recursive function calls caused the same nodes to be examined for expansion more than once. And in the test suite, one node would be examined before it had its closing parenthesis and then again later after the parenthesis was added. So we removed this error message to allow the test case to pass. Now that we've removed the unnecessary recursive function call we can catch this error case and report it as desired.
2010-06-02Eliminate some recursion from children of _expand_token_listCarl Worth
Previously, both _expand_node and _expand_function would always make mutually recursive calls into _expand_token_list. This was unnecessary since these functions can simply return unexpanded results, after which the outer iteration will next attempt expansion of the results. The only trick in doing this is to arrange so that the active list is popped at the appropriate time. To do this, we add a new token_node_t marker to the active stack. When pushing onto the active list, we set marker to last->next, and when the marker is seen by the token list iteration, we pop from the active stack.
2010-06-02Remove dead code: _glcpp_parser_expand_token_list_ontoCarl Worth
This function simply isn't being called anymore.
2010-06-02ir_dereference_array always operates on an r-valueIan Romanick
ir_dereference_array::array is always an r-value. If the dereference is of a varaible, that r-value will be an ir_dereference_variable. This simplifies the code a bit.
2010-06-02There is no class ir_label, so there's no need for ir_instruction::as_labelIan Romanick
2010-06-02Remove some cruft from the MakefileIan Romanick
This was affecting the build, but the files don't actually exist.
2010-06-02Factor out common sub-expression from multi-line-comment regular expression.Carl Worth
In two places we look for an (optional) sequence of characters other than "*" followed by a sequence of on or more "*". Using a name for this (NON_STARS_THEN_STARS) seems to make it a bit easier to understand.
2010-06-02Make the multi-line comment regular expression a bit easier to read.Carl Worth
Use quoted strings for literal portions rather than a sequence of single-character character classes.
2010-06-02Fix multi-line comment regular expression to handle (non) nested comments.Carl Worth
Ken reminded me of a couple cases that I should be testing. These are the non-nestedness of things that look like nested comments as well as potentially tricky things like "/*/" and "/*/*/". The (non) nested comment case was not working in the case of the comment terminator with multiple '*' characters. We fix this by not considering a '*' as the "non-slash" to terminate a sequence of '*' characters within the comment. We also fix the final match of the terminator to use '+' rather than '*' to require the presence of a final '*' character in the comment terminator.
2010-06-01Add builtin gl_LightSource[].Eric Anholt
Fixes gst-gl-bumper.vert parsing.
2010-06-01builtins: Add support for reflect().Eric Anholt
Fixes glsl-orangebook-ch06.frag parsing.
2010-06-01builtins: Add ftransform().Eric Anholt
Fixes glsl-orangebook-ch06-bump.vert.
2010-06-01Allow arrays of floats as varyings.Eric Anholt
The comment just above the code said arrays were OK, then it didn't handle arrays. Whoops. Partially fixes CorrectUnsizedArray.frat.
2010-06-01gl_Normal is a vec3 not a vec4.Eric Anholt
Fixes CorrectSwizzle1.vert.
2010-06-01builtins: Add the mix(gentype, gentype, float) variant.Eric Anholt
The broken-in-mesa Regnum Online shader now parses, except for its preprocessor usage.
2010-06-01Handle GLSL 1.20 implicit type conversions.Eric Anholt
We were nicely constructing a new expression for the implicit type conversion, but then checking that the previous types matched instead of the new expression's type. Fixes errors in Regnum Online shaders.
2010-06-01builtins: Add atan().Eric Anholt
2010-06-01builtins: Add asin().Eric Anholt
2010-06-01ir_constant_expression: Handle several floating point unops.Eric Anholt
Cleans up a bunch of pointless operations in a GStreamer fragment shader.
2010-06-01ir_constant_variable: New pass to mark constant-assigned variables constant.Eric Anholt
This removes a bunch of gratuitous moving around of constant values from constructors. Makes a shader ir I was looking at for structure handling almost readable.
2010-06-01ir_constant_folding: Look at instructions in functions.Eric Anholt
This was broken in the ir_label -> ir_function rework.
2010-06-01ir_swizzle_swizzle: Reduce swizzle chains to a single swizzle.Eric Anholt
2010-06-01ir_vec_index_to_swizzle: Pass to convert indexing of vectors to swizzles.Eric Anholt
This should remove the burden of handling constant vector indexing well from backend codegen, and could help with swizzle optimizations.
2010-06-01ir_expression_flattening: Handle flattening values out of swizzles, too.Eric Anholt
Fixes an uninlined normalize() in CorrectSwizzle2.vert.
2010-06-01ir_expression_flattening: Fix breakage from hierarchichal visitor.Eric Anholt
Similar to other situations where the visitor pattern doesn't fit, in this case we need the pointer to the base instruction in the instruction stream for where to insert any new instructions we generate (not the instruction in the tree we're looking at). By removing the code for setting the base_ir, flattened expressions would end up, for example, before the function definition where they had appeared.
2010-06-01Implement comment handling in the lexer (with test).Carl Worth
We support both single-line (//) and multi-line (/* ... */) comments and add a test for this, (trying to stress the rules just a bit by embedding one comment delimiter into a comment delimited with the other style, etc.). To keep the test suite passing we do now discard any output lines from glcpp that consist only of spacing, (in addition to blank lines as previously). We also discard any initial whitespace from gcc output. In neither case should the absence or presence of this whitespace affect correctness.
2010-06-01Fix #if-skipping to *really* skip the skipped group.Carl Worth
Previously we were avoiding printing within a skipped group, but we were still evluating directives such as #define and #undef and still emitting diagnostics for things such as macro calls with the wrong number of arguments. Add a test for this and fix it with a high-priority rule in the lexer that consumes the skipped content.
2010-06-01gallium: Don't depend directly on staging dir in Xorg template makefileJakob Bornecrantz
2010-06-03tgsi: we don't support indirect input/output registers in SSE codegen yetBrian Paul
Extend the check for indirect addressing of temp regs to include input/output regs. Fixes failure with piglit glsl-texcoord-array.shader_test test when using SSE codegen.
2010-06-03tgsi: whitespace cleanupBrian Paul
2010-06-03gallium: add interpolation parameter to simple shader functionsBrian Paul
This lets us specify linear interpolation instead of perspective interpolation for blit operations. Might be a bit faster.
2010-06-01gallium: Don't always copy the dri driver to the staging dirJakob Bornecrantz
So something in the build keept updating the timestamp on the staging directory causing us to always copy the library to it.
2010-06-01gallium: Create a Xorg driver template MakefileJakob Bornecrantz
2010-06-03util/u_debug: use MAX2 macroBrian Paul