summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-06-26glsl: move/simplify error checking for 'return' statementsglsl-continue-returnBrian Paul1-22/+14
2009-06-26glsl: overhaul 'return' statement handlingBrian Paul3-215/+212
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-25glsl: predicate assignments according to __returnFlagBrian Paul1-4/+29
Fixes glean "function with early return (3)" case (when EmitContReturn=FALSE).
2009-06-25glsl: added slang_variable::is_global fieldBrian Paul1-0/+1
2009-06-25glsl: silence a problem warningBrian Paul1-1/+2
2009-06-25glsl: code refactoring for return statementsBrian Paul1-70/+88
2009-06-25glsl: fix assorted regressions related to early-return-removalBrian Paul2-14/+35
2009-06-25glsl: comments, field reorderingBrian Paul1-1/+4
2009-06-25glsl: rework loop nesting codeBrian Paul2-41/+87
2009-06-25glsl: remove test for loop unrolling when we hit conditional cont/breakBrian Paul1-4/+0
This is no longer needed since we added the new _slang_loop_contains_continue_or_break() function/test.
2009-06-24glsl: checkpoint: predicate __retVal = expr with __returnFlagBrian Paul1-26/+60
The glean "function with early return (1)" test passes now.
2009-06-24glsl: use new helper functions in _slang_gen_logical_and/or()Brian Paul1-15/+9
2009-06-24glsl: add commentsBrian Paul1-0/+3
2009-06-24glsl: checkpoint: replace 'return' with __returnFlag=true;Brian Paul1-7/+68
Needed for "remove early returns" transformation.
2009-06-24glsl: fix up scoping for parent/children in slang_operation_copy()Brian Paul1-0/+9
This will need more testing, but no regressions seen so far.
2009-06-24glsl: fix uninitialized var in _slang_gen_for_without_continue()Brian Paul1-1/+1
2009-06-24glsl: added slang_operation_free_children()Brian Paul2-0/+17
2009-06-24glsl: added slang_oper_num_children() helperBrian Paul1-0/+7
2009-06-24glsl: check-point: declare _returnFlagBrian Paul1-0/+33
2009-06-23glsl: added slang_operation_insert_child()Brian Paul2-0/+23
2009-06-23glsl: use slang_generate_declaration() to consolidate some codeBrian Paul1-31/+37
2009-06-23glsl: remove obsolete commentBrian Paul1-3/+0
2009-06-23st/mesa: query PIPE_CAP_TGSI_CONT_SUPPORTEDBrian Paul1-0/+5
2009-06-23gallium: added PIPE_CAP_TGSI_CONT_SUPPORTED queryBrian Paul4-0/+7
Does the driver support TGSI_OPCODE_CONT? If not, the GLSL compiler will generate code such that 'continue' statements are converted into 'breaks'.
2009-06-23glsl: implement _slang_gen_while_without_continue()Brian Paul1-82/+115
2009-06-23glsl: fix a bug involving 'continue' in 'for' loopsBrian Paul2-23/+44
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-23glsl: added slang_oper_child_const()Brian Paul1-0/+8
2009-06-23glsl: use _slang_loop_contains_continue_or_break() to check for unrollingBrian Paul1-5/+36
The previous test failed for nested loops.
2009-06-18glsl: use new _slang_loop_contains_continue() helper functionBrian Paul1-5/+126
2009-06-18glsl: implement continue->break translation for do-while loopsBrian Paul1-15/+219
2009-06-18glsl: added slang_operation_literal_int/bool() helper functionsBrian Paul1-0/+26
2009-06-18glsl: don't allocate 0-length children array in slang_operation_copy()Brian Paul1-6/+7
2009-06-18glsl: remove debug code, misc clean-upBrian Paul1-5/+0
2009-06-18glsl: implement continue->break transformation for for-loopsBrian Paul1-3/+167
2009-06-18glsl: added slang_operation_add_children() and slang_oper_child() helpersBrian Paul2-0/+25
2009-06-18glsl: added slang_assemble_ctx::EmitContReturn field, initBrian Paul2-0/+4
2009-06-18demos: improve argv parsing in fslight.cBrian Paul1-2/+6
2009-06-17glsl: don't unroll loops containing continue/breakBrian Paul1-0/+6
Just search the AST in _slang_can_unroll_for_loop().
2009-06-17Revert "slang: if/else/break & if/else/continue work for unrolled loops"Brian Paul2-38/+7
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
2009-06-17glsl: Added gl_shader_state::EmitContReturn fieldBrian Paul2-0/+2
This is the start of a glsl-continue-return feature branch to support a GLSL code generator option for 'continue' and 'return' statements. Some targets don't support CONT or RET statements so we'll need to try to generate code that does not use them...
2009-06-17glsl: call _mesa_postprocess_program(), disabledBrian Paul1-0/+8
2009-06-17mesa: silence warningBrian Paul1-0/+2
2009-06-17mesa: added _mesa_postprocess_program() to aid shader debuggingBrian Paul2-0/+60
2009-06-17radeon: Flush command buffer on viewport changeJerome Glisse1-0/+1
We flush the command buffer so we don't emit mixed state (with new and previous buffer size) command buffer, this is especialy affecting zbuffer states.
2009-06-17r300: don't emit vap index offset on r5xx hw when using csJerome Glisse1-1/+1
vap index offset is programmed to 0 by the kernel, it would add work to kernel checker to allow userspace programming of this so it's now disallowed with CS on KMS.
2009-06-17GLX: attempt to fix glean makeCurrent test cases.Dave Airlie2-2/+6
Two parts to this: One we don't keep pointers to possibly freed memory anymore once we unbind the drawables from the context. Brian I need to figure out what the comment you made there, can we get a glean/piglit test so we can fix it properly? If the new gc is the same as the oldGC, we call the unbind even though we just bound it in that function. doh.
2009-06-17radeon: fix warnings in wrapper with libdrmDave Airlie1-15/+15
2009-06-16Merge branch 'mesa_7_5_branch'Brian Paul26-105/+215
Conflicts: src/mesa/main/api_validate.c
2009-06-16i965: fix bugs in projective texture coordinatesBrian Paul5-20/+54
For the TXP instruction we check if the texcoord is really a 4-component atttibute which requires the divide by W step. This check involved the projtex_mask field. However, the projtex_mask field was being miscalculated because of some confusion between vertex program outputs and fragment program inputs. 1. Rework the size_masks calculation so we correctly set bits corresponding to fragment program input attributes. 2. Rename projtex_mask to proj_attrib_mask since we're interested in more than just texcoords (generic varying vars too). 3. Simply the indexing of the size_masks and proj_attrib_mask fields. 4. The tracker::active[] array was mis-dimensioned. Use MAX_PROGRAM_TEMPS instead of a magic number. 5. Update comments, add new assertions. With these changes the Lightsmark demo/benchmark renders correctly, until we eventually hit a GPU lockup...
2009-06-16softpipe: fix out of bounds quad rasterization bugBrian Paul1-3/+6
For some triangles we can generate quads which lie just outside the surface bounds. Just check the quad's mask before trying to emit/process the quad. Fixes failed assertion in Lightsmark.