Age | Commit message (Collapse) | Author | |
---|---|---|---|
2008-08-05 | mesa: glsl: additional type checking for assignments, inequalities | Brian Paul | |
2008-08-05 | mesa: glsl: re-enable assignment type checking | Brian Paul | |
2008-08-05 | mesa: glsl: re-org of intermediate/temp storage | Brian Paul | |
Simplify the code for allocating storage for intermediate results. Use fewer temps in some cases. Also, use new asm vec4_move intrinsic instead of regular assigments in various constructors. For example: float f; vec3 v; v.xyz = f; is not legal GLSL, so do this instead: __asm vec4_move v.xyz, f; // note: f will auto-expand into f.xxxx Plus, fix assorted bugs in structure comparison. | |||
2008-08-05 | mesa: glsl: disable broken assignment type checking for now | Brian Paul | |
2008-08-04 | mesa: glsl: check struct types in _slang_assignment_compatible() | Brian Paul | |
2008-08-04 | mesa: glsl: varying vars can't be user-defined structs | Brian Paul | |
2008-08-04 | mesa: glsl: if/while/do condition must be boolean | Brian Paul | |
2008-08-04 | mesa: glsl: additional type checking for ?: and = operators | Brian Paul | |
2008-08-04 | mesa: glsl: don't allow comparision of arrays | Brian Paul | |
2008-08-04 | mesa: glsl: error on const-qualified array declarations | Brian Paul | |
2008-08-04 | mesa: glsl: added null ptr check | Brian Paul | |
2008-08-04 | mesa: glsl: check that rhs of const var initializer is also const | Brian Paul | |
2008-08-04 | mesa: glsl: fix initialize size error check | Brian Paul | |
2008-08-04 | mesa: glsl: added initializer size/type error checking | Brian Paul | |
2008-07-25 | mesa: glsl: assorted fixes for resolving polymorphic functions | Brian Paul | |
Plus, - fix some issues in casting function arguments to format param types. - fix some vec/mat constructor bugs - find/report more syntax/semantic errors | |||
2008-07-25 | mesa: glsl: additional error detection | Brian Paul | |
Plus begin some fixes for vec/matrix constructors. | |||
2008-07-24 | mesa: gls: fix broken else clause of conditional break/continue | Brian Paul | |
In the following case: for () { if (cond) break; // or continue; else something; } The "something" block didn't get emitted. | |||
2008-07-24 | mesa: Silence compiler warning on windows. | Michal Krol | |
2008-07-23 | mesa: glsl: mark constructor params as const | Brian Paul | |
2008-07-22 | mesa: glsl: rework swizzle storage handling | Brian Paul | |
Build on the heirarchal approach implemented for arrays/structs. | |||
2008-07-22 | mesa: glsl: implement constructor functions for user-defined types | Brian Paul | |
2008-07-21 | mesa: fix +=, -=, etc. operators | Brian Paul | |
2008-07-21 | mesa: assorted glsl uniform/attribute fixes | Brian Paul | |
Fix incorrect uniform/attribute size query results. Add missing error checking for glUniform, glUniformMatrix params Fix an array size/allocation error. | |||
2008-07-21 | mesa: remove debug code | Brian Paul | |
2008-07-18 | mesa: glsl: various writemask/swizzle improvements and clean-ups | Brian Paul | |
2008-07-18 | mesa: rework array/struct addressing code. | Brian Paul | |
The slang_ir_storage type now has a pointer to parent storage to represent storage of an array element within an array, or a field within a struct. This fixes some problems related to addressing of fields/elements in non- trivial cases. More work to follow. | |||
2008-07-15 | mesa: fix some function inlining bugs | Brian Paul | |
Need to add local vars of original function to the new scope's variable list (though the DECLs were already present). In slang_operation_copy() call slang_replace_scope() for SLANG_OPER_BLOCK_NEW_SCOPE opers. | |||
2008-07-15 | mesa: Silence compiler warnings on Windows. | Michal Krol | |
2008-07-08 | mesa: fix bug/failure in recursive function inlining | Brian Paul | |
Fixes a failure for cases such as y = f(a, f(a, b)) All the usual tests still pass but regressions are possible... | |||
2008-07-03 | mesa: fix array storage allocation bug | Brian Paul | |
2008-07-01 | mesa: fix a GLSL vector subscript/writemask bug | Brian Paul | |
This fixes a failure for cases like: vec4 v; v[1] *= 2.0; The v[1] actually acts like a writemask, equivalent to v.y The fix is a bit convoluted, but will do for now. cherry-picked from master | |||
2008-07-01 | mesa: move some functions | Brian Paul | |
cherry-picked from master | |||
2008-07-01 | mesa: better function inlining in the presence of 'return' statements | Brian Paul | |
Before, the presence of a 'return' statement always prevented inlining a function. This was because we didn't want to accidentally return from the _calling_ function. We still need the semantic of 'return' when inlining but we can't always use unconditional branches/jumps (GPUs don't always support arbitrary branching). Now, we allow inlining functions w/ return if the return is the last statement in the function. This fixes the common case of a function that returns a value, such as: vec4 square(const in vec4 x) { return x * x; } which effectively compiles into: vec4 square(const in vec4 x) { __retVal = x * x; return; } The 'return' can be no-op'd now and we can inline the function. cherry-picked from master | |||
2008-05-20 | fix incorrect sampler numbering/indexing. | Brian Paul | |
All samplers indexes were zero. cherry-picked from master (b6fb0940c226373ac235a5d327d3fcfd742bc6b9) | |||
2008-05-14 | fix-up inlined/non-inlined function inconsistencies | Brian Paul | |
cherry-picked from master | |||
2008-05-14 | rewrite some of the mat*mat, mat*vec intrinsics | Brian Paul | |
Also, remove obsolete matrix codegen code. cherry-picked from master | |||
2008-05-14 | mesa: minor bug fixes, null ptr checks, dead code removal | Brian Paul | |
2008-03-13 | mesa: fix (harmless?) assignment in assert | Keith Whitwell | |
2007-10-26 | Re-implement GLSL texture sampler variables. | Brian | |
GLSL sampler variables indicate which texture unit to use for TEX instructions. Previously, this was baked into the fragment/vertex program and couldn't be readily changed once set. Now, SamplerUnits[] array indicates which texture unit is to be used for each sampler variable. These values are set with glUniform1i(). This is extra state that must be passed to the fragment/vertex program executor at runtime. | |||
2007-10-24 | Implement gl_PointCoord attribute for GLSL fragment shaders. | Brian | |
Contains the normalized fragment position within a point sprite. | |||
2007-07-26 | Fix function call bug 11731. Also, fix up IR_CALL/IR_FUNC confusion. | Brian | |
2007-07-26 | generate error upon writing to varying var in fragment program (bug 11733) | Brian | |
2007-07-12 | fix swizzle-related bug 11534 | Brian | |
2007-07-04 | Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵ | Brian | |
of -I flags. | |||
2007-07-03 | add code for stpq, rgba writemasks in make_writemask(), bug 11404 | Brian | |
2007-05-14 | comment about fixing uniform structs | Brian | |
2007-05-11 | user-declared uniform structs not supported yet (see bug 10908) | Brian | |
2007-05-01 | Rewrite of slang_inline_asm_function() to do full parameter/argument ↵ | Brian | |
substitution. We had been taking a short-cut w/ asm inlines by just using parameters in order rather than doing full formal parameter -> actual argument substitution like ordinary inlined function calls. This worked in all cases but one: mix() in which the parameters were used in a different order. This fixes bug 10821. | |||
2007-04-24 | fix double const, move an assertion | Karl Schultze | |
2007-04-21 | Remove all the USE_MEMPOOL debug code. | Brian | |