summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-05-27r600g: Initial importJerome Glisse
2010-05-27Add placeholder tokens to support pasting with empty arguments.Carl Worth
Along with a passing test to verify that this works.
2010-05-27llvmpipe: s/bool/boolean/Brian Paul
2010-05-27llvmpipe: s/bool/booleanBrian Paul
2010-05-27Add test for macro invocations with empty arguments.Carl Worth
This case was recently solved on the take-2 branch.
2010-05-27Provide support for empty arguments in macro invocations.Carl Worth
For this we always add a new argument to the argument list as soon as possible, without waiting until we see some argument token. This does mean we need to take some extra care when comparing the number of arguments with the number of expected arguments. In addition to matching numbers, we also support one (empty) argument when zero arguments are expected. Add a test case here for this, which does pass.
2010-05-27sw/xlib: avoid dereferencing a null pointerBrian Paul
2010-05-27gallivm: add assertions to check type of phi variablesBrian Paul
2010-05-27mesa: fix incorrect GL_DEPTH_STENCIL_ATTACHMENT format checkBrian Paul
We want to check the incoming renderbuffer format, not the (potentially non-existant) current attachment. Fixes segfault w/ fbotexture -ds2. NOTE: this will be applied to the 7.8 branch too.
2010-05-27r300g/swtcl: fix secondary color and back-face color outputsMarek Olšák
These piglit tests have been fixed: - bgra-sec-color-pointer - glsl-routing See comments at the beginning of r300_vs_draw.c WPOS is implemented too but it doesn't work yet. I'm still working on it.
2010-05-27Make two list-processing functions do nothing with an empty list.Carl Worth
This just makes these functions easier to understand all around. In the case of _token_list_append_list this is an actual bug fix, (where append an empty list onto a non-empty list would previously scramble the tail pointer of the original list).
2010-05-27llvmpipe: Refer to my personal udis86 repository.José Fonseca
As it has a bunch of fixes/additions not merged by upstream yet.
2010-05-27util: Also add a define for the dynamic library's prefix.José Fonseca
2010-05-27egl/mks: remove extra param from function callBrian Paul
2010-05-27egl_g3d: add missing param to egl_g3d_st_manager_get_egl_image()Brian Paul
2010-05-27Add test 56 for a comma within the expansion of an argument.Carl Worth
This case was tricky on the take-2 branch. It happens to be passing already here.
2010-05-27Avoid treating an expanded comma as an argument separator.Carl Worth
That is, a function-like invocation foo(x) is valid as a single-argument invocation even if 'x' is a macro that expands into a value with a comma. Add a new COMMA_FINAL token type to handle this, and add a test for this case, (which passes).
2010-05-27fbdev: some hacking to get the driver to compile (untested)Brian Paul
2010-05-27update linux-fbdev configBrian Paul
2010-05-27vbo: comments and whitespaceBrian Paul
2010-05-27vbo: remove unused prototypeBrian Paul
2010-05-27vbo: remove dead codeBrian Paul
2010-05-27vbo: update/add commentsBrian Paul
2010-05-27mesa: Remove unnecessary headers.Vinson Lee
2010-05-27egl: Return NULL if we fail to load a default driverKristian Høgsberg
2010-05-26mesa: remove unused includesBrian Paul
2010-05-26mesa: rewrite _mesa_get_handle() and add some commentsBrian Paul
2010-05-26mesa: move GLSL uniform functions into new source fileBrian Paul
2010-05-26st/mesa: Remove unnecessary headers.Vinson Lee
2010-05-26Reimplement ir_function_inlining_visitor using ir_hierarchical_vistorIan Romanick
2010-05-26Reimplement ir_copy_propagation_visitor using ir_hierarchical_vistorIan Romanick
2010-05-26Add support (and test) for an object-to-function chain with the parens in ↵Carl Worth
the content. That is, the following case: #define foo(x) (x) #define bar bar(baz) which now works with this (ugly) commit. I definitely want to come up with something cleaner than this.
2010-05-26Add two tests developed on the take-2 branch.Carl Worth
The define-chain-obj-to-func-parens-in-text test passes here while the if-with-macros test fails.
2010-05-26Reimplement ir_expression_flattening_visitor using ir_hierarchical_vistorIan Romanick
2010-05-26Treat newlines as space when invoking a function-like macro invocation.Carl Worth
This adds three new pieces of state to the parser, (is_control_line, newline_as_space, and paren_count), and a large amount of messy code. I'd definitely like to see a cleaner solution for this. With this fix, the "define-func-extra-newlines" now passes so we put it back to test #26 where it was originally (lately it has been known as test #55). Also, we tweak test 25 slightly. Previously this test was ending a file function-like macro name that was not actually a macro (not followed by a left parenthesis). As is, this fix was making that test fail because the text_line production expects to see a terminating NEWLINE, but that NEWLINE is now getting turned into a SPACE here. This seems unlikely to be a problem in the wild, (function macros being used in a non-macro sense seems rare enough---but more than likely they won't happen at the end of a file). Still, we document this shortcoming in the README.
2010-05-26All macro lookups should be of type macro_t, not string_list_t.Carl Worth
This is what I get for using a non-type-safe hash-table implementation.
2010-05-26ir_reader: Read record_refs.Kenneth Graunke
Also changes the print visitor to not emit extraneous parenthesis.
2010-05-26ir_reader: Fix reading of array deferences and correct error messages.Kenneth Graunke
Previously, the syntax was (array_ref <variable name> <index>), but the subject is now a general rvalue (not a name). In particular, it might be a (var_ref ...). Also, remove "expected ... or (swiz)" from error messages; swiz is not allowed inside a var_ref.
2010-05-26Fix setting the maximum accessed array elementIan Romanick
Array dereferences now point to variable dereferences instead of pointing directly to variables. This necessitated some changes to the way the variable is accessed when setting the maximum index array element.
2010-05-26ir_dereference::mode is no longer used, kill with fireIan Romanick
2010-05-26Refactor whole-variable assigment checking into member functionIan Romanick
2010-05-26Refactor ir_dereference data fields to subclassesIan Romanick
2010-05-26Replace open coded deref navigation with hierarchical visitorsIan Romanick
2010-05-26Refactor ir_dereference support for ir_visitorIan Romanick
Move the accept method for visitors from ir_dereference to the derived classes.
2010-05-26Refactor ir_dereference support for ir_hierarchical_visitorIan Romanick
Move the accept method for hierarchical visitors from ir_dereference to the derived classes. This was mostly straight-forward, but I suspect that ir_dead_code_local may be broken now.
2010-05-26Begin refactoring ir_dereferenceIan Romanick
Create separate subclasses of ir_dereference for variable, array, and record dereferences. As a side effect, array and record dereferences no longer point to ir_variable objects directly. Instead they each point to an ir_dereference_variable object. This is the first of several steps in the refactoring process. The intention is that ir_dereference will eventually become an abstract base class.
2010-05-26Enable hardware mipmap generation for radeon.Will Dyson
Use _mesa_meta_GenerateMipmap. It is Fast Enough(tm). Signed-off-by: Maciej Cencora <m.cencora@gmail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-05-26Fix image_matches_texture_obj() MaxLevel checkWill Dyson
When generating or uploading a new (higher) mipmap level for an image, we can need to allocate a miptree for a level greater than texObj->MaxLevel. Signed-off-by: Maciej Cencora <m.cencora@gmail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-05-26Fallback to software render if there is no miptree for an imageWill Dyson
This can happen when checking if a software fallback for a higher level operation (such as GenerateMipmap) is needed. Signed-off-by: Maciej Cencora <m.cencora@gmail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-05-27r300g: decouple drawing code and two-sided stencil refvalue fallbackMarek Olšák
It's now more separate from the rest of the driver and it can be disabled by commenting out just 1 line. Well, I couldn't make the previous version work with SW TCL reliably, that's the reason of this little rework.