aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_compile_operation.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove all the USE_MEMPOOL debug code.Brian2007-04-211-34/+8
|
* Use new memory pool allocator. Lots of debug code still in place...Brian2007-04-211-0/+27
|
* new varnames in slang_operation_insert()Brian2007-04-211-17/+17
|
* fix memleak in slang_operation_insert()Brian2007-04-211-0/+2
|
* Rework matrix-related code.Brian2007-03-081-0/+10
| | | | | | | | | | | | GLSL matrices are stored in column-major order while GL_ARB_vertex/fragment_program use row-major. So, need to use STATE_MATRIX_TRANSPOSE for built-in matrices. Unfortunately, this means that the expression M * V isn't very efficient since we need to extract the rows out of M. And that's the typical expression for vertex transformation: gl_ModelViewProjectionMatrix * gl_Position. Solve this inefficiency by looking for M*V expressions and replacing them with V*Transpose(M). Also, add support for GLSL 1.20's MatrixTranspose, Inverse and InverseTranspose matrices.
* s/equal/EQUAL/, fix bugs in logical or/and code.Brian2007-03-071-0/+3
|
* re-enable var scope destruct in slang_operation_destruct()Brian2007-02-261-4/+0
|
* change all enum tokens to uppercaseBrian2007-02-161-1/+1
|
* Add literal_size field to slang_operation.Brian2007-02-031-0/+2
| | | | | | Used to track the number of components in a float/int/bool literal. Helps with some typechecking things. Fixes problems with calls such as "distance(v2, vec2(1.0, 2.0))"
* temporary disable some memory deallocations to work around a memory ↵Brian2007-01-041-0/+3
| | | | corruption bug
* Lots of assorted changes.Brian2006-12-151-0/+11
| | | | | | Implement assignment/move for types larger than 4 floats. Fix codegen bug for "return expr" in inlined functions. More clean-up of storage allocation code (slang_resolve_storage).
* Checkpoint new GLSL compiler back-end to produce fp/vp-style assembly ↵Brian2006-12-131-9/+93
| | | | instructions.
* indent, comments, etcBrian Paul2006-11-281-54/+71
|
* Cleanup code. Change constructor prototype.Michal Krol2006-05-161-5/+1
|
* Remove carriage-return chars *ONLY*.Michal Krol2006-04-181-102/+102
|
* More GLSL code:Michal Krol2006-02-271-3/+1
| | | | | | | | | | | | | - add x86 code generator; - add full support for uniforms in ARB_shader_objects; - add assembly instruction: global_addr; - reorganize #includes; - built-in uniforms accessed by index, rather than by name; - add some entries to x86sse rtasm; - add configurations to VC6 projects: 'Release x86' and 'Debug x86'; - #define SLANG_X86 active only on VC6 x86 builds; - introduce code export table for a shader; - remove GNU license from the noise library;
* Get it running for ARB_vertex_shader.Michal Krol2006-02-131-13/+2
| | | | | | | | | | | Add experimental print functions to builtin library. Some functionality missing: - automatic arrays; - general constructors; - local variable initialization; - texture sampling and noise; - semantic error checking; - function prototypes.
* Split slang_compile.c into several smaller files - it was just too big.Michal Krol2006-01-301-0/+115
Minor fixes and cosmetic changes.