Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-10-01 | mesa: fix mem leaks | Brian Paul | |
2009-10-01 | glsl: fix mem leak | Brian Paul | |
2009-10-01 | mesa: Return -FLT_MAX instead of 0 for LG2(0). | Vinson Lee | |
lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0 for LG2(0). | |||
2009-09-29 | glsl: regenerated file | Brian Paul | |
2009-09-29 | glsl: rewrite sqrt(x) intrinsic to handle x=0 | Brian Paul | |
Since sqrt() is basically implemented in terms of RSQ/RCP we'll do a divide by zero if x=0 and wind up with unpredictable results. Now use CMP instruction to test for x<=0 and return zero in that case. | |||
2009-09-29 | glsl: add support for CMP instruction | Brian Paul | |
2009-09-25 | mesa: move declaration before code | Vinson Lee | |
2009-09-24 | i965: Emit zero initialization for NV VP temporaries as required. | Eric Anholt | |
This is similar to what r300 does inside the driver, but I've added it as a generic option since it seems most hardware will want it. Fixes piglit nv-init-zero-reg.vpfp and nv-init-zero-addr.vpfp. | |||
2009-09-24 | mesa: Initialize NV_vertex_program fields for the parameter lists and such. | Eric Anholt | |
This helps let drivers treat NV_vp like ARB_vp. | |||
2009-09-24 | mesa: added comment | Brian Paul | |
2009-09-24 | Merge branch 'mesa_7_5_branch' into mesa_7_6_branch | Brian Paul | |
2009-09-24 | glsl: init var to silence warning | Brian Paul | |
2009-09-24 | glsl: fix missing initializers warning | Brian Paul | |
2009-09-23 | mesa: don't bias LOD in shader interpreter; do it in swrast | Brian Paul | |
2009-09-21 | r300: Fix handling of NV_vertex_program parameters | Nicolai Hähnle | |
The handling is a bit inefficient, unfortunately, but I don't want to make any intrusive changes for Mesa 7.6. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com> | |||
2009-09-15 | Merge branch 'mesa_7_5_branch' into mesa_7_6_branch | Brian Paul | |
2009-09-14 | glsl: added some link debug code (disabled) | Brian Paul | |
2009-09-14 | glsl: remove extra #version directives from concatenated shader sources | Brian Paul | |
When we concatenate shaders to do our form of poor-man linking, if there's multiple #version directives, preprocessing fails. This change disables the extra #version directives by changing the first two chars to //. This should help with some Wine issues such as bug 23946. | |||
2009-09-04 | ARB prog: replace 'unsigned' with 'gl_state_index' | Brian Paul | |
Fixes compilation warnings with MSVC. | |||
2009-09-04 | ARB prog: rename POINT, SIZE to POINT_TOK, SIZE_TOK | Brian Paul | |
Fixes symbol collisions with typedefs in Microsoft headers. Perhaps we should prefix/suffix all the lexer tokens to avoid this. | |||
2009-09-01 | ARB prog parser: Fix handling of stateOptModMatNum | Ian Romanick | |
The optional array index should clearly be enclosed in square brackets. This helps the oglconform test vp_binding.c get a bit farther, but it still fails. | |||
2009-08-31 | mesa: debug printf for KIL | Brian Paul | |
2009-08-27 | Merge branch 'mesa_7_5_branch' | Brian Paul | |
2009-08-27 | mesa: direct program debug output to stderr instead of stdout | marvin24 | |
2009-08-27 | mesa: move decls before code | Vinson Lee | |
2009-08-26 | Merge branch 'mesa_7_5_branch' | Brian Paul | |
2009-08-26 | glsl: asst. clean-ups in set_program_uniform() | Brian Paul | |
Remove redunant type check for samplers (assert instead). Move some local vars. Update comments. | |||
2009-08-26 | glsl: signal that the program needs to be re-translated when samplers change | Brian Paul | |
2009-08-26 | mesa: var renaming, new assertion | Brian Paul | |
2009-08-26 | mesa: additional instruction field size assertions | Brian Paul | |
2009-08-26 | Merge branch 'mesa_7_5_branch' | Brian Paul | |
2009-08-26 | glsl: fix bug in sampler array indexing | Brian Paul | |
Need to add the 'offset' parameter when indexing the parameter array. Before, if we were setting arrays of samplers, we were actually only setting the 0th sampler's value. Because of how progs/glsl/samplers.c is constructed, this wasn't showing up as a failure in the samplers_array output. | |||
2009-08-25 | glsl: update a texture/sampler comment | Brian Paul | |
2009-08-25 | glsl: implement shader sampler validation | Brian Paul | |
Shader validation should fail if there are two samplers of different types which reference the same texture unit. For example, if a cubemap sampler and a 2D sampler both reference texture unit 0, that's invalid. | |||
2009-08-25 | mesa: print some program fields in binary too | Brian Paul | |
2009-08-24 | ARB prog: Set error instead of falling through with incorrect value | Brian Paul | |
If a fragment program only parameter was queried of a vertex program (e.g., GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB) no error would be set and a random value would be returned. This caused 'glxinfo -l' to show the same values for GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB, GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB as for GL_MAX_PROGRAM_ENV_PARAMETERS_ARB. This is confusing and incorrect. (cherry picked from master, commit 4bccd693a72a0b42dffc849034263a68e779ca91) | |||
2009-08-24 | ARB prog: Set error instead of falling through with incorrect value | Ian Romanick | |
If a fragment program only parameter was queried of a vertex program (e.g., GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB) no error would be set and a random value would be returned. This caused 'glxinfo -l' to show the same values for GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB, GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB as for GL_MAX_PROGRAM_ENV_PARAMETERS_ARB. This is confusing and incorrect. | |||
2009-08-24 | glsl: Silence gcc uninitialized variable warning. | Vinson Lee | |
2009-08-24 | ARB prog parser: Regenerate parser from previous commit | Ian Romanick | |
2009-08-24 | ARB prog parser: use correct context limits | Brian Paul | |
2009-08-24 | glsl: Silence gcc uninitialized variable warning. | Vinson Lee | |
2009-08-24 | mesa: _mesa_layout_parameters() returns a boolean value | Brian Paul | |
2009-08-23 | ARB prog lexer: Fix lexer to eat both DOS and Unix line endings | Ian Romanick | |
2009-08-22 | ARB prog parser: include imports.h to kill some compiler warnings | Luo Jinghua | |
2009-08-20 | ARB prog parser: Revert part of previous change to constant parsing | Ian Romanick | |
The commit "ARP prog parser: Implement the spec, not what makes sense" broke the parsing of scalar constants. This commit reverts that part of that commit. Now vp_swizzle.c passes. | |||
2009-08-18 | Merge branch 'master' into asm-shader-rework-1 | Ian Romanick | |
Conflicts: src/mesa/shader/arbprogparse.c | |||
2009-08-18 | ARB prog parser: Delete the old parser | Ian Romanick | |
2009-08-18 | ARB prog: Revert some changes to debug output | Ian Romanick | |
2009-08-14 | mesa: also pass the GPU program to _mesa_append_uniforms_to_file() | Brian Paul | |
We want the post-link program at this points. | |||
2009-08-14 | Merge branch 'mesa_7_5_branch' | Brian Paul | |