Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mesa: glsl: rework swizzle storage handling | Brian Paul | 2008-07-22 | 1 | -7/+5 |
| | | | | Build on the heirarchal approach implemented for arrays/structs. | ||||
* | mesa: rework array/struct addressing code. | Brian Paul | 2008-07-18 | 1 | -2/+8 |
| | | | | | | | 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. | ||||
* | mesa: fix errors in LightModelProduct state, other misc error cases | Brian Paul | 2008-05-14 | 1 | -5/+11 |
| | |||||
* | Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵ | Brian | 2007-07-04 | 1 | -8/+8 |
| | | | | of -I flags. | ||||
* | s/Tranpose/Transpose/ | Brian | 2007-03-14 | 1 | -4/+4 |
| | |||||
* | Rework matrix-related code. | Brian | 2007-03-08 | 1 | -20/+53 |
| | | | | | | | | | | | | 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. | ||||
* | fix ProjectionMatrix typo | Brian | 2007-03-08 | 1 | -1/+1 |
| | |||||
* | fix gl_TextureMatrix indexing | Brian | 2007-03-08 | 1 | -2/+2 |
| | |||||
* | add missing gl_Point state, fix IR storage bug | Brian | 2007-03-07 | 1 | -3/+30 |
| | |||||
* | s/diffuset/diffuse/ | Brian | 2007-03-07 | 1 | -1/+1 |
| | |||||
* | replace GLint with gl_state_index | Brian | 2007-02-23 | 1 | -2/+2 |
| | |||||
* | Replace slang_ir_node::Target w/ Field. Remove Comment field. Clean-up. | Brian | 2007-02-23 | 1 | -1/+1 |
| | |||||
* | Undo some STATE_POINT/FOG changes. Max length of state token array is now 5. | Brian | 2007-02-22 | 1 | -6/+12 |
| | |||||
* | remove unneeded #includes | Brian | 2007-02-21 | 1 | -5/+0 |
| | |||||
* | fix copy&paste errors | Brian | 2007-02-21 | 1 | -4/+5 |
| | |||||
* | Reimplement the _slang_alloc_statevar() function. | Brian | 2007-02-21 | 1 | -324/+274 |
| | | | | | | After several tries at making a table-based system for examining pre-defined uniforms to find statevar indexes, give up and do it the simple way (lots of strcmp() calls). Not terribly elegant, but perfectly functional. | ||||
* | adjustments to STATE_ token layout/format so token[1] is always the array index | Brian | 2007-02-21 | 1 | -25/+29 |
| | |||||
* | checkpoint overhaul of pre-defined uniform code | Brian | 2007-02-21 | 1 | -0/+192 |
| | |||||
* | implement support for pre-defined uniform structs (state vars) | Brian | 2007-02-20 | 1 | -0/+232 |