summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
Commit message (Collapse)AuthorAgeFilesLines
* ARL dst idx was undefined.Aapo Tahkola2006-03-221-1/+2
|
* Silencium gcc warnings.Michal Krol2006-03-214-132/+131
|
* GLSL fixes:Michal Krol2006-03-2116-606/+969
| | | | | | | | | | | | | | | | | | - generate error on NULL pointers in glShaderSourceARB; - reinstall program object, if current, in glLinkProgramARB; - vertex and fragment shaders are optional in program object; - floor asm was wrongly computed for x86 back-end; - allow for (void) idiom in function prototypes; - all fixed-state uniforms are updated; - local variable initializers are working; - implement texture* and shadow* functions for vertex processor; - generate error if too many arguments in general constructor; - trim unused data in general constructor; - struct r-value field select was badly relocated; Changes: - add derived state gl_fog_attrib::_Scale; - add derived state gl_light::_CosCutoffNeg;
* Committing in .Jouk Jansen2006-03-171-2/+5
| | | | | | | | | | Mesa/src/mesa/main/imports.h : removed <CR> Mesa/src/mesa/shader/slang/descrip.mms : added new sources Modified Files: Mesa/src/mesa/main/imports.h Mesa/src/mesa/shader/slang/descrip.mms ----------------------------------------------------------------------
* rename enums, fixes compilation breakage (Michal Krol)Brian Paul2006-03-151-3/+3
|
* More GLSL code:Michal Krol2006-03-1419-311/+1020
| | | | | - add texture sampling support; - fix assembly codegen bugs;
* Committing in .Jouk Jansen2006-03-071-1/+3
| | | | | | | | | Update OpenVMS makefiles Modified Files: Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/swrast/descrip.mms ----------------------------------------------------------------------
* Use standard ARB names instead of vendor-specific NV names for the ↵Roland Scheidegger2006-03-031-8/+7
| | | | ARB/NV_vertex_program enums in common state handling code, and update comments accordingly. Change some slightly confusing code which gave the impression GL_VERTEX_PROGRAM_ARB and GL_VERTEX_PROGRAM_NV enums were different.
* Fix glGet with enums which are used not only in NV_vertex_program, but other ↵Roland Scheidegger2006-03-011-2/+2
| | | | extensions too (ARB_vertex_program, ARB_fragment_program, NV_fragment_program), if no support for NV_vertex_program is present. While here, fix return value if enum is used which is not supported by the exposed extensions (GL_INVALID_ENUM instead of GL_INVALID_VALUE). Fix some compile-time #ifs depending on NV_vertex/fragment_program which should also be dependant on ARB_vertex/fragment_program. See bug #6070
* silence a bunch of warningsBrian Paul2006-02-277-11/+16
|
* More GLSL code:Michal Krol2006-02-2735-1309/+2094
| | | | | | | | | | | | | - 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;
* add some #includes, fix some prototypes (bug 5992)Brian Paul2006-02-221-9/+20
|
* add missing prototypes, use _slang_ prefix on non-static functionsBrian Paul2006-02-222-4/+28
|
* silence a variety of compiler warningsBrian Paul2006-02-224-5/+10
|
* More GLSL code:Michal Krol2006-02-2129-2952/+2991
| | | | | | | - uniforms (only GetLocation, Uniform1f and Uniform4fv for now for demos); - fix bugs and optimize array size handling; - 2D texture sampling (needs Enable(TEXTURE_2D) to work); - decrease built-in library assembly size by 30%.
* Committing in .Jouk Jansen2006-02-211-3/+5
| | | | | | | | | Update OpenVMS makefiles Modified Files: Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/swrast/descrip.mms Mesa/src/mesa/tnl/descrip.mms ----------------------------------------------------------------------
* More GLSL code.Michal Krol2006-02-1821-2260/+2804
| | | | | | - general constructors allowed; - implement noise functions (from Stefan Gustavson - thanks!) - cosmetic stuff.
* Set NumInstructions (bug 5864)Brian Paul2006-02-152-0/+2
|
* Fix a few warnings:Brian Paul2006-02-156-16/+39
| | | | | | - nested comments (use #if 0 / #endif instead) - missing default clause in switch statements - use of possibly undefined variables
* Add support for forward function declarations.Michal Krol2006-02-157-300/+382
|
* Add fragment shader execute entry.Michal Krol2006-02-151-8/+109
|
* Update OpenVMS compile supportJouk Jansen2006-02-131-3/+9
|
* More glsl code.Michal Krol2006-02-132-1763/+1952
|
* REVISION 3.Michal Krol2006-02-132-62/+50
| | | | Remove illegal operators for overloading.
* Cosmetic changes.Michal Krol2006-02-134-633/+301
|
* Delete most of the comments.Michal Krol2006-02-132-1150/+1923
| | | | | Minor tweaks with the functions. Add experimental print functions.
* Get it running for ARB_vertex_shader.Michal Krol2006-02-1327-1346/+2060
| | | | | | | | | | | 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.
* Rename current_program to CurrentProgram.Michal Krol2006-02-132-32/+140
| | | | Temporary vertex_shader execution code.
* Split slang_compile.c into several smaller files - it was just too big.Michal Krol2006-01-3016-1066/+1639
| | | | Minor fixes and cosmetic changes.
* remove some test code;Michal Krol2006-01-165-197/+158
| | | | | | rewrite the intermediate code executor to address 64-bit platforms and global memory; store built-in library code in a precompiled form only;
* remove slang_*_gc.h files;Michal Krol2006-01-1610-5265/+1321
| | | | | rename slang_*_gc_bin.h files to slang_*_gc.h ones; store built-in library code in a precompiled form only;
* C++ fixes, mostly casts (Stephane Conversy)Brian Paul2005-12-064-21/+21
|
* track state flags which might invalidate parameter listsKeith Whitwell2005-11-222-0/+80
|
* move _mesa_init_instruction() to program.cBrian Paul2005-11-202-23/+25
|
* Make Saturate a 2-bit field again, renamed to SaturateMode with threeBrian Paul2005-11-204-41/+53
| | | | possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE.
* remove incorrect castBrian Paul2005-11-191-1/+1
|
* Saturate is a 1-bit boolean fieldBrian Paul2005-11-191-1/+1
|
* No longer derive 'ati_fragment_shader' from 'program' class. Only theBrian Paul2005-11-194-79/+84
| | | | | program->Id and program->RefCount fields were used and ATI fragment shaders didn't have too much in common with ARB/NV vertex/fragment programs anyway.
* Remove the _mesa_parse_arb_vertex/fragment_program() functions intoBrian Paul2005-11-198-441/+263
| | | | | | | arbprogparse.c and remove arbvertparse.[ch] and arbfragparse.[ch]. Clean up quite a bit of the arb parsing code. Rewrite parser extension code to avoid a mess of string operations every time the parser was used.
* update comments, remove ^M charsBrian Paul2005-11-191-12/+7
|
* move a bunch of gl2/shading language structs from mtypes.h to shaderobjects.hBrian Paul2005-11-191-0/+82
|
* Improve _mesa_print_program().Brian Paul2005-11-121-31/+354
| | | | Added make_state_string() to produce a string from a GL state vector.
* fix comment for TexSrcTargetBrian Paul2005-11-121-2/+1
|
* update some assertionsBrian Paul2005-11-122-2/+2
|
* Move stuff common to vertex/fragment_program into the base class, including:Brian Paul2005-11-1210-150/+198
| | | | | | Instructions, InputsRead, OutputsWritten, and Parameters. Also, added debug functions: _mesa_print_instruction(), _mesa_print_program_parameters() and revamp _mesa_print_program().
* This patch adds the missing NV_vertex_program2 and NV_vertex_program3Ian Romanick2005-11-082-37/+29
| | | | | | | | | | | | | | | | instructions to the various internal tables. It does not add support for them to the parser nor does it add support for them to the program interpreter. It also corrects some errors in the comments in program_instruction.h. This patch breaks the instruction union in t_vb_arbprogram.h. The opcode field in that union was only 6 bits. When there were only 59+3 instructions that worked fine. However, this patch increases the base instruction count to 69. This requires 7 bits. The problem is that increasing the opcode width to 7 bits increases the size of instruction::rsw to 33 bits. I've increased the size of the union to 64-bit, but this is just a temporary hack (and probably breaks the build on some systems).
* remove _mesa_debug_fp_inst()Brian Paul2005-11-081-6/+2
|
* minor work in _mesa_print_program()Brian Paul2005-11-081-1/+10
|
* remove unneeded #includesBrian Paul2005-11-081-8/+2
|
* remove unneeded #includesBrian Paul2005-11-072-17/+6
|