summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
Commit message (Collapse)AuthorAgeFilesLines
* propagate errors from parse_generic_attrib_num in parse_attrib_binding (-> ↵Tilman Sauerbeck2006-06-281-2/+4
| | | | don't segfault when you're trying to access invalid generic attributes
* Add support for GL_APPLE_vertex_array_object. Several test programsIan Romanick2006-06-122-22/+22
| | | | | | | and demos are also added. Adding basic support to drivers should be as easy as just enabling the extension, though thorough test would also be required.
* Define new NEGATE_* tokens for setting the src register's NegateBase field.Brian Paul2006-05-303-17/+30
| | | | | Before, we were using GL_TRUE/GL_FALSE in a few places. Note: only the SWZ instruction can negate individual components.
* don't generate GL_INVALID_ENUM if GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB, ↵Tilman Sauerbeck2006-05-301-0/+1
| | | | which is actually handled
* Remove not needed forward declaration.Michal Krol2006-05-301-1/+0
|
* don't do the check for >= MAX_VERTEX_PROGRAM_ATTRIBS twice, it's already ↵Tilman Sauerbeck2006-05-291-6/+0
| | | | done in parse_generic_attrib_num()
* generic attribute 0 wasn't handled correctly (Jesse Allen)Brian Paul2006-05-291-0/+8
|
* Roll _mesa_free_parameters() into calling function (the only caller).Brian Paul2006-05-242-43/+32
| | | | | | Replace assert(0) with _mesa_warning(). Use new _mesa_align_realloc() function. New comments, clean-ups.
* fix a small memory leak in _mesa_add_state_reference()Brian Paul2006-05-241-0/+3
|
* use GLbitfield for StateFlags, improved commentsBrian Paul2006-05-241-11/+13
|
* change initialization of texcoords - not all C compilers support ↵Brian Paul2006-05-181-6/+36
| | | | non-constant array initializers
* unbreak the buildTilman Sauerbeck2006-05-171-0/+1
|
* Fix typo.Michal Krol2006-05-161-2/+2
|
* Change error message wording.Michal Krol2006-05-162-10/+10
|
* Rename print() to printMESA().Michal Krol2006-05-162-94/+101
|
* Fix attrib handling.Michal Krol2006-05-162-31/+53
|
* Extend printMESA function to output also to shader's info log.Michal Krol2006-05-163-22/+75
| | | | Fix float-to-int conversion for x86 back-end.
* Cleanup code. Change constructor prototype.Michal Krol2006-05-167-65/+58
|
* Cleanup code.Michal Krol2006-05-162-284/+210
|
* Change constructor prototype.Michal Krol2006-05-162-36/+42
| | | | Fix struct field accessing.
* Remove carriage returns.Michal Krol2006-05-162-84/+84
|
* Add GetInfoLogLength and WriteAttrib functions.Michal Krol2006-05-161-36/+129
| | | | | | GetInfoLog for shaders if different - it is a concatenation of compiler output and executor output produced by printMESA. Fix bugs.
* Cleanup GLhandle-to-object translation macros.Michal Krol2006-05-162-107/+93
| | | | Fix minor bugs.
* added a trailing newline to pacify gccTilman Sauerbeck2006-04-281-1/+1
|
* fix second memory leak (bug 5557)Brian Paul2006-04-281-4/+5
|
* fix first memory leak (bug 5557)Brian Paul2006-04-281-0/+5
|
* Remove carriage returns.Michal Krol2006-04-254-1668/+1668
|
* No longer alias generic vertex attribs with conventional attribs for ↵Brian Paul2006-04-251-1/+6
| | | | GL_ARB_vertex_program.
* check glLoadProgramNV len < 0 (bug 6679)Brian Paul2006-04-201-2/+7
|
* SrcReg->Swizzle is always initialized to SWIZZLE_NOOP, and if the programDave Airlie2006-04-191-0/+3
| | | | | | | | | 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
* Remove carriage-return chars *ONLY*.Michal Krol2006-04-1848-13782/+13782
|
* Add support for ARB_vertex_shader attrib binding and query.Michal Krol2006-04-188-1948/+2497
| | | | Clean-up ARB_shaderobjects code a bit.
* Silence a few -pedantic warnings.Brian Paul2006-04-141-98/+114
| | | | | Remove ^M chars. Replace _mesa_get_string() with simpler copy_string().
* More GLSL code:Michal Krol2006-04-113-10/+7
| | | | | | | | | | | | - 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;
* Silence minor compiler warnings (-Wextra).Brian Paul2006-04-051-2/+2
|
* More GLSL code:Michal Krol2006-04-048-59/+295
| | | | | | | - add support for varyings; GLSL fixes: - pow was wrongly computed in x86 back-end;
* move NumNativeAlu/TexInstruction assignments (Ewald Snel)Brian Paul2006-03-291-6/+3
|
* Make ARB_vp backends happy with nv arlAapo Tahkola2006-03-241-0/+5
|
* 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
|