summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_variable.cpp
Commit message (Collapse)AuthorAgeFilesLines
* glsl2: Use Elements from main/compiler.h instead of open-codingIan Romanick2010-08-121-4/+1
|
* glsl2: Use gl_DepthRange's proper name.Kenneth Graunke2010-08-091-1/+1
| | | | | It was being incorrectly added as gl_DepthRangeParameters, which is the type name, not the variable name.
* glsl2: Remove the shader_in/shader_out tracking separate from var->mode.Eric Anholt2010-08-041-11/+1
| | | | | | | | | | | | | | | I introduced this for ir_dead_code to distinguish function parameter outvals from varying outputs. Only, since ast_to_hir's current_function is unset when setting up function parameters (they're needed for making the function signature in the first place), all function parameter outvals were marked as shader outputs anyway. This meant that an inlined function's cloned outval was marked as a shader output and couldn't be dead-code eliminated. Instead, since ir_dead_code doesn't even look at function parameters, just use var->mode. The longest Mesa IR coming out of ir_to_mesa for Yo Frankie drops from 725 instructions to 636.
* glsl2: Add the remaining builtin uniforms.Eric Anholt2010-07-281-15/+53
|
* glsl2: Size builtin arrays according to the context constants.Eric Anholt2010-07-281-13/+5
| | | | Cleans up some of the FINISHMEs in this file.
* glsl2: glsl_type has its own talloc context, don't pass one inIan Romanick2010-07-201-10/+7
|
* glsl2: Add and use new variable mode ir_var_temporaryIan Romanick2010-07-201-2/+1
| | | | | | | | | | | | | | | | | This is quite a large patch because breaking it into smaller pieces would result in the tree being intermitently broken. The big changes are: * Add the ir_var_temporary variable mode * Change the ir_variable constructor to take the mode as a parameter and correctly specify the mode for all ir_varables. * Change the linker to not cross validate ir_var_temporary variables. * Change the linker to pull all ir_var_temporary variables from global scope into 'main'.
* glsl2: Add definitions of the builtin constants present in GLSL 1.10.Eric Anholt2010-07-201-6/+32
| | | | | Fixes: glsl1-built-in constants
* glsl2: Add support for gl_PointCoord in 1.20.Eric Anholt2010-07-071-0/+7
| | | | Fixes glsl-fs-pointcoord on swrast (remains broken on 965, like master)
* glsl2: Add gl_MaxTextureCoordsIan Romanick2010-07-011-14/+17
|
* glsl2: Default delcaration of gl_TexCoord is unsizedIan Romanick2010-07-011-10/+16
|
* glsl2: Make gl_MaxDrawBuffers available in the vertex shaderIan Romanick2010-06-291-32/+42
|
* glsl2: Make gl_MaxDrawBuffers available in the fragment shaderIan Romanick2010-06-291-0/+15
|
* glsl2: Make gl_FragData be available in GLSL 1.10 tooIan Romanick2010-06-291-12/+5
|
* glsl2: Pass MaxDrawBuffers from core Mesa into the GLSL compilerIan Romanick2010-06-291-24/+22
|
* glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt2010-06-241-0/+345