Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | glsl: Introduce a new "const_in" variable mode. | Kenneth Graunke | 2011-01-31 | 1 | -0/+1 |
| | | | | | | | | This annotation is for an "in" function parameter for which it is only legal to pass constant expressions. The only known example of this, currently, is the textureOffset functions. This should never be used for globals. | ||||
* | Merge branch 'draw-instanced' | Brian Paul | 2011-01-15 | 1 | -0/+32 |
|\ | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_llvm.c src/gallium/drivers/llvmpipe/lp_state_fs.c src/glsl/ir_set_program_inouts.cpp src/mesa/tnl/t_vb_program.c | ||||
| * | glsl: add support for system values and GL_ARB_draw_instanced | Brian Paul | 2010-12-08 | 1 | -0/+32 |
| | | |||||
* | | glsl: Make the symbol table's add_variable just use the variable's name. | Eric Anholt | 2010-11-29 | 1 | -1/+1 |
|/ | |||||
* | glsl: Remove useless ir_shader enumeration value. | Kenneth Graunke | 2010-10-20 | 1 | -4/+0 |
| | |||||
* | glsl: add support for shader stencil export | Dave Airlie | 2010-10-13 | 1 | -0/+18 |
| | | | | | This adds proper support for the GL_ARB_shader_stencil_export extension to the GLSL compiler. Thanks to Ian for pointing out where I need to add things. | ||||
* | glsl: Add linker support for explicit attribute locations | Ian Romanick | 2010-10-08 | 1 | -0/+1 |
| | |||||
* | glsl: Add definition of gl_TextureMatrix inverse/transpose builtins. | Eric Anholt | 2010-09-21 | 1 | -0/+3 |
| | | | | | Fixes glsl2/builtin-texturematrix. Bug #30196. | ||||
* | glsl: Add built-in variables for GLSL ES 1.00. | Kenneth Graunke | 2010-09-07 | 1 | -0/+75 |
| | |||||
* | glsl: Include main/core.h. | Chia-I Wu | 2010-08-24 | 1 | -1/+0 |
| | | | | Make glsl include only main/core.h from core mesa. | ||||
* | glsl2: Use Elements from main/compiler.h instead of open-coding | Ian Romanick | 2010-08-12 | 1 | -4/+1 |
| | |||||
* | glsl2: Use gl_DepthRange's proper name. | Kenneth Graunke | 2010-08-09 | 1 | -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 Anholt | 2010-08-04 | 1 | -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 Anholt | 2010-07-28 | 1 | -15/+53 |
| | |||||
* | glsl2: Size builtin arrays according to the context constants. | Eric Anholt | 2010-07-28 | 1 | -13/+5 |
| | | | | Cleans up some of the FINISHMEs in this file. | ||||
* | glsl2: glsl_type has its own talloc context, don't pass one in | Ian Romanick | 2010-07-20 | 1 | -10/+7 |
| | |||||
* | glsl2: Add and use new variable mode ir_var_temporary | Ian Romanick | 2010-07-20 | 1 | -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 Anholt | 2010-07-20 | 1 | -6/+32 |
| | | | | | Fixes: glsl1-built-in constants | ||||
* | glsl2: Add support for gl_PointCoord in 1.20. | Eric Anholt | 2010-07-07 | 1 | -0/+7 |
| | | | | Fixes glsl-fs-pointcoord on swrast (remains broken on 965, like master) | ||||
* | glsl2: Add gl_MaxTextureCoords | Ian Romanick | 2010-07-01 | 1 | -14/+17 |
| | |||||
* | glsl2: Default delcaration of gl_TexCoord is unsized | Ian Romanick | 2010-07-01 | 1 | -10/+16 |
| | |||||
* | glsl2: Make gl_MaxDrawBuffers available in the vertex shader | Ian Romanick | 2010-06-29 | 1 | -32/+42 |
| | |||||
* | glsl2: Make gl_MaxDrawBuffers available in the fragment shader | Ian Romanick | 2010-06-29 | 1 | -0/+15 |
| | |||||
* | glsl2: Make gl_FragData be available in GLSL 1.10 too | Ian Romanick | 2010-06-29 | 1 | -12/+5 |
| | |||||
* | glsl2: Pass MaxDrawBuffers from core Mesa into the GLSL compiler | Ian Romanick | 2010-06-29 | 1 | -24/+22 |
| | |||||
* | glsl2: Move the compiler to the subdirectory it will live in in Mesa. | Eric Anholt | 2010-06-24 | 1 | -0/+345 |