Commit Graph

14782 Commits

Author SHA1 Message Date
Zack Rusin 02e45b2dad fix abs and start on rsq 2008-05-17 13:58:44 -04:00
Zack Rusin 1d1cf8edf6 do the lit (some artifacts present) 2008-05-17 13:58:44 -04:00
Zack Rusin ea1a607292 implement min/max and abstract ops on vectors 2008-05-17 13:58:44 -04:00
Zack Rusin 59766ac273 llvm: implement sub and abs 2008-05-17 13:58:44 -04:00
Zack Rusin 735752e8dc fix injections of functions from builtins into shaders 2008-05-17 13:58:44 -04:00
Zack Rusin aeae57693b move the swizzling code to gallivm in preperation for code-generating it
also some minor cleanups
2008-05-17 13:58:44 -04:00
Brian Paul 9671f7ae47 gallium: in drivers, make copy of tokens passed to pipe->create_vs/fs_state()
The caller can then free the token array immediately.
2008-05-17 10:30:21 -06:00
Brian Paul 718a2d8c7a gallium: remove deprecated format names 2008-05-17 08:47:56 -06:00
Brian Paul 1de0af303a s/PIPE_FORMAT_U_S8/PIPE_FORMAT_S8_UNORM/ 2008-05-17 08:46:43 -06:00
Brian Paul b4219e35e2 gallium: fix glBitmap surface memleak in context tear-down 2008-05-16 16:11:00 -06:00
Brian Paul 87afc9bcad gallium: release textures during context tear-down (fix mem leak) 2008-05-16 16:04:30 -06:00
Brian Paul f8dce51083 gallium: ref counting clean-ups 2008-05-16 16:04:04 -06:00
Brian Paul b86cf71491 mesa: call glutDestroyWindow() on exit to help find mem leaks 2008-05-16 16:02:52 -06:00
Brian Paul fc0a48d587 bring in fixes/changes from master 2008-05-16 15:48:11 -06:00
Brian Paul 470f699505 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:40:44 -06:00
Brian Paul ffbd455a36 fix an attr/src mix-up when setting-up/binding vertex arrays
This fixes problems with incorrect material coefficients when glMaterial
is called per-vertex.
2008-05-16 15:34:22 -06: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 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 b256273689 fix some additional program refcounting bugs
cherry-picked from master
2008-05-14 12:47:29 -06:00
Brian Paul d791386b09 fix some additional program refcounting bugs
cherry-picked from master
2008-05-14 12:19:22 -06:00
Jakob Bornecrantz 6c78b8e97b mesa: Made linux-dri targets build EGL 2008-05-14 17:20:56 +02:00
Jakob Bornecrantz 3f9de6ff7d egl: Updated EGL samples to use new i915 EGL winsys 2008-05-14 17:20:25 +02:00
Jakob Bornecrantz d07fbdd939 i915: Added EGL winsys 2008-05-14 17:19:44 +02:00
Zack Rusin 1c624846a8 decomposition from keith, adds decomposition of more prim to the pipeline 2008-05-13 17:59:09 -04:00
Zack Rusin 19f15277d1 adjust llvm code to the changes in 2.3 2008-05-12 17:17:18 -04:00
Keith Whitwell bbda45ec76 draw: turn fse path into a middle end
Also add some util functions in pt_util.c
2008-05-12 19:40:20 +01:00
Keith Whitwell 44463b2997 draw: streamline the varray path
- drop support for running the pipeline (ie. don't populate the flags values)
- pass through all split-able primitives intact to the middle end
- only primitives that can't be split are shunted on the draw-element path
2008-05-12 17:40:55 +01:00
Keith Whitwell f116a14916 softpipe: more work to get non-reduced primitives working in vbuf 2008-05-12 17:40:55 +01:00
Keith Whitwell 90e86363de softpipe: make vbuf handle all primitive types 2008-05-12 17:40:55 +01:00
Keith Whitwell b5e5369da5 draw: add fetch-shade-emit path
Enable with TEST_FSE=t.  Performs fetch from API-provided vertex buffers,
transformation with one of three (two working) hard-coded shaders, and
final emit to hardware vertices all in a single pass.

Currently only really useful for profiling in conjunction with SP_NO_RAST=t.
2008-05-12 17:40:55 +01:00
Keith Whitwell de818835de softpipe: add failure paths for context creation 2008-05-12 17:40:55 +01:00
Keith Whitwell 2258f6b437 xlib: add failure paths for context creation 2008-05-12 17:40:55 +01:00
Keith Whitwell 7ddb925b8b draw: mimize cost of translate key compares, use cache universally 2008-05-12 17:40:54 +01:00