summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-05-28st/mesa: advertise ARB_half_float_vertex when availableMarek Olšák
Both softpipe and llvmpipe pass the piglit half float test.
2010-05-28r300g/swtcl: fix WPOSMarek Olšák
There you are! r300->viewport_state is undefined when using SW TCL. Piglit score (r300g.tests): HW TCL: 231/275 SW TCL: 233/275
2010-05-28r300g/swtcl: avoid an infinite loop if an occl. query doesn't return anythingMarek Olšák
2010-05-27Remove blank lines from output files before comparing.Carl Worth
Recently I'm seeing cases where "gcc -E" mysteriously omits blank lines, (even though it prints the blank lines in other very similar cases). Rather than trying to decipher and imitate this, just get rid of the blank lines. This approach with sed to kill the lines before the diff is better than "diff -B" since when there is an actual difference, the presence of blank lines won't make the diff harder to read.
2010-05-27Add test for token-pasting of integers.Carl Worth
This test was tricky to make pass in the take-2 branch. It ends up passing already here with no additional effort, (since we are lexing integers as string-valued token except when in the ST_IF state in the lexer anyway).
2010-05-27Implement token pasting of integers.Carl Worth
To do this correctly, we change the lexer to lex integers as string values, (new token type of INTEGER_STRING), and only convert to integer values when evaluating an expression value. Add a new test case for this, (which does pass now).
2010-05-27r600g: disable renderingJerome Glisse
Disable rendering to avoid GPU lockup. Use radeondb to debug shader compiler : radeondb -c gallium.bof radeondb -s gallium.json Will print shader generated, best is to use fp demos to test the compiler. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-05-27r600g: various fixesBas Nieuwenhuizen
- enabled flushing a buffer more than once - enabled the blitter for r600_clear - added some more colors to r600_is_format_supported (copied from r600_conv_pipe_format) - r600_set_framebuffer_state now sets rctx->fb_state - more states are saved before a blit (had to add some accounting for the viewport and the vertex elements state) - fixed a few errors with reference counting
2010-05-27r600g: fix driver + shader compiler backend changeJerome Glisse
Change the way we translate from c_compiler to the asic specific representation. Should make things simpler. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-05-27r600g: Integrate into buildJakob Bornecrantz
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-05-27r600g: Fix buffer offsetsJakob Bornecrantz
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-05-27r600g: adapt to latest interfaces changesMarek Olšák
- Wrapped the buffer and texture create/destroy/transfer/... functions using u_resource, which is then used to implement the resource functions. - Implemented texture transfers. I left the buffer and texture transfers separate because one day we'll need a special codepath for textures. - Added index_bias to the draw_*elements functions. - Removed nonexistent *REP and *FOR instructions. - Some pipe formats have changed channel ordering, so I've removed/fixed nonexistent ones. - Added stubs for create/set/destroy sampler views. - Added a naive implementation of vertex elements state (new CSO). - Reworked {texture,buffer}_{from,to}_handle. - Reorganized winsys files, removed dri,egl,python directories. - Added a new build target dri-r600.
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.