Ben Skeggs
99878298da
Improve SwapBuffers a bit.
2006-12-14 04:34:38 +00:00
Ben Skeggs
c95557f48b
0x4497 doesn't have NV30_TCL_PRIMITIVE_3D_NORMALIZE_ENABLE
2006-12-14 04:12:05 +00:00
Ben Skeggs
15c7e8896b
Some more voodoo to get 3D going with a minimal initial context.
2006-12-14 03:24:57 +00:00
Patrice Mandin
aadcf1a9ff
Update spot light params also for nv20 and nv30
2006-12-08 18:56:51 +00:00
Patrice Mandin
5c80270b91
grr, always check twice before commit
2006-12-08 16:40:34 +00:00
Patrice Mandin
65c54a685a
Resend spot light parameters when part of it changes
2006-12-08 16:39:12 +00:00
Ben Skeggs
c04c74bc5d
Skeletal extension handling across chipsets.
2006-12-08 14:12:47 +00:00
Ben Skeggs
fe91d00e33
NV_44 uses nv30InitStateFuncs too
2006-12-08 12:36:26 +00:00
Ben Skeggs
046ece3a2d
state cache is automagically flushed on a normal BEGIN_RING_SIZE
2006-12-08 11:51:50 +00:00
Ben Skeggs
e62b2f9c2e
Implement a simple nv30Clear, and make sure we get a nouveau_renderbuffer
...
for the depth buffer and not a Mesa renderbuffer adaptor
2006-12-08 11:45:39 +00:00
Ben Skeggs
bda66ac426
oops, typo
2006-12-08 07:27:39 +00:00
Ben Skeggs
011377622f
Create visuals for modes the ddx provides
2006-12-08 07:15:43 +00:00
Ben Skeggs
1d6f13986c
oops, we don't want this by default just yet...
2006-12-08 03:04:10 +00:00
Ben Skeggs
4cfb762c3e
Some work on buffer handling, most likely not entirely correct and
...
incomplete. But, it works well enough that windows can be
moved/resized.
2006-12-08 03:01:33 +00:00
Stephane Marchesin
3867bc9780
Fix the swtcl module.
2006-12-03 11:46:18 +00:00
Patrice Mandin
f95fe81fff
Remove duplicate nv10 tcl defines
2006-12-03 10:08:04 +00:00
Stephane Marchesin
d88d895e5a
Merge the pciid work. Use lock step versioning with the drm.
2006-12-03 09:08:26 +00:00
Ben Skeggs
b4dcb99cbc
Fix a copy+paste'o that caused some *very* strange bugs..
2006-12-03 02:01:49 +00:00
Ben Skeggs
98818f159b
- Add InitInstruction to hw shader backend, and remove SetUnusedSource.
...
- NV30FP/NV40VP: Clear any fields before we OR new values into them
- NV40VP: It seems that it might be possible to write a result reg at the
same time a temp is written. In InitInstruction, initialise OUT_DEST to
OUT_DEST_TEMP so result regs don't get clobbered by default.
2006-11-27 01:57:37 +00:00
Ben Skeggs
2f411b0a8b
Fix RSQ emulation
2006-11-26 13:18:41 +00:00
Ben Skeggs
6ff3d2577e
Fix progs/fp/tri-xpd
...
Fragprog consts are inlined, so make sure we update *all* occurances of a
param :)
2006-11-26 10:19:44 +00:00
Ben Skeggs
9c9e6abbf8
Incomplete shader stuff, should mostly work for NV40. Other cards, not so
...
much..
2006-11-25 09:58:35 +00:00
Ben Skeggs
902b26a0d6
fix scissor
2006-11-25 06:02:10 +00:00
Patrice Mandin
2911551727
nv10,nv20,nv30: send correct values for spot light direction X,Y,Z and
...
cutoff parameter C
2006-11-24 23:34:03 +00:00
Patrice Mandin
78e5f414cb
nv10: rename spot light coefs like nv20,nv30
2006-11-24 23:23:18 +00:00
Stephane Marchesin
0faf23c26a
That was really stupid.
2006-11-23 09:21:44 +00:00
Ben Skeggs
7398748add
Some missing state init
2006-11-22 20:15:56 +00:00
Patrice Mandin
3e4a5c0642
Enable nv10 tcl state
2006-11-21 21:44:16 +00:00
Patrice Mandin
ac09b567a8
nv10,nv20: nvX0ShadeModel static function
2006-11-21 21:15:49 +00:00
Patrice Mandin
677666eb70
nv10,nv20,nv30: color light components renamed from a,b,c to r,g,b
2006-11-21 21:11:58 +00:00
Patrice Mandin
81ae0bd249
ah, correct revision now
2006-11-21 20:38:14 +00:00
Patrice Mandin
4ed78e20a4
update from renouveau
2006-11-21 20:29:09 +00:00
Patrice Mandin
b5e800068b
nv10: update state
2006-11-21 19:56:15 +00:00
Ben Skeggs
a75440bcf0
nouveauCreateDmaObject
2006-11-21 14:03:06 +00:00
Stephane Marchesin
fb65450704
Remaining state cache changes
2006-11-21 13:07:48 +00:00
Stephane Marchesin
0ea45b1ad8
Add the state caching mechanism. It seems to work, from what I can see.
2006-11-21 12:43:16 +00:00
Jeremy Kolb
a20cf73053
More state.
2006-11-21 02:47:13 +00:00
Jeremy Kolb
afb49fef90
Add state initialization to context creation.
2006-11-20 17:25:54 +00:00
Stephane Marchesin
50c85daf02
Cleanup the swtcl code.
2006-11-19 23:47:24 +00:00
Stephane Marchesin
ac208c95cd
Use NONINC_METHOD for vertex data.
2006-11-19 23:39:16 +00:00
Stephane Marchesin
4165a10972
More work on the swtcl
2006-11-19 23:16:29 +00:00
Stephane Marchesin
fe2e6100ec
More fifo debug fixes
2006-11-19 22:16:54 +00:00
Stephane Marchesin
a8d34992ea
Oops.
2006-11-19 21:51:28 +00:00
Stephane Marchesin
3613eba085
Fix the fifo debugging feature.
2006-11-19 21:29:41 +00:00
Stephane Marchesin
327e2c9220
New swtcl implementation. It's simpler than the previous one (doesn't use
...
templates) and it is probably faster as well
2006-11-19 20:18:45 +00:00
Ben Skeggs
a7139168d2
Don't bother touching lighting stuff if shaders are in use
2006-11-19 16:05:59 +00:00
Ben Skeggs
80a0ce37df
Fix nv30LineWidth, hw expects a ubyte.
2006-11-19 15:52:18 +00:00
Ben Skeggs
a2a747704d
Avoid sharing subchannels with the ddx until context switching is done
...
properly..
2006-11-19 15:46:31 +00:00
Ben Skeggs
b3fd1556f9
More FIFO fixes.
2006-11-19 15:45:36 +00:00
Ben Skeggs
08a0946fcc
Stupid bug..
2006-11-19 14:10:54 +00:00