summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
Commit message (Collapse)AuthorAgeFilesLines
* mesa: added _mesa_insert_instructions()Brian Paul2008-05-142-10/+52
| | | | | | Also, use new _mesa_free_instructions() in a few places. cherry-picked from gallium-0.1
* mesa: added _mesa_free_instructions()Brian Paul2008-05-142-0/+20
| | | | cherry-picked from gallium-0.1
* fix some additional program refcounting bugsBrian Paul2008-05-143-22/+13
|
* disable debug printfsBrian Paul2008-05-081-2/+2
|
* fix refcounting bugs in tnl/tex program cachesBrian Paul2008-05-071-3/+3
|
* Never fail `make clean'Dan Nicholson2008-05-071-1/+1
| | | | | | Mostly some pedantic changes such that `make clean' always ignores errors. Also changed the top clean target to do the `touch configs/current' dance instead of realclean.
* implement full reference counting for vertex/fragment programsBrian2008-05-064-44/+102
| | | | | Use _mesa_reference_vert/fragprog() wherever we assign program pointers. Fixes a memory corruption bug found with glean/api2 test.
* glcore: drop outdated sources files intented for xorgGeorge Sapountzis2008-04-233-80/+0
|
* revert part of the previous cleanup - it only appliesAlan Hourihane2008-04-221-1/+1
| | | | to the 7.0 branch
* Fix error stringAlan Hourihane2008-04-221-1/+2
|
* correct the return valueAlan Hourihane2008-04-221-1/+1
|
* small cleanupsAlan Hourihane2008-04-223-7/+7
|
* fix GL_ARB_texture_rectangle breakageBrian Paul2008-04-141-3/+3
|
* define #extension GL_ARB_texture_rectangleDavid Flynn2008-04-141-0/+4
|
* fix failed assertion (parameter can be a PROGRAM_CONSTANT)Brian Paul2008-04-111-0/+1
|
* rewrite some of the mat*mat, mat*vec intrinsicsBrian2008-04-033-567/+336
| | | | Also, remove obsolete matrix codegen code.
* fix parsing bug involving comments at the end of ARB v/f programsMarkus Amsler2008-03-312-6/+6
|
* mesa: Free all shader program data before deleting allXiang, Haihao2008-03-311-0/+2
| | | | shader/shader program objects to avoid memory access error.
* Revert "mesa: separate shader program object from shader object." (bug#15244)Xiang, Haihao2008-03-311-4/+4
| | | | This reverts commit 3ffd11f71d021f672b9bc15b3c39c155a0e2fecb.
* consolidate some parsing functions that were pretty much identical for ↵Brian2008-03-271-152/+71
| | | | vertex/fragment programs
* when negating scalar src args, use NEGATE_XYZW, not NEGATE_XBrian2008-03-271-6/+6
| | | | | This makes things easier on the back-end when generating GPU code. cherry-picked from gallium-0.1
* Set param_var->param_binding_type = PROGRAM_CONSTANTBrian2008-03-271-0/+2
| | | | cherry-picked from gallium-0.1
* use ctx->Driver.DeleteProgram() in a few more placesBrian2008-03-222-4/+4
|
* only set InputsRead bit if input is really usedMarkus Amsler2008-03-171-2/+5
|
* mesa: Add vertex.attrib 0-15 to arb_input_attrib_string.Markus Amsler2008-03-171-1/+17
|
* init tmpNode to zerosBrian2008-03-141-0/+1
|
* mesa: fix emit_clamp() so that we don't use an output register as temporaryBrian2008-03-141-3/+12
| | | | | | IR_CLAMP is decomposed into OPCODE_MIN+OPCODE_MAX. Allocate a temporary register for the intermediate value so we don't inadvertantly use an output register (which are write-only on some GPUs).
* fix state.lightprod ambient/specular w value (bug #14983)Roland Scheidegger2008-03-131-2/+2
|
* fix parsing of state.texenv.color (bug 14931)Brian2008-03-102-2/+4
|
* state.depth.range alpha value should be 1, not 0 (bug #14733)Roland Scheidegger2008-03-011-1/+1
|
* mesa: separate shader program object from shader object.Xiang, Haihao2008-02-281-4/+4
| | | | | | | | | Currently a callback delete_shader_cb is used for deleting shader and shader program objects. Mesa detaches all attached shaders in _mesa_free_shader_program_data when deleting shader program objects. However it is likely that these shaders have been freed in _mesa_free_shader, which will result in unexpected behaviour. This fix uses a single callback for shader program objects and deletes shader program objects before shader objects.
* mesa: set input read only on successMarkus Amsler2008-02-271-2/+2
|
* raise GL_INVALID_OPERATION if glProgramString compilation failsBrian2008-02-201-1/+1
|
* regenerate glsl library functionsRoland Scheidegger2008-01-311-41/+42
|
* fix w component of glsl vec4 asinRoland Scheidegger2008-01-311-0/+1
|
* Fix the compile of disabled DEBUG_PARSING code.Eric Anholt2008-01-151-3/+3
|
* Bug #13492: Only call ProgramStringNotify if program parsing succeeded.Eric Anholt2008-01-151-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.
* Convert to 0/1 when setting boolean uniformsBruce Merry2008-01-011-0/+7
| | | | Also add some extra tests to the shader_api regression tests
* Make use of count in _mesa_uniform_matrixBruce Merry2008-01-011-13/+25
|
* More fixes to shader_apiBruce Merry2008-01-011-7/+16
| | | | | | - return GL_INVALID_OPERATION instead of GL_INVALID_VALUE if location is bad - correct the type-checking of uniforms from my previous commit - accept location of -1 in _mesa_uniform_matrix
* Fix several bugs relating to uniforms and attributes in GLSL APIBruce Merry2008-01-011-11/+73
| | | | | | | | | | | - fix sizes for GL_FLOAT_MAT2x3 and GL_FLOAT_MAT4x3 in sizeof_glsl_type - fix size returns in _mesa_get_active_attrib - fix out-of-bounds array access to vec_types in _mesa_get_active_attrib - fix queries of matrix uniforms in _mesa_get_uniformfv - fix _mesa_get_uniformfv to only return one base, even from an array - allow location == -1 in _mesa_uniform - validate types in _mesa_uniform - allow array overruns in _mesa_uniform
* return correct size from glGetActiveUniform (bug 13751)Brian2007-12-201-3/+55
|
* make sure state token values are fully initializedRoland Scheidegger2007-12-112-2/+2
|
* Fix gl_FrontFacing compilation problemBrian2007-12-041-1/+2
|
* Merge branch 'master' of git+ssh://[email protected]/git/mesa/mesajoukj2007-11-3010-165/+214
|\
| * Move _mesa_load_tracked_matrices() from TNL module to prog_statevars.cBrian2007-11-292-3/+98
| |
| * set fp->UsesKill when emitting OPCODE_KILBrian2007-11-271-2/+8
| |
| * Consolidate texture fetch code and use partial derivatives when possible.Brian2007-11-232-64/+67
| |
| * Fix parsing of gl_FrontLightModelProduct.sceneColor, don't segfault on ↵Brian2007-11-232-5/+15
| | | | | | | | variable array indexes.
| * alias ProgramEnvParameter4xyARB and ProgramParameter4xyNV (bug #12935)Roland Scheidegger2007-11-093-84/+26
| | | | | | | | these should be the same functions (as per spec).