summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-05-30st/egl: Fix eglCopyBuffers.Chia-I Wu
It was broken since surface_copy -> resource_copy_region transition.
2010-05-30st/egl: Initialize KMS backend from an fd.Chia-I Wu
Check if the native native is EGL_DEFAULT_DISPLAY. If not, treat it as an fd.
2010-05-29r300: fix blits for textures of width/height greater than 2048 on r5xxMarek Olšák
Yes I am fixing r300c ... who knew?
2010-05-29r600g: remove unused variableMarek Olšák
2010-05-29r600g: fix gallium function parametersMarek Olšák
2010-05-29r600g: make a local copy of viewport stateMarek Olšák
2010-05-29Merge branch 'take-2'Carl Worth
The take-2 branch started over with a new grammar based directly on the grammar from the C99 specification. It doesn't try to capture things like balanced sets of parentheses for macro arguments in the grammar. Instead, it merely captures things as token lists and then performs operations like parsing arguments and expanding macros on those lists. We merge it here since it's currently behaving better, (passing the entire test suite). But the code base has proven quite fragile really. Several of the recently added test cases required additional special cases in the take-2 branch while working trivially on master. So this merge point may be useful in the future, since we might have a cleaner code base by coming back to the state before this merge and fixing it, rather than accepting all the fragile imperative/list-munging code from the take-2 branch.
2010-05-29Add three more tests cases recently added to the take-2 branch.Carl Worth
The 071-punctuator test is failing only trivially (whitespace change only). And the 072-token-pasting-same-line.c test passes just fine here, (more evidence perhaps that the approach in take-2 is more trouble than it's worth?). The 099-c99-example test case is the inspiration for much of the rest of the test suite. It amazingly passes on the take-2 branch, but doesn't pass here yet.
2010-05-29Add killer test case from the C99 specification.Carl Worth
Happily, this passes now, (since many of the previously added test cases were extracted from this one).
2010-05-29Add test and fix bugs with multiple token-pasting on the same line.Carl Worth
The list replacement when token pasting was broken, (failing to properly update the list's tail pointer). Also, memory management when pasting was broken, (modifying the original token's string which would cause problems with multiple calls to a macro which pasted a literal string). We didn't catch this with previous tests because they only pasted argument values.
2010-05-29Fix pass-through of '=' and add a test for it.Carl Worth
Previously '=' was not included in our PUNCTUATION regeular expression, but it *was* excldued from our OTHER regular expression, so we were getting the default (and hamful) lex action of just printing it. The test we add here is named "punctuator" with the idea that we can extend it as needed for other punctuator testing.
2010-05-29i915g: Rename winsys c fileJakob Bornecrantz
2010-05-29i915g: Move pci id to winsys structJakob Bornecrantz
2010-05-29targets/egl: Give egl targets a good build enviromentJakob Bornecrantz
2010-05-28egl_dri2: Split driver loading out into its own functionKristian Høgsberg
2010-05-28egl_dri2: Check for xcb_connect() failure the right wayKristian Høgsberg
It always returns a valid xcb_connection_t, but if connection failed, it's in the error state.
2010-05-29r600g: fix buildMarek Olšák
2010-05-29llvmpipe: adapt to clear interface changesRoland Scheidegger
with some newfangled code, should support separate depth/stencil clears. Needs some testing.
2010-05-29i965g: adapt to clear interface changesRoland Scheidegger
just like i915g, should in theory support separate depth/stencil clears (untested), with the same 2d blitter hacks.
2010-05-29i915g: adapt to clear interface changesRoland Scheidegger
should in theory support separate depth/stencil clears (untested). Also fix some format omissions?
2010-05-29r300g: adapt to clear interface changesRoland Scheidegger
should support separate depth/stencil clears just fine with changed u_blitter.
2010-05-29nv50: adapt to clear interface changesRoland Scheidegger
should support separate depth/stencil clears just fine.
2010-05-29nvfx: adapt to clear interface changesRoland Scheidegger
2010-05-29svga: adapt to clear interface changesRoland Scheidegger
this should support separate stencil/depth clears just fine.
2010-05-29softpipe: adapt to clear interface changesRoland Scheidegger
2010-05-29rbug: adapt to clear interface changesRoland Scheidegger
2010-05-29trace: adapt to clear interface changesRoland Scheidegger
2010-05-29identity: adapt to clear interface changesRoland Scheidegger
2010-05-29fo: adapt to clear interface changesRoland Scheidegger
2010-05-29cell: adapt to clear interface changesRoland Scheidegger
2010-05-29st/python: adapt to clear interface changesRoland Scheidegger
2010-05-28Add two more (failing) tests from the take-2 branch.Carl Worth
These tests were recently fixed on the take-2 branch, but will require additional work before they will pass here.
2010-05-28Add two (passing) tests from the take-2 branch.Carl Worth
These two tests were tricky to make work on take-2, but happen to already eb working here.
2010-05-28Tweak test 25 slightly, (so the non-macro doesn't end the file).Carl Worth
This isn't a problem here, but on the take-2 branch, it was trickier at one point to make a non-macro work when the last token of the file. So we use the simpler test case here and defer the other case until later.
2010-05-28Remove some blank lines from the end of some test cases.Carl Worth
To match what we have done on the take-2 branch to these test cases.
2010-05-28Perform macro by replacing tokens in original list.Carl Worth
We take the results of macro expansion and splice them into the original token list over which we are iterating. This makes it easy for function-like macro invocations to find their arguments since they are simply subsequent tokens on the list. This fixes the recently-introduced regressions (tests 55 and 56) and also passes new tests 60 and 61 introduced to strees this feature, (with macro-argument parentheses split between a macro value and the textual input).
2010-05-29st/mesa: use new ability to clear only depth or stencilRoland Scheidegger
2010-05-29util: adapt to clear interface changesRoland Scheidegger
2010-05-28gallium: clear interface changesRoland Scheidegger
clears were a bit limited in gallium: - no scissoring (OGL only) nor explicit rectangle list (d3d9) - no color/stencil masks (OGL only) - no separate depth/stencil clears (d3d9/d3d10/OGL) - cannot really clear single color buffer (only with resource_fill_region) Additionally, d3d can clear surfaces not currently bound to the framebuffer. It is, however, not easy to find some common ground what a clear should be able to do, due to both API requirements and also hw differences (a case which might be able to use a special clear path on one hw might need a "normal" quad render on another). Hence several clear methods are provided, and a driver should implement all of them. - clear: slightly modified to also be able to clear only depth or stencil in a combined depth/stencil surface. This is however optional based on driver capability though ideally it wouldn't be optional. AFAIK this is in fact something used by applications quite a bit. Otherwise, for now still doesn't allow clearing with scissors/mask (or single color buffers) - clearRT: clears a single (potentially unbound) color surface. This was formerly roughly known as resource_fill_region. mesa st will not currently use this, though potentially would be useful for GL ClearBuffer. - clearDS: similar to above except for depth stencil surfaces. Note that clearDS/clearRT currently handle can handle partial clear. This might change however.
2010-05-28i965: Add cache unit -> bo name mapping for more gen6 state objects.Eric Anholt
This will help in bufmgr debugging and aub dumping.
2010-05-28i965: fix PIPE_CONTROL command for gen6.Zou Nan hai
Signed-off-by: Zou Nan hai <nanhai.zou@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2010-05-28llvmpipe: add PIPE_BUFFER to assertionBrian Paul
Fixes regression from commit f2e05acac931889e0820e1cc5d7ea810048a6b5f.
2010-05-28softpipe: add PIPE_BUFFER to assertionBrian Paul
Fixes regression from commit f2e05acac931889e0820e1cc5d7ea810048a6b5f.
2010-05-28llvmpipe: add out of memory checking to triangle setup pathBrian Paul
2010-05-28glsl: change uniform location/offset encodingBrian Paul
This lets Mesa work like other OpenGL implementations with regard to indexing uniform arrays. See comments for details. Note: this is a candidate for the 7.8 branch.
2010-05-28Simplify calling conventions of functions under expand_token_list_onto.Carl Worth
We previously had a confusing thing where _expand_token_onto would return a non-zero value to indicate that the caller should then call _expand_function_onto. It's much cleaner for _expand_token_onto to just do what's needed and call the necessary function.
2010-05-28Stop interrupting the test suite at the first failure.Carl Worth
This behavior was useful when starting the implementation over ("take-2") where the whole test suite was failing. This made it easy to focus on one test at a time and get each working. More recently, we got the whole suite working, so we don't need this feature anymore. And in the previous commit, we regressed a couple of tests, so it's nice to be able to see all the failures with a single run of the suite.
2010-05-28Revert "Add support for an object-to-function chain with the parens in the ↵Carl Worth
content." This reverts commit 7db2402a8009772a3f10d19cfc7f30be9ee79295 It doesn't revert the new test case from that commit, just the extremely ugly second-pass implementation.
2010-05-28r300g: remove unnecessary breaksMarek Olšák
2010-05-28r300g: report vertex format support in is_format_supportedMarek Olšák