Keith Whitwell
5b1bd30f22
draw: when preloading args to x87 stack, need to use reverse order
2008-05-23 09:16:57 +01:00
Keith Whitwell
083f3f5c32
draw: avoid a pointless mov in many sse opcodes
2008-05-23 09:16:57 +01:00
Keith Whitwell
0a7a0d79f6
draw: fix x87_ex2 and partially fix lit insn
2008-05-23 09:16:56 +01:00
Keith Whitwell
2302a5d3c1
draw: fix fpu control word manipulations
2008-05-23 09:16:56 +01:00
Keith Whitwell
194a7be28f
draw: fix vs aos internal/machine state
2008-05-23 09:16:56 +01:00
Keith Whitwell
889473b3f5
draw: add viewport to varient state
2008-05-23 09:16:56 +01:00
Keith Whitwell
030af06691
rtasm: add x87 instructions and debug-check for x87 stack usage
2008-05-23 09:16:56 +01:00
Keith Whitwell
2f13d4cd58
vp-tris: use test name as window name
2008-05-23 09:16:56 +01:00
Keith Whitwell
1ba10e5ccf
draw: add aos vertex shader varient
2008-05-23 09:16:56 +01:00
Keith Whitwell
ba738a3135
draw: mark varient functions as PIPE_CDECL
2008-05-23 09:16:56 +01:00
Keith Whitwell
b5c8b3fba6
translate: mark functions as PIPE_CDECL
2008-05-23 09:16:55 +01:00
Keith Whitwell
9343779a8c
gallium: define PIPE_CDECL calling convention, which really is cdecl everywhere
2008-05-23 09:16:55 +01:00
Keith Whitwell
d3e64caef6
rtasm: export debug reg print function
2008-05-23 09:16:55 +01:00
Keith Whitwell
8618e6aa16
translate: remove spurious comment
2008-05-23 09:16:55 +01:00
Keith Whitwell
9232f0c023
rtasm: remove unused struct member
2008-05-23 09:16:55 +01:00
Keith Whitwell
7c99d7fe60
draw: create specialized vs varients incorporating fetch & emit
2008-05-23 09:16:55 +01:00
Keith Whitwell
2f0d1396e4
draw: move some state into a new 'vs' area
2008-05-23 09:16:55 +01:00
Keith Whitwell
b23706454b
draw: get rid of fetch-shade-emit frontend hack
...
The code is now living in it's intended place as a pt middle end.
2008-05-23 09:16:54 +01:00
Keith Whitwell
8b25b5256f
draw: remove disabled non-sse swizzle code
2008-05-23 09:16:54 +01:00
Zack Rusin
09900df429
Merge commit 'origin/gallium-0.1' into gallium-vertex-linear
2008-05-19 12:10:42 -04:00
Brian Paul
59007a811d
if x86_get_func() returns NULL, handle it properly instead of aborting
2008-05-19 09:34:28 -06:00
Brian Paul
38fb20b224
fix program delete/refcount bug
...
cherry-picked from gallium-tex-surfaces
2008-05-19 09:04:02 -06:00
Brian Paul
62f96ddbbc
Fix program refcounting assertion failure during context tear-down
...
When purging the program hash table, the refcount _should_ be one since
the program is referenced by the hash table. Need to explicitly set to
zero before calling delete().
Also, purge high-level shader hash tables before low-level program hash tabl
cherry-picked from master
2008-05-19 08:59:41 -06:00
Brian Paul
a0bfeb0c3c
print vertex.attrib[n] (from master)
2008-05-18 15:46:58 -06:00
Brian Paul
1036ec94e5
Fix some bugs in material, depth range state
...
picked from master
2008-05-18 15:32:58 -06:00
Brian Paul
1bb30b02dd
Regenerated API dispatch files
...
Follow on to cherry-pick from master
2008-05-18 15:23:03 -06:00
Brian Paul
f9e1ef2a5b
alias ProgramEnvParameter4xyARB and ProgramParameter4xyNV (bug #12935 )
...
these should be the same functions (as per spec).
cherry-picked from master (86a4810b09 )
2008-05-18 15:21:28 -06:00
Zack Rusin
0bf82c0111
cosmetic changes
2008-05-17 13:58:45 -04:00
Zack Rusin
a7449d4d84
fix rsq
2008-05-17 13:58:44 -04:00
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
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