summaryrefslogtreecommitdiff
path: root/src/mesa
AgeCommit message (Collapse)Author
2009-07-01mesa: Unbind depth/stencil surface from pipe_framebuffer when none is attached.José Fonseca
2009-07-01gallium: fix the front face semanticsZack Rusin
mesa allocates both frontface and pointcoord registers within the fog coordinate register, by using swizzling. to make it cleaner and easier for drivers we want each of them in its own register. so when doing compilation from the mesa IR to tgsi allocate new registers for both and add new semantics to the respective declarations.
2009-06-30i915: Fix assertion failure on remapping a non-BO-backed VBO.Eric Anholt
Failure to set the obj->Pointer back to null tripped up the assertion. Bug #22428. (cherry picked from commit 57a06d3a48c9af1067ec05e3ad96c58f4b9b99be)
2009-06-30mesa/vbo: fix compile and replay of nodes ending in a FALLBACKKeith Whitwell
Where vbo save nodes are terminated with a call to DO_FALLBACK(), as in the case of a recursive CallList which is itself within a Begin/End pair, there two problems: 1) The display list node's primitive information was incorrect, stating the cut-off prim had zero vertices 2) On replay, we would get confused by a primitive that started in a node, but was terminated by individual opcodes. This change fixes the first problem by correctly terminating the last primitive on fallback, and the second by forcing the display list to use the Loopback path, converting all nodes into immediate-mode rendering. The loopback fix is a performance hit, but avoiding this would require a fairly large rework of this code.
2009-06-30mesa/dlist: restore missing SAVE_FLUSH_VERTICES in save_ShadeModelKeith Whitwell
Reorganization of ShadeModel to avoid flushing vertices too often ended up never flushing vertices due to omitted line of code.
2009-06-30mesa/vbo: use _lookup_prim_by_nr for debuggingKeith Whitwell
Switch over to specialized enum lookup for primitives
2009-06-30mesa: add debug printer for primitive nameKeith Whitwell
Add a simple version of _mesa_lookup_enum_by_nr() which expects a primitive enum (GL_POINTS..GL_POLYGON). This avoids some annoying duplicates when looking up primitives, such as the GL_FALSE/GL_POINTS clash.
2009-06-30mesa/dlist: shortcircuit some redundant statechanges at compile timeKeith Whitwell
Currently, state-changes in mesa display lists are more or less a verbatim recording of the GL calls made during compilation. This change introduces a minor optimization to recognize and eliminate cases where the application emits redundant state changes, eg: glShadeModel( GL_FLAT ); glBegin( prim ) ... glEnd() glShadeModel( GL_FLAT ); glBegin( prim ) ... glEnd() The big win is when we can eliminate all the statechanges between two primitive blocks and combine them into a single VBO node. This commit implements state-change elimination for Material and ShadeModel only. This is enough to make a start on debugging, etc.
2009-06-29intel: added null ptr checkBrian Paul
This fixes a segfault seen with piglit's fdo20701 test.
2009-06-26glsl: check number of varying variables against the limitBrian Paul
Link fails if too many varying vars. (cherry picked from master, commit cc58fbcf2c5c88f406818db60910f537e03610d6)
2009-06-26mesa: raise MAX_VARYING (number of shader varying vars) to 16Brian Paul
16 is the limit for now because of various 32-bit bitfields. (cherry picked from master, commit 4e762395ef7e8c332c16fd0c11025cfa52763a45)
2009-06-26intel / DRI2: Additional flush of fake front-buffer to real front-bufferIan Romanick
To maintain correctness, the server will copy the real front-buffer to a newly allocated fake front-buffer in DRI2GetBuffersWithFormat. However, if the DRI2GetBuffersWithFormat is triggered by glViewport, this will copy stale data into the new buffer. Fix this by flushing the current fake front-buffer to the real front-buffer in intel_viewport. Fixes bug #22288.
2009-06-26mesa: bump version to 7.5-rc4Brian Paul
2009-06-26glsl: move/simplify error checking for 'return' statementsBrian Paul
2009-06-26glsl: overhaul 'return' statement handlingBrian Paul
A new node type (SLANG_OPER_RETURN_INLINED) is used to denote 'return' statements inside inlined functions which need special handling. All glean glsl1 tests pass for EmitContReturn=FALSE and TRUE.
2009-06-26glsl: predicate assignments according to __returnFlagBrian Paul
Fixes glean "function with early return (3)" case (when EmitContReturn=FALSE).
2009-06-26glsl: added slang_variable::is_global fieldBrian Paul
2009-06-26glsl: silence a problem warningBrian Paul
2009-06-26glsl: code refactoring for return statementsBrian Paul
2009-06-26glsl: fix assorted regressions related to early-return-removalBrian Paul
2009-06-26glsl: comments, field reorderingBrian Paul
2009-06-26glsl: rework loop nesting codeBrian Paul
2009-06-26glsl: remove test for loop unrolling when we hit conditional cont/breakBrian Paul
This is no longer needed since we added the new _slang_loop_contains_continue_or_break() function/test.
2009-06-26glsl: checkpoint: predicate __retVal = expr with __returnFlagBrian Paul
The glean "function with early return (1)" test passes now.
2009-06-26glsl: use new helper functions in _slang_gen_logical_and/or()Brian Paul
2009-06-26glsl: add commentsBrian Paul
2009-06-26glsl: checkpoint: replace 'return' with __returnFlag=true;Brian Paul
Needed for "remove early returns" transformation.
2009-06-26glsl: fix up scoping for parent/children in slang_operation_copy()Brian Paul
This will need more testing, but no regressions seen so far.
2009-06-26glsl: fix uninitialized var in _slang_gen_for_without_continue()Brian Paul
2009-06-26glsl: added slang_operation_free_children()Brian Paul
2009-06-26glsl: added slang_oper_num_children() helperBrian Paul
2009-06-26glsl: check-point: declare _returnFlagBrian Paul
2009-06-26glsl: added slang_operation_insert_child()Brian Paul
2009-06-26glsl: use slang_generate_declaration() to consolidate some codeBrian Paul
2009-06-26glsl: remove obsolete commentBrian Paul
2009-06-26st/mesa: query PIPE_CAP_TGSI_CONT_SUPPORTEDBrian Paul
2009-06-26glsl: implement _slang_gen_while_without_continue()Brian Paul
2009-06-26glsl: fix a bug involving 'continue' in 'for' loopsBrian Paul
Need to execute the for loop's increment code before we continue. Add a slang_assemble_ctx::CurLoopOper field to keep track of the containing loop and avoid the "cont if true" path in this situation. Plus, assorted clean-ups.
2009-06-26glsl: added slang_oper_child_const()Brian Paul
2009-06-26glsl: use _slang_loop_contains_continue_or_break() to check for unrollingBrian Paul
The previous test failed for nested loops.
2009-06-26glsl: use new _slang_loop_contains_continue() helper functionBrian Paul
2009-06-26glsl: implement continue->break translation for do-while loopsBrian Paul
2009-06-26glsl: added slang_operation_literal_int/bool() helper functionsBrian Paul
2009-06-26glsl: don't allocate 0-length children array in slang_operation_copy()Brian Paul
2009-06-26glsl: remove debug code, misc clean-upBrian Paul
2009-06-26glsl: implement continue->break transformation for for-loopsBrian Paul
2009-06-26glsl: added slang_operation_add_children() and slang_oper_child() helpersBrian Paul
2009-06-26glsl: added slang_assemble_ctx::EmitContReturn field, initBrian Paul
2009-06-26glsl: don't unroll loops containing continue/breakBrian Paul
Just search the AST in _slang_can_unroll_for_loop().
2009-06-26Revert "slang: if/else/break & if/else/continue work for unrolled loops"Brian Paul
We should just check if the loop contains a continue/break in the _slang_can_unroll_for_loop() test function... This reverts commit 989856bde47d699d7e18798df4013fbf962e1d4b. Conflicts: src/mesa/shader/slang/slang_codegen.h