summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
Commit message (Collapse)AuthorAgeFilesLines
* mesa: generate GL_INVALID_OPERATION in _mesa_get_uniform_location() if ↵Brian Paul2008-07-041-0/+5
| | | | program isn't linked
* mesa: fix incorrect array size, added assertionBrian Paul2008-07-031-1/+2
|
* mesa: fix array storage allocation bugBrian Paul2008-07-031-0/+8
|
* mesa: regenerated fileBrian Paul2008-07-031-761/+763
|
* mesa: additional vec4 constructorBrian Paul2008-07-031-0/+8
|
* mesa: fix various error codesBrian Paul2008-07-031-94/+144
|
* mesa: additional GLSL built-in constantsBrian Paul2008-07-021-13/+19
|
* mesa: when linking a shader program, make sure all the shaders compiled OKBrian Paul2008-07-021-0/+8
| | | | cherry-picked from master
* mesa: added some debug code (disabled)Brian Paul2008-07-022-0/+9
| | | | cherry-picked from master
* mesa: fix error codes in _mesa_shader_source(), _mesa_get_shader_source()Brian Paul2008-07-021-2/+12
| | | | | | | | | If the 'shader' parameter is wrong, need to either generate GL_INVALID_VALUE or GL_INVALID_OPERATION. It depends on whether 'shader' actually names a 'program' or is a totally unknown ID. There might be other cases to fix... cherry-picked from master
* mesa: regenerated fileBrian Paul2008-07-021-152/+163
|
* mesa: added some missing equal() notEqual() intrinsicsBrian Paul2008-07-021-0/+33
| | | | cherry-picked from master
* mesa: disable some debug assertionsBrian Paul2008-07-021-0/+5
| | | | | We can sometimes fail these assertions because of how swizzled storage works. Will revisit someday.
* mesa: regenerated filesBrian Paul2008-07-022-20/+35
|
* mesa: fix all(bvec2) function typo, add missing bvec2/3/4() constuctorsBrian Paul2008-07-022-1/+39
| | | | cherry-picked from master
* mesa: added _mesa_print_swizzle() debugging helperBrian Paul2008-07-022-0/+16
|
* mesa: fix a GLSL vector subscript/writemask bugBrian Paul2008-07-011-47/+90
| | | | | | | | | | | This fixes a failure for cases like: vec4 v; v[1] *= 2.0; The v[1] actually acts like a writemask, equivalent to v.y The fix is a bit convoluted, but will do for now. cherry-picked from master
* mesa: move some functionsBrian Paul2008-07-011-99/+99
| | | | cherry-picked from master
* mesa: make _slang_swizzle_swizzle() non-privateBrian Paul2008-07-012-9/+16
| | | | cherry-picked from master
* mesa: better function inlining in the presence of 'return' statementsBrian Paul2008-07-011-23/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, the presence of a 'return' statement always prevented inlining a function. This was because we didn't want to accidentally return from the _calling_ function. We still need the semantic of 'return' when inlining but we can't always use unconditional branches/jumps (GPUs don't always support arbitrary branching). Now, we allow inlining functions w/ return if the return is the last statement in the function. This fixes the common case of a function that returns a value, such as: vec4 square(const in vec4 x) { return x * x; } which effectively compiles into: vec4 square(const in vec4 x) { __retVal = x * x; return; } The 'return' can be no-op'd now and we can inline the function. cherry-picked from master
* mesa: add/fix some IrInfo entries for debugging purposesBrian Paul2008-07-011-3/+5
| | | | cherry-picked from master
* mesa: added null ptr checksBrian Paul2008-06-281-2/+2
|
* s/GL_INVALID_VALUE/GL_INVALID_OPERATION/ in _mesa_get_uniformfv()Brian Paul2008-06-281-4/+6
|
* mesa: Use appropriate unsigned/signed, float/integer types.José Fonseca2008-06-244-7/+7
|
* silly bug: it's PROGRAM_VARYINGZack Rusin2008-06-121-1/+1
|
* glsl: make sure we replace all output reads with temporariesZack Rusin2008-06-123-7/+10
| | | | test in if.glsl
* mesa: remove unneeded #includeBrian Paul2008-06-121-1/+0
|
* almost forgot - RelAddr is a boolean so use it hereZack Rusin2008-06-121-1/+1
|
* shaders: fix allocation of arrays of parametersZack Rusin2008-06-121-1/+23
|
* glsl: implement variable array indexesZack Rusin2008-06-124-12/+24
|
* mesa: include mtypes.hBrian Paul2008-06-101-0/+2
|
* glsl: fix array size initialiazers using const variablesZack Rusin2008-06-091-2/+26
| | | | | | e.g. const int kernelSize = 9; uniform vec2 kernel[kernelSize];
* Set the attribute as used.Alan Hourihane2008-06-041-0/+3
|
* mesa: Apply MSVC portability fixes from Alan Hourihane.José Fonseca2008-05-314-12/+12
|
* Merge branch 'gallium-vertex-linear' into gallium-0.1Jakob Bornecrantz2008-05-282-11/+43
|\ | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_pt_varray.c
| * mesa: pre-swizzle normal scale state valueKeith Whitwell2008-05-241-1/+5
| |
| * mesa: do object-space lighting in ffvertex_prog.cKeith Whitwell2008-05-232-10/+38
| | | | | | | | | | Start pulling over some of the optimizations from the fixed function paths.
* | copy StateFlags in _mesa_clone_parameter_list()Brian Paul2008-05-201-0/+2
| | | | | | | | cherry-picked from master (b539b6132141b0f583076355ad158852667b79cd)
* | fix incorrect sampler numbering/indexing.Brian Paul2008-05-205-14/+15
| | | | | | | | | | | | All samplers indexes were zero. cherry-picked from master (b6fb0940c226373ac235a5d327d3fcfd742bc6b9)
* | fix tempReg test in _mesa_combine_programs()Brian Paul2008-05-191-1/+1
|/
* print vertex.attrib[n] (from master)Brian Paul2008-05-181-3/+19
|
* Fix some bugs in material, depth range stateBrian Paul2008-05-181-4/+4
| | | | picked from master
* alias ProgramEnvParameter4xyARB and ProgramParameter4xyNV (bug #12935)Brian Paul2008-05-183-84/+26
| | | | | | these should be the same functions (as per spec). cherry-picked from master (86a4810b09097714942bf2b889e6c62357bba931)
* bring in fixes/changes from masterBrian Paul2008-05-161-5/+14
|
* Fix a program refcounting error, don't share program parameter lists.Brian Paul2008-05-162-41/+20
| | | | | | The refcounting bug was causing a memleak (unfreed programs). The old parameter list sharing is not needed since the change in how uniforms are handled.
* fix parsing of state.texenv.color (bug 14931)Brian Paul2008-05-142-2/+4
| | | | cherry-picked from master
* Consolidate texture fetch code and use partial derivatives when possible.Brian Paul2008-05-142-67/+70
| | | | picked from master
* mesa: fix InfoLog memleak, misc sync with masterBrian Paul2008-05-141-4/+8
|
* Bug #13492: Only call ProgramStringNotify if program parsing succeeded.Eric Anholt2008-05-141-2/+2
| | | | | | Wine intentionally tries some out-of-spec programs to test strictness, and calling ProgramStringNotify on the results of a failed program parse resulted in crashes in the 965 driver.
* fix swizzle error test (bug 11881)Brian2008-05-141-2/+2
|