Commit graph

115447 commits

Author SHA1 Message Date
Shunichi Fuji
e291cf6f8d free(key) in _tnl_UpdateFixedFunctionProgram() 2008-05-16 15:16:06 -06:00
Brian Paul
8bdf5b6e64 Fix a program refcounting error, don't share program parameter lists.
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.
2008-05-16 15:16:06 -06:00
Brian Paul
a3e86d43e6 minor changes to aid debugging 2008-05-16 15:16:06 -06:00
Brian Paul
eb4271ea8b remove stray, left-over RefCount++ 2008-05-16 15:16:06 -06:00
Brian Paul
6de6999edc whitespace/formatting 2008-05-16 15:16:06 -06:00
Brian Paul
1af2b14514 init SamplersUsed bits in _mesa_parse_arb_fragment_program 2008-05-16 15:16:06 -06:00
Brian Paul
885cc592df fix assertion typo: s/=/==/ 2008-05-16 15:16:06 -06:00
Shunichi Fuji
e6cd9d88d3 Fix memory leak in _tnl_UpdateFixedFunctionProgram 2008-05-16 13:18:25 -07:00
Brian Paul
0639998ee8 Fix DRI build 2008-05-16 13:15:03 -07:00
Dave Airlie
d6333af7e9 r500: default rsunit swizzle like fglrx 2008-05-15 20:38:41 +10:00
Dave Airlie
9aa62c7238 r500: shift tex src properly 2008-05-15 18:40:07 +10:00
Dave Airlie
76f32499d2 r500: fixup r500 rs unit texture coordinate counting 2008-05-15 18:40:07 +10:00
Dave Airlie
a0bc6d2fb2 r500: remove some debugging 2008-05-15 18:40:07 +10:00
Dave Airlie
73af48fff5 r500: split output/pixel masks and emit in the correct places 2008-05-15 18:40:07 +10:00
Dave Airlie
c9d5d11d2d r3/500: emit RS state before VAP 2008-05-15 18:40:07 +10:00
Dave Airlie
412c850eab r500: fixup the program allocations to be the correct sizes 2008-05-15 18:40:07 +10:00
Dave Airlie
350c80fa99 r300: set screen so that context init can find out chip ids 2008-05-15 18:40:07 +10:00
Dave Airlie
e1bffd0318 r500: add cmp support in theory 2008-05-15 18:40:07 +10:00
Dave Airlie
10e0a36a49 r500: some trivial fixups to get tri working.
the counter was being used one instruction over the end
2008-05-15 18:40:07 +10:00
Dave Airlie
375656440b r500: we just need to emit a colour for clear drop tex instruction 2008-05-15 18:40:07 +10:00
Brian Paul
5f6a726d9f fix parsing of state.texenv.color (bug 14931)
cherry-picked from master
2008-05-14 19:19:53 -06:00
Brian Paul
826218d386 Consolidate texture fetch code and use partial derivatives when possible.
picked from master
2008-05-14 19:14:41 -06:00
Brian Paul
887bfee6e3 mesa: fix InfoLog memleak, misc sync with master 2008-05-14 16:44:08 -06:00
Eric Anholt
23db6287d4 Bug #13492: Only call ProgramStringNotify if program parsing succeeded.
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.
2008-05-14 16:37:20 -06:00
Brian
217e5b5551 fix swizzle error test (bug 11881) 2008-05-14 16:35:51 -06:00
Brian Paul
087fa7e390 fix-up inlined/non-inlined function inconsistencies
cherry-picked from master
2008-05-14 16:32:18 -06:00
Brian Paul
7aed3751c7 mesa: rm unneeded file 2008-05-14 16:30:15 -06:00
Brian Paul
215a847e3f mesa: prefix rm command with - 2008-05-14 16:27:34 -06:00
Brian Paul
753f979a32 rewrite some of the mat*mat, mat*vec intrinsics
Also, remove obsolete matrix codegen code.

cherry-picked from master
2008-05-14 16:20:28 -06:00
Brian Paul
ade508312c Updated GLSL uniform/sampler handling from gallium-0.1 branch
Previously, the shader linker combined the uniforms used by the vertex and
fragment shaders into a combined set of uniforms.  This made the implementation
of glUniform*() simple, but was rather inefficient otherwise.  Now each shader
gets its own set of uniforms (no more modelview matrix showing up in the
fragment shader uniforms, for example).

cherry-picked by hand from gallium-0.1 branch
2008-05-14 16:09:46 -06:00
Brian Paul
8cf38c7e6a mesa: regenerate slang built-in data (asin(vec4) fix) 2008-05-14 16:07:18 -06:00
Brian Paul
a9997657b9 mesa: fix missing w assignment in asin(vec4) 2008-05-14 16:06:10 -06:00
Brian Paul
26988c170c mesa: use CALLOC_STRUCT() 2008-05-14 16:05:48 -06:00
Brian Paul
afa4c792b0 mesa: sync up swrast/s_fragprog.c with master 2008-05-14 16:05:25 -06:00
Brian Paul
4f915b0f83 mesa: updated comment 2008-05-14 16:04:51 -06:00
Brian Paul
05cacc06cc mesa: minor bug fixes from master 2008-05-14 16:04:29 -06:00
Brian Paul
fcb23d7db7 mesa: dead code removal 2008-05-14 16:04:00 -06:00
Brian Paul
c4ceb4e4f3 mesa: minor bug fixes, null ptr checks, dead code removal 2008-05-14 16:03:38 -06:00
Brian Paul
6c536b9924 mesa: fix errors in LightModelProduct state, other misc error cases 2008-05-14 16:02:20 -06:00
Brian Paul
f84005c0a1 mesa: glUniform(location==-1) is not an error 2008-05-14 16:01:31 -06:00
Brian Paul
c807c1a23f mesa: new functions for managing list/index of uniforms
cherry-picked from gallium-0.1
2008-05-14 13:12:44 -06:00
Brian Paul
e0f160663e clean-up swizzle fields in fog code, fix NegateBase
cherry-picked from gallium-0.1
2008-05-14 13:01:13 -06:00
Brian Paul
bff695b926 sync up with gallium-0.1 changes
New _mesa_num_inst_dst_regs(), _mesa_is_tex_instruction() functions
2008-05-14 13:00:27 -06:00
Brian Paul
6ca948a303 added _mesa_combine_parameter_lists()
cherry-picked from gallium-0.1
2008-05-14 12:53:03 -06:00
Brian Paul
b256273689 fix some additional program refcounting bugs
cherry-picked from master
2008-05-14 12:47:29 -06:00
Brian Paul
19ad9cf774 mesa: added _mesa_insert_instructions()
Also, use new _mesa_free_instructions() in a few places.

cherry-picked from gallium-0.1
2008-05-14 12:39:41 -06:00
Brian Paul
450136d368 mesa: added _mesa_free_instructions()
cherry-picked from gallium-0.1
2008-05-14 12:37:07 -06:00
Brian Paul
d791386b09 fix some additional program refcounting bugs
cherry-picked from master
2008-05-14 12:19:22 -06:00
Brian Paul
57e222d6e5 fix some additional program refcounting bugs 2008-05-14 12:11:17 -06:00
Jakob Bornecrantz
6c78b8e97b mesa: Made linux-dri targets build EGL 2008-05-14 17:20:56 +02:00