summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
Commit message (Collapse)AuthorAgeFilesLines
* glsl: handle indirectly indexed input registers in linkerBrian Paul2010-06-021-29/+108
| | | | | | | | | | For example, if the fragment shader reads gl_TexCoord[i] with a dynamic index we need to set all the InputsRead bits for all texcoords. We were already doing this for shader outputs. Refactored the later code so inputs and outputs are handled with similar code. Fixes a swrast failure with piglit's glsl-texcoord-array.shader_test
* mesa: use BITFIELD64_BIT() macroBrian Paul2010-06-021-1/+1
|
* glsl: fix bad sanity-check assertionBrian Paul2010-06-021-1/+1
|
* shaders: Don't lose the param binding swizzle for single params.Eric Anholt2010-06-022-2/+2
| | | | | | | | | Multiple item params are OK because we don't allow swizzles for them (in case you do array access to hit their elements, for example). For singles, though, using the swizzle can cut down on storage, we do want to allow a swizzled use of another param. Fixes OGLC texRect.c.
* mesa: use split_location_offset() in GetUniform() functionsBrian Paul2010-06-011-47/+54
| | | | | | | | | | | Commit 5d0e136eff54a34258b5adaeda4cb267831e8234 exposed a long-standing bug in the glGetUniform*() code paths. We weren't properly decoding the location parameter. Fixes fd.o bug/regression 28344 Note: this patch should go into the 7.8 branch after the above-mentioned commit.
* glsl: change uniform location/offset encodingBrian Paul2010-05-281-8/+30
| | | | | | | This lets Mesa work like other OpenGL implementations with regard to indexing uniform arrays. See comments for details. Note: this is a candidate for the 7.8 branch.
* mesa: Remove unnecessary headers.Vinson Lee2010-05-271-5/+0
|
* mesa: remove unused includesBrian Paul2010-05-261-2/+0
|
* mesa: rewrite _mesa_get_handle() and add some commentsBrian Paul2010-05-261-6/+14
|
* mesa: move GLSL uniform functions into new source fileBrian Paul2010-05-264-857/+954
|
* mesa: move all vertex array functions into varray.cBrian Paul2010-05-252-273/+0
|
* mesa: added _mesa_GetVertexAttribIiv / AttribIuiv()Brian Paul2010-05-252-54/+146
| | | | Refactor the code for all the glGetVertexAttrib() functions.
* mesa: consolidate some glUniform codeBrian Paul2010-05-251-78/+29
|
* mesa: support for unsigned int uniformsBrian Paul2010-05-251-1/+55
|
* glsl: silence unused var warningsBrian Paul2010-05-242-0/+4
|
* mesa: Handle FEATURE_es2_glsl differences at runtime tooKristian Høgsberg2010-05-244-17/+31
| | | | | | | Now that we can support different APIs at runtime, we need to check the context for the API we're currently providing as well. https://bugs.freedesktop.org/show_bug.cgi?id=28194
* mesa: more info in glUniform error messagesBrian Paul2010-05-141-4/+7
|
* mesa: Remove no-op wrappers around trig functions.Eric Anholt2010-05-131-4/+4
|
* mesa: Remove _mesa_pow(), which is always just pow().Eric Anholt2010-05-131-4/+4
|
* mesa: Make FEATURE_ATI_fragment_shader more modular.Chia-I Wu2010-05-122-1/+52
| | | | | | This allows atifragshader.h to be used without knowing if FEATURE_ATI_fragment_shader is enabled. As a result, atifragshader.c is removed from the omit list in ES overlay.
* mesa: more transform feedback infrastructureBrian Paul2010-05-101-2/+6
| | | | | Includes GL_ARB_transform_feedback2 which encapsulates transform feedback state in objects.
* glsl: change variable declared assertion into conditionalBrian Paul2010-05-032-3/+2
| | | | | | | | | The slang_variable::declared field originated as a debug field but can be promoted for use during sematic error checking. Fixes fd.o bug 27921. NOTE: this is a candidate for back-porting to the 7.8 stable branch.
* glsl: s/sprintf/_mesa_snprintf/Vinson Lee2010-05-017-29/+29
|
* mesa: Don't overwrite a driver's shader infolog with generic failure message.Eric Anholt2010-04-291-1/+4
|
* mesa: Eliminate multiple va_list usage.José Fonseca2010-04-242-6/+8
| | | | | | | va_list is a mutable iterator. When passed to a function it will likely point to somewhere else. This fixes segmentation fault in glean vertProg1 on Ubuntu 9.10.
* mesa: Restore comment too.José Fonseca2010-04-182-2/+2
|
* glsl: Fix handling of OPCODE_PRINT for no registers case.Vinson Lee2010-04-182-2/+2
| | | | | | | | | A register file value is unsigned so could never be -1. A value of 0 also aliased to PROGRAM_TEMPORARY. If an OPCODE_PRINT has no registers to print, set the register file value to PROGRAM_UNDEFINED and check for that value when executing this instruction.
* Merge branch '7.8'Brian Paul2010-04-091-2/+2
|\
| * mesa: fix instruction indexing bugsBrian Paul2010-04-091-2/+2
| | | | | | | | | | | | | | We were looping over instructions but only looking at the 0th instruction's opcode. Fixes fd.o bug 27566.
* | glsl: fix bad return value in link_transform_feedback()Brian Paul2010-04-011-1/+1
| |
* | glsl: remove obsolete commentBrian Paul2010-04-011-1/+0
| |
* | glsl: do extra link checking for transform feedbackBrian Paul2010-04-011-3/+83
| |
* | glsl: append built-in, used varying vars to the varying vars listBrian Paul2010-04-011-0/+27
| |
* | mesa: make _mesa_copy_string() non-staticBrian Paul2010-04-012-7/+25
| |
* | glsl: pass datatype to _mesa_add_varying()Brian Paul2010-04-014-5/+7
| | | | | | | | Will be needed later for transform feedback support.
* | glsl: add more vertex/fragment output info helpersBrian Paul2010-04-012-13/+64
| |
* | mesa: add transform feedback queriesBrian Paul2010-03-302-7/+53
| | | | | | | | And make _mesa_copy_string() non-static.
* | glsl: avoid using rcp in length() functionsBrian Paul2010-03-291-3/+3
| | | | | | | | See prev commit for related info.
* | glsl: remove rcp from sqrt()Brian Paul2010-03-291-10/+4
|/ | | | | | | Per a patch from Marek Olšák, we can simply multiply the incoming value by 1/sqrt(x) instead of using rcp. We're keeping the x==0 check to avoid generating NaN for sqrt(0).
* Replace _mesa_strtod with _mesa_strtof.Marcin Baczyński2010-03-154-11/+11
| | | | Reviewed-by: Ian Romanick <[email protected]>
* Grammar and spelling fixesJeff Smith2010-03-123-4/+4
| | | | | Signed-off-by: Jeff Smith <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* ARB prog parser: added (float) casts and regenerate filesBrian Paul2010-03-112-30/+16
|
* Revert "mesa: Remove pointless comparison of unsigned integer with a ↵Vinson Lee2010-03-041-4/+9
| | | | | | | | | | | | | | negative constant." This reverts commit a05fdbcb719ac64e6be842372813f0f4ca2f4f93. Removing the comparison is wrong. The comparison with -1 should be changed to another value (probably PROGRAM_UNDEFINED) along with another change in the shader assembler. Conflicts: src/mesa/shader/prog_execute.c
* glsl: Remove unsigned greater than or equal zero comparison.Vinson Lee2010-03-041-1/+1
|
* glsl: Remove unsigned greater than or equal zero comparison.Vinson Lee2010-03-041-1/+1
|
* glsl: Return NULL on _slan_gen_asm error path on non-debug builds.Vinson Lee2010-03-041-0/+1
| | | | | Exit the function early on the error path, instead of continuing, to prevent a null pointer dereference later on.
* glsl: Add assert to check input to strcmp.Vinson Lee2010-03-041-0/+1
|
* glsl: Add assert to check input to strcmp.Vinson Lee2010-03-021-0/+1
|
* glsl: Move assert from outside to inside of _slang_gen_swizzle function.Vinson Lee2010-02-271-1/+1
|
* glsl: Assert input to strcmp is not null.Vinson Lee2010-02-271-0/+1
|