summaryrefslogtreecommitdiff
path: root/src/mesa/shader
AgeCommit message (Collapse)Author
2009-08-18Merge branch 'master' into asm-shader-rework-1Ian Romanick
Conflicts: src/mesa/shader/arbprogparse.c
2009-08-18ARB prog parser: Delete the old parserIan Romanick
2009-08-18ARB prog: Revert some changes to debug outputIan Romanick
2009-08-14mesa: also pass the GPU program to _mesa_append_uniforms_to_file()Brian Paul
We want the post-link program at this points.
2009-08-14Merge branch 'mesa_7_5_branch'Brian Paul
2009-08-14mesa: new _mesa_append_uniforms_to_file() debug/logging functionBrian Paul
2009-08-13glsl: fix some uninitialized pointersBrian Paul
2009-08-13glsl: fix incorrect attribute sizeBrian Paul
2009-08-12glsl: remove duplicate frag input entryBrian Paul
2009-08-12Merge branch 'new-frag-attribs'Brian Paul
This branch introduces new FRAG_ATTRIB_FACE and FRAG_ATTRIB_PNTC fragment program inputs for GLSL gl_FrontFacing and gl_PointCoord. Before, these attributes were packed with the FOG attribute. That made things complicated elsewhere.
2009-08-12glsl: add gl_Vertex, gl_Normal, etc to list of active attributesBrian Paul
If a vertex shader uses gl_Vertex, gl_Normal, etc, we need to include them when the user queries the list of active attributes. Before this we were just including the user-defined attributes.
2009-08-12glsl: move predefined shader input/output info/code to slang_builtin.cBrian Paul
This is a more logical place for this code. Also add some functions for querying vertex shader input names, types, etc.
2009-08-04mesa: log the shader checksumBrian Paul
2009-08-04mesa: compute, print shader checksumBrian Paul
2009-07-30ARB prog parser: Add support for RGBA components to SWZ instruction in fpIan Romanick
2009-07-30ARB prog parser: Prevent NULL ptr deref for KIL instructionIan Romanick
The KIL instruction doesn't have a destination register, so dereferencing dst in asm_instruction_ctor would cause a segfault.
2009-07-30Merge branch 'mesa_7_5_branch'Brian Paul
2009-07-30mesa: move misplaced return statementBrian Paul
Fixes regression from commit 7d93f817c9c5222e2bdbaa9fa9f03fc502bfe878
2009-07-30Merge branch 'mesa_7_5_branch'Brian Paul
2009-07-30mesa: add missing return after catching program errorBrian Paul
2009-07-29ARP prog parser: Implement the spec, not what makes senseIan Romanick
2009-07-29ARB prog parser: Get program limits from the contextIan Romanick
Some debug code from the older stand-alone version of the assembler was hanging around and needed to go.
2009-07-29ARB prog lexer: attenuation is not just for vpIan Romanick
2009-07-29ARB prog parser: Finish implementing fp state.depth.rangeIan Romanick
2009-07-29ARB prog: Fix the order of swizzle applicationIan Romanick
The swizzle used to generate the "original" value from the value stored in the parameter array happens before the swizzle specified in the instruction. This fixes problems seen in progs/vp/vp-tris with arl-*.txt.
2009-07-29mesa: add new FRAG_ATTRIB_FACE and FRAG_ATTRIB_PNTC fragment program inputsBrian Paul
Previously, the FOGC attribute contained the fragment fog coord, front/back- face flag and the gl_PointCoord.xy values. Now each of those things are separate fragment program attributes. This simplifies quite a few things in Mesa and gallium. Need to test i965 driver and fix up point coord handling in the gallium/draw module...
2009-07-29Indentation fixes.Ian Romanick
2009-07-29ARB prog parser: Set NumAttributes based on the number of attribs readIan Romanick
2009-07-28ARB prog parser: Set component negation mask for SWZ instructionIan Romanick
2009-07-28ARB prog parser: Set correct register file for OUTPUT variablesIan Romanick
2009-07-27ARB prog parser: Add support for GL_MESA_texture_arrayIan Romanick
This isn't really tested yet as no drivers actually support this extension.
2009-07-27ARB prog parser: More robust error message for bad OPTION stringIan Romanick
2009-07-27ARB prog parser: Add support for GL_ARB_fragment_program_shadowIan Romanick
Passes the piglit asmparsertest shadow-0[123].txt tests and progs/demos/shadowtex.
2009-07-27ARB prog parser: Fix handling of RECTIan Romanick
Require that GL_{ARB,EXT,NV}_texture_rectangle be supported before allowing use of RECT texture target.
2009-07-27ARB prog: Fix parameters to _mesa_callocIan Romanick
So totally awesome that _mesa_calloc has a different parameter signature than calloc. Why do these libc wrappers still exist?!?
2009-07-27ARB prog parser: Correct handling of some extensions that interact w/ARB_vpIan Romanick
2009-07-27ARB prog: Update generated files missed on previous two commitsIan Romanick
The changes are, as it turns out, purely cosmetic.
2009-07-27ARB prog: Delete comment about possibly needing to free a bufferIan Romanick
Valgrind doesn't complain about a leak here, so delete the comment about possibly needing to free the state returned by yy_scan_bytes.
2009-07-27ARB prog: Clean up several memory leaksIan Romanick
As far as I am able to determine via code inspection and using Valgrind, that should be all of the leaks in the parser.
2009-07-27Add destructor for symbol_tableIan Romanick
2009-07-27Add destructor for hash_tableIan Romanick
2009-07-27r300/compiler: Add rc_print_programNicolai Hähnle
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-27r300: Move vertex program compilation to compilerNicolai Hähnle
This is just the first step of refactoring. The separation is not yet clean enough with this commit. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-24ARB prog: Layout parameters from parameter type, not src typeIan Romanick
Use the type stored in the Parameters array to determine the layout instead of the type in the instruction register field. Also, update the instruction register field based on the parameter type. This makes Google Earth work exactly like with Mesa master.
2009-07-24ARB prog: _mesa_print_program output should go to same place as _mesa_printfIan Romanick
2009-07-24ARB prog parse: Fix cut-and-paste error for constant vectorsIan Romanick
2009-07-24ARB prog: get frag prog texture info from the right placeIan Romanick
This gets basic texturing working. w00t!
2009-07-22parser: Clean up a bunch of silly compiler warningsIan Romanick
2009-07-22parser: Track a few more frag prog related valuesIan Romanick
2009-07-22parser: Ensure that param_binding_type is set correctlyIan Romanick