summaryrefslogtreecommitdiff
path: root/src/mesa/shader
AgeCommit message (Collapse)Author
2006-04-28added a trailing newline to pacify gccTilman Sauerbeck
2006-04-28fix second memory leak (bug 5557)Brian Paul
2006-04-28fix first memory leak (bug 5557)Brian Paul
2006-04-25Remove carriage returns.Michal Krol
2006-04-25No longer alias generic vertex attribs with conventional attribs for ↵Brian Paul
GL_ARB_vertex_program.
2006-04-20check glLoadProgramNV len < 0 (bug 6679)Brian Paul
2006-04-19SrcReg->Swizzle is always initialized to SWIZZLE_NOOP, and if the programDave Airlie
specifies a 2/3/4-compontent swizzle suffix, SrcReg->Swizzles is just ORed against the new component values, without resetting it first. Attached patch makes tests/vptest2 pass. From Tilam Sauerbeck bug 6673
2006-04-18Remove carriage-return chars *ONLY*.Michal Krol
2006-04-18Add support for ARB_vertex_shader attrib binding and query.Michal Krol
Clean-up ARB_shaderobjects code a bit.
2006-04-14Silence a few -pedantic warnings.Brian Paul
Remove ^M chars. Replace _mesa_get_string() with simpler copy_string().
2006-04-11More GLSL code:Michal Krol
- use macros to access and modify render inputs bit-field; - un-alias generic vertex attributes for ARB vertex calls; - use MAX_VERTEX_PROGRAM_ATTRIBS (NV code) or MAX_VERTEX_ATTRIBS (ARB code) in place of VERT_ATTRIB_MAX; - define VERT_ATTRIB_GENERIC0..15 for un-aliased vertex attributes for ARB_vertex_shader; - fix generic attribute index range check in arbprogparse.c; - interface GLSL varyings between vertex and fragment shader; - use 64-bit optimised bitset (bitset.h) for render inputs;
2006-04-05Silence minor compiler warnings (-Wextra).Brian Paul
2006-04-04More GLSL code:Michal Krol
- add support for varyings; GLSL fixes: - pow was wrongly computed in x86 back-end;
2006-03-29move NumNativeAlu/TexInstruction assignments (Ewald Snel)Brian Paul
2006-03-24Make ARB_vp backends happy with nv arlAapo Tahkola
2006-03-22ARL dst idx was undefined.Aapo Tahkola
2006-03-21Silencium gcc warnings.Michal Krol
2006-03-21GLSL fixes:Michal Krol
- 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;
2006-03-17 Committing in .Jouk Jansen
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 ----------------------------------------------------------------------
2006-03-15rename enums, fixes compilation breakage (Michal Krol)Brian Paul
2006-03-14More GLSL code:Michal Krol
- add texture sampling support; - fix assembly codegen bugs;
2006-03-07 Committing in .Jouk Jansen
Update OpenVMS makefiles Modified Files: Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/swrast/descrip.mms ----------------------------------------------------------------------
2006-03-03Use standard ARB names instead of vendor-specific NV names for the ↵Roland Scheidegger
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.
2006-03-01Fix glGet with enums which are used not only in NV_vertex_program, but other ↵Roland Scheidegger
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
2006-02-27silence a bunch of warningsBrian Paul
2006-02-27More GLSL code:Michal Krol
- 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;
2006-02-22add some #includes, fix some prototypes (bug 5992)Brian Paul
2006-02-22add missing prototypes, use _slang_ prefix on non-static functionsBrian Paul
2006-02-22silence a variety of compiler warningsBrian Paul
2006-02-21More GLSL code:Michal Krol
- 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%.
2006-02-21 Committing in .Jouk Jansen
Update OpenVMS makefiles Modified Files: Mesa/src/mesa/shader/slang/descrip.mms Mesa/src/mesa/swrast/descrip.mms Mesa/src/mesa/tnl/descrip.mms ----------------------------------------------------------------------
2006-02-18More GLSL code.Michal Krol
- general constructors allowed; - implement noise functions (from Stefan Gustavson - thanks!) - cosmetic stuff.
2006-02-15Set NumInstructions (bug 5864)Brian Paul
2006-02-15Fix a few warnings:Brian Paul
- nested comments (use #if 0 / #endif instead) - missing default clause in switch statements - use of possibly undefined variables
2006-02-15Add support for forward function declarations.Michal Krol
2006-02-15Add fragment shader execute entry.Michal Krol
2006-02-13 Update OpenVMS compile supportJouk Jansen
2006-02-13More glsl code.Michal Krol
2006-02-13REVISION 3.Michal Krol
Remove illegal operators for overloading.
2006-02-13Cosmetic changes.Michal Krol
2006-02-13Delete most of the comments.Michal Krol
Minor tweaks with the functions. Add experimental print functions.
2006-02-13Get it running for ARB_vertex_shader.Michal Krol
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.
2006-02-13Rename current_program to CurrentProgram.Michal Krol
Temporary vertex_shader execution code.
2006-01-30Split slang_compile.c into several smaller files - it was just too big.Michal Krol
Minor fixes and cosmetic changes.
2006-01-16remove some test code;Michal Krol
rewrite the intermediate code executor to address 64-bit platforms and global memory; store built-in library code in a precompiled form only;
2006-01-16remove slang_*_gc.h files;Michal Krol
rename slang_*_gc_bin.h files to slang_*_gc.h ones; store built-in library code in a precompiled form only;
2005-12-06C++ fixes, mostly casts (Stephane Conversy)Brian Paul
2005-11-22track state flags which might invalidate parameter listsKeith Whitwell
2005-11-20move _mesa_init_instruction() to program.cBrian Paul
2005-11-20Make Saturate a 2-bit field again, renamed to SaturateMode with threeBrian Paul
possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE.