summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang
Commit message (Collapse)AuthorAgeFilesLines
* mesa: include shader/prog_instruction.hBrian Paul2008-11-071-0/+1
| | | | Seems to fix a mysteriously missing build dependency.
* mesa: rename OPCODE_INT -> OPCODE_TRUNCBrian Paul2008-11-061-1/+1
| | | | Trunc is a more accurate description; there's no type conversion involved.
* mesa: update the shader programs->TexturesUsed array at link timeBrian Paul2008-11-061-0/+6
| | | | | | | | If an application never calls glUniform() to set sampler variable values they'll remain 0 (the default value/unit). Now call _mesa_update_shader_textures_used() at link time in case glUniform() is never called. program->TextureUsed[] will then be correct for state validation.
* mesa: Fix compiler warnings on Windows.Brian Paul2008-11-051-1/+1
| | | | cherry-picked subset of a77976d2ee578d0483c64f2aa41719bbae9c1c97
* mesa: fix a GLSL array indexing codegen bugBrian Paul2008-11-052-8/+101
| | | | Expressions like array[i] + array[j] didn't work properly before.
* mesa: remove extra \n from printf stringBrian Paul2008-11-051-1/+1
|
* mesa: fix float-valued GLSL vertex attribute variablesBrian Paul2008-11-041-8/+8
| | | | The swizzle mask for such variables wasn't set up properly.
* mesa: silence warningsBrian Paul2008-11-011-3/+3
|
* mesa: do scope replacement for while/for loops tooBrian Paul2008-11-011-3/+7
| | | | This fixes a function inlining bug involving vars declared inside loop bodies.
* mesa: glsl tree print improvementsBrian Paul2008-11-011-1/+17
|
* mesa: fix assignment / parameter passing of sampler typesBrian Paul2008-11-013-8/+29
|
* mesa: additional debug flags for glsl debug/disassemblyBrian Paul2008-11-012-23/+25
|
* mesa: fix some bugs with precision qualifier parsingBrian Paul2008-10-319-2382/+2459
|
* mesa: do scope replacement for variable initializers tooBrian Paul2008-10-311-0/+11
|
* mesa: fix copy/paste error in GLSL error msgBrian Paul2008-10-311-1/+1
|
* mesa: prevent the slang code generator from aborting when faced with a ↵Sam Hocevar2008-09-251-1/+5
| | | | sampler variable redeclaration.
* mesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()Brian Paul2008-09-231-0/+9
|
* mesa: new gl_fragment_program fields indicating use of fog, front-facing, ↵Brian Paul2008-09-231-18/+32
| | | | | | point coord (cherry picked from commit d7a7b0a10dd355fbeb7a404091a42d4ab558c820)
* mesa: fix bug in previous changes to _slang_resolve_attributes()Brian Paul2008-09-171-1/+3
|
* mesa: rework GLSL vertex attribute bindingBrian Paul2008-09-162-73/+74
| | | | | | | Calls to glBindAttribLocation() should not take effect until the next time that glLinkProgram() is called. gl_shader_program::Attributes now just contains user-defined bindings. gl_shader_program::VertexProgram->Attributes contains the actual/final bindings.
* mesa: glsl: regenerated fileBrian Paul2008-08-251-552/+552
|
* mesa: glsl: grab latest fixes from gallium-0.1 branchBrian Paul2008-08-254-77/+155
| | | | | | | Includes: 1. Fixes failed asserting about bad swizzles in src reg emit. 2. Tracks uniform var usage. 3. Emit exp() in terms of EXP2 instruction.
* mesa: turn off 'x' bit misset on a few .h and .syn filesBrian Paul2008-08-164-0/+0
|
* mesa: import latest GLSL code from gallium-0.1 branchBrian Paul2008-08-1639-3141/+3626
|
* disable debug code accidentally enabled by prev commitBrian Paul2008-08-061-2/+2
|
* mesa: glsl: count number of temp regs usedHaihao Xiang2008-08-062-5/+36
|
* mesa: glsl: remove old assertion (fixes glsl/bitmap.c)Brian Paul2008-07-291-1/+1
|
* mesa: disable debug codeBrian Paul2008-07-291-1/+1
|
* mesa: regenerated filesBrian Paul2008-07-292-820/+800
|
* mesa: Silence compiler warnings on Windows.Brian Paul2008-07-293-8/+9
|
* mesa: cast to fix warningBrian Paul2008-07-291-1/+1
|
* mesa: fix bug/failure in recursive function inliningBrian Paul2008-07-291-5/+27
| | | | | Fixes a failure for cases such as y = f(a, f(a, b)) All the usual tests still pass but regressions are possible...
* mesa: glsl: silence warning (s/int/GLuint)Brian Paul2008-07-291-1/+1
|
* mesa: remove stray debug codeBrian Paul2008-07-291-1/+0
|
* mesa: glsl: assorted fixes for resolving polymorphic functionsBrian Paul2008-07-298-205/+393
| | | | | | | Plus, - fix some issues in casting function arguments to format param types. - fix some vec/mat constructor bugs - find/report more syntax/semantic errors
* mesa: glsl: re-order some constructorsBrian Paul2008-07-291-12/+12
|
* mesa: glsl: remove unneeded operatorsBrian Paul2008-07-291-50/+0
|
* mesa: glsl: added null ptr checkBrian Paul2008-07-291-1/+2
|
* mesa: glsl: additional error detectionBrian Paul2008-07-293-10/+64
| | | | Plus begin some fixes for vec/matrix constructors.
* mesa: gls: fix broken else clause of conditional break/continueBrian Paul2008-07-292-13/+5
| | | | | | | | | | | | | In the following case: for () { if (cond) break; // or continue; else something; } The "something" block didn't get emitted.
* mesa: glsl: only try to link shaders defining main()Brian Paul2008-07-292-30/+28
|
* mesa: Silence compiler warning on windows.Michal Krol2008-07-291-1/+1
|
* mesa: glsl: fix/simplify array element handlingBrian Paul2008-07-291-39/+15
| | | | Also fix bug in comparing large structs/arrays.
* mesa: glsl: mark constructor params as constBrian Paul2008-07-291-1/+2
|
* mesa: glsl: rework swizzle storage handlingBrian Paul2008-07-293-53/+40
| | | | Build on the heirarchal approach implemented for arrays/structs.
* mesa: fix uninitialized varBrian Paul2008-07-291-0/+1
|
* mesa: glsl: implement constructor functions for user-defined typesBrian Paul2008-07-292-5/+174
|
* mesa: initial support for GLSL struct/array comparisonsBrian Paul2008-07-291-14/+57
|
* mesa: added null ptr check (error handling case)Brian Paul2008-07-291-0/+3
|
* mesa: fix +=, -=, etc. operatorsBrian Paul2008-07-291-4/+4
|