summaryrefslogtreecommitdiff
path: root/src/mesa/shader
AgeCommit message (Collapse)Author
2007-03-26special case RETBrian
2007-03-26Get rid of SLANG_OPER_GOTO, start rewrite of 'return' handling.Brian
2007-03-26remove debug abort() callsBrian
2007-03-26Additional error checking for 'return' statements.Brian
2007-03-26undo some debugging hacksBrian
2007-03-26dead code elimination for constant-valued if/then/elseBrian
2007-03-26Fix a few issues with computing storage sizes with respect to swizzles.Brian
2007-03-26In _mesa_lookup_parameter_constant() make sure we return a full, 4-component ↵Brian
swizzle.
2007-03-26remove incorrect assertionsBrian
2007-03-26disable printing shader program debug infoBrian
2007-03-26disable free() until other issues can be fixed...Brian
2007-03-26fix mem leak, add commentsBrian
2007-03-24fix mem leakBrian
2007-03-24disable free(var->aux) -- can lead to segfaultBrian
2007-03-24fix mem leakBrian
2007-03-24fix some mem leaksBrian
2007-03-24Free shader-related context state: _mesa_free_shader_state()Brian
2007-03-24free prog->Attributes in _mesa_delete_program()Brian
2007-03-24fix mistake in _slang_free_ir()Brian
2007-03-24Properly free the slang_ir_node->Store data (use ref counting).Brian
2007-03-24move some code into new slang_ir.c fileBrian
2007-03-24IR utility functionsBrian
2007-03-23Fix issues related to the 'continue' statement.Brian
IR_LOOP now has two children: the body code, and the tail code. Tail code is the "i++" part of a for-loop, or the expression at the end of a "do {} while(expr);" loop. "continue" translates into: "execute tail code; CONT;" Also, the test for infinite do/while loops was incorrect.
2007-03-23consolidate some codeBrian
2007-03-23Add the ability to generate programs that doesn't use condition codes.Brian
ctx->Shader.EmitCondCodes determines if we use condition codes. If not, IF statement uses first operand's X component as the condition. Added OPCODE_BRK0, OPCODE_BRK1, OPCODE_CONT0, OPCODE_CONT1 to handle the common cases of conditional break/continue.
2007-03-23minor tweaksBrian
2007-03-23updated commentBrian
2007-03-22updated commentBrian
2007-03-22Overhaul emit_compare() function.Brian
Previously, comparing vec2, vec3, vec4 was broken. Added IR_EQUAL, IR_NOTEQUAL nodes/operators to compute boolean equality/inequality vs. IR_SEQUAL/IR_SNEQUAL which work component-wise. Use IR_EQUAL/IR_NOTEQUAL for the == and != operators. To compute vec4 equality, use SNE, DP4, SEQ instruction sequence.
2007-03-22First pass at implementing structure compares.Brian
Need to improve this. There may be holes in a structure so we can't just blindly compare the full 4-float registers.
2007-03-22use _mesa_copy_instructions()Brian
2007-03-22In _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow ↵Brian
swizzleOut==NULL. There are times when we don't want to allow swizzling when searching for or adding vector constants. Passing NULL for swizzleOut disables swizzling. This fixes a constant/swizzle bug in link_uniform_vars().
2007-03-22print conditional writemask, if enabledBrian
2007-03-21added SWIZZLE_XYZWBrian
2007-03-21Support for user-defined structures.Brian
struct == and != operators not finished yet. Struct assignment works though.
2007-03-21disable apparently unused codeBrian
2007-03-21indentBrian
2007-03-21merge from masterBrian
2007-03-18Use _mesa_copy_instructions rather than memcpy in _mesa_insert_mvp_code.Oliver McFadden
2007-03-15Fixed a minor typo in the comment near _mesa_copy_instructions.Oliver McFadden
2007-03-15r300: Added _mesa_copy_instructions.Oliver McFadden
2007-03-15added SWIZZLE_XXXX, YYYY, etc. macrosBrian
2007-03-14s/Tranpose/Transpose/Brian
2007-03-14continue prev check-in: save ptr to slang_function for SLANG_OPER_CALLBrian
2007-03-14After we've found the slang_function ptr for a SLANG_OPER_CALL node, save ↵Brian
the ptr in the node for reuse. This can save a tremendous amount of time when resolving types in complex expressions. One particular shader was taking several minutes to compile but now compiles almost instantaneoulsy.
2007-03-14make _slang_typeof_function() staticBrian
2007-03-14remove old assertionBrian
2007-03-13more bug fixing, error checkingBrian
2007-03-13fix a number of issues in _mesa_uniform()Brian
2007-03-13remove bogus assertionBrian