Keith Whitwell
86e529ad90
draw: use lookup tables to avoid calling pow() in LIT opcode
2008-05-24 16:31:11 +01:00
Keith Whitwell
e1590abb17
mesa: pre-swizzle normal scale state value
2008-05-24 13:23:06 +01:00
Keith Whitwell
a2b1c46535
mesa: evaluate _NeedEyeCoords prior to generating internal vertex shader
2008-05-24 13:22:39 +01:00
Keith Whitwell
6172f1295c
draw: add a debug-print which can be called from inside generated shaders
2008-05-24 13:22:29 +01:00
Keith Whitwell
6b3723ee8d
rtasm: add some helpers for calling out from generated code
2008-05-24 13:22:15 +01:00
Keith Whitwell
feceb43948
mesa: save a temp on normalizes
2008-05-23 20:37:50 +01:00
Keith Whitwell
e841b92d9c
mesa: further degenerate the special case lit substitute
2008-05-23 20:05:36 +01:00
Keith Whitwell
333d377bbd
glapi: fix include path & make build work
2008-05-23 19:17:57 +01:00
Keith Whitwell
0ac2f7955c
mesa: don't emit LIT instruction when mat shininess known to be zero
...
Use a faster path in that case & make gears go faster.
2008-05-23 19:17:02 +01:00
Keith Whitwell
3b41d619a1
draw: faster LIT(), incorrect though
2008-05-23 09:16:58 +01:00
Keith Whitwell
adc1f88fc9
mesa: do object-space lighting in ffvertex_prog.c
...
Start pulling over some of the optimizations from the fixed function
paths.
2008-05-23 09:16:58 +01:00
Keith Whitwell
7106da1360
draw: correct but slow LIT() in aos varient
2008-05-23 09:16:58 +01:00
Keith Whitwell
43df4642f1
draw: tweak x87_emit_ex2 to avoid changing x87 fpu settings
2008-05-23 09:16:58 +01:00
Keith Whitwell
260001430b
draw: use aligned movs within draw_vs_aos.c
2008-05-23 09:16:58 +01:00
Keith Whitwell
65cb09249e
draw: for debug, do rhw divide in aos_sse viewport calcs
2008-05-23 09:16:58 +01:00
Keith Whitwell
6780a6dede
draw: shortcircuit shuffle in aos_sse when possible
2008-05-23 09:16:58 +01:00
Keith Whitwell
7b25c1a403
draw: remove FPU_MANIP ifdef
2008-05-23 09:16:58 +01:00
Keith Whitwell
05029c919d
draw: clean up masked writes in aos sse, make some xmm function names clearer
2008-05-23 09:16:57 +01:00
Keith Whitwell
c684ffa02d
draw: clean up internal immediates in aos sse
2008-05-23 09:16:57 +01:00
Keith Whitwell
a5c3b499fa
draw: fse works with elts, remove assert
2008-05-23 09:16:57 +01:00
Keith Whitwell
6f407b0724
rtasm: remove debug
2008-05-23 09:16:57 +01:00
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