Maarten Maathuis [Thu, 6 Sep 2007 20:55:16 +0000 (22:55 +0200)]
Update to latest pciaccess api, this now requires libpciaccess 0.10.0.
Maarten Maathuis [Thu, 6 Sep 2007 20:00:30 +0000 (22:00 +0200)]
NV03 is dead.
Maarten Maathuis [Thu, 6 Sep 2007 19:43:55 +0000 (21:43 +0200)]
randr12: A prettier hack for DFP, that uses several known htiming and vtiming modes.
- I'm fairly sure these modes are tied to resolution.
- You are welcome to supply additional modes.
- A final solution would be even better ;-)
Arthur Huillet [Thu, 6 Sep 2007 13:09:59 +0000 (15:09 +0200)]
Xv: work around some overlay bandwidth problems - may break things though
extended nv workaround from bug 4686 in nv_dac.c to NV1x and NV2x cards, as it fixed problems on someone's NV17.
Maarten Maathuis [Wed, 5 Sep 2007 21:15:57 +0000 (23:15 +0200)]
Workaround for flatpanels.
- Remove the hardcoded values.
- This should probably work for monitors whose mode is already set.
Maarten Maathuis [Wed, 5 Sep 2007 19:23:25 +0000 (21:23 +0200)]
Fix minor issue.
Maarten Maathuis [Wed, 5 Sep 2007 19:22:05 +0000 (21:22 +0200)]
Fix DPMS, patch by Bernhard Kaindl <bk@suse.de>.
Maarten Maathuis [Wed, 5 Sep 2007 19:18:51 +0000 (21:18 +0200)]
Reverse DDC1 and DDC2.
- I need them reversed.
- I also found this: http://www.mail-archive.com/git-commits-head@vger.kernel.org/msg12009.html
- If you need them otherwise, then please consult and hopefully we can solve it.
Maarten Maathuis [Wed, 5 Sep 2007 19:16:11 +0000 (21:16 +0200)]
randr-1.2 clients have their DDC's initialized elsewhere.
Maarten Maathuis [Wed, 5 Sep 2007 19:12:18 +0000 (21:12 +0200)]
LockUnlock CRTC's when going back to X (EnterVT), patch by Bernhard Kaindl <bk@suse.de>.
Maarten Maathuis [Wed, 5 Sep 2007 16:34:27 +0000 (18:34 +0200)]
Xv: improved behavior with NoAccel by disabling blitter and overlay
Ben Skeggs [Wed, 5 Sep 2007 01:58:19 +0000 (11:58 +1000)]
Avoid segv.
Ben Skeggs [Wed, 5 Sep 2007 01:53:48 +0000 (11:53 +1000)]
Add back DCB table parsing from randr-1.2 branch.
Ben Skeggs [Wed, 5 Sep 2007 01:51:35 +0000 (11:51 +1000)]
Add LVDS panels when found in DCB.
Ben Skeggs [Wed, 5 Sep 2007 01:34:14 +0000 (11:34 +1000)]
Nuke "comparison is always false..." warning.
Ben Skeggs [Wed, 5 Sep 2007 00:59:33 +0000 (10:59 +1000)]
Fix pciid detect on non-8800 cards (they identify as NV8x, not NV5x)
Actually, use 0x88000 to get pciid on all chipsets since NV40. Evidence
suggests that NV4x has both the 0x88xxx regs and 0x18xx regs.
Ben Skeggs [Wed, 5 Sep 2007 00:53:32 +0000 (10:53 +1000)]
Neither overlay or blit adaptor work on G8x.
Ben Skeggs [Wed, 5 Sep 2007 00:51:02 +0000 (10:51 +1000)]
Nuke riva_* files + bits of NV03 that got reincarnated.
Ben Skeggs [Wed, 5 Sep 2007 00:46:54 +0000 (10:46 +1000)]
Nuke XAA.
Maarten Maathuis [Tue, 4 Sep 2007 21:04:59 +0000 (23:04 +0200)]
There was some redundant arch checking code left, must have been missed after the randr merge.
Maarten Maathuis [Tue, 4 Sep 2007 20:54:28 +0000 (22:54 +0200)]
I unknowingly broke CRT's i think.
Maarten Maathuis [Tue, 4 Sep 2007 20:17:52 +0000 (22:17 +0200)]
Fix several problems.
- Implement a temporary NVSetMode(), suggestion and code by: Bernhard Kaindl <bk@suse.de>.
Note: I've left his comment intact, just a minor change.
- Fix last commit, i forgot to store the last mode.
- Move some header stuff around, which i created without knowing the true purpose of nv_proto.h ;-)
Maarten Maathuis [Tue, 4 Sep 2007 18:45:25 +0000 (20:45 +0200)]
Fix DVI/Digital alligment with some (magic?) values discovered by Matthew Garrett <mjg59@srcf.ucam.org>.
Maarten Maathuis [Tue, 4 Sep 2007 18:20:02 +0000 (20:20 +0200)]
Add suggestion/patch by Bernhard Kaindl <bk@suse.de> and fix NVRestore().
- When a monitor comes out of DPMS sleep the old state is restored.
- NVRestore() was not ported from randr-1.2 branch, meaning that going from X to console resulted in a unacceptable mode.
Maarten Maathuis [Tue, 4 Sep 2007 16:39:44 +0000 (18:39 +0200)]
Add pci-rework compatibility and remove the pci-id list.
- Detection is now done by probing registers.
- Nforce/Nforce2 have special "hacks", they have been converted, but are untested.
- NV5x detection should work, but has seen no testing.
Ben Skeggs [Tue, 4 Sep 2007 01:38:39 +0000 (11:38 +1000)]
Badness.
Ben Skeggs [Mon, 3 Sep 2007 12:06:27 +0000 (22:06 +1000)]
Hook up G8x accel code.
Ben Skeggs [Mon, 3 Sep 2007 12:06:09 +0000 (22:06 +1000)]
Fix G8x hwcursor
Ben Skeggs [Mon, 3 Sep 2007 11:35:06 +0000 (21:35 +1000)]
Fix up M2MF code for G8x.
Ben Skeggs [Mon, 3 Sep 2007 11:30:16 +0000 (21:30 +1000)]
Init grobjs we need on G8x.
Ben Skeggs [Mon, 3 Sep 2007 11:14:59 +0000 (21:14 +1000)]
Allocate some VRAM for G8x palette.
Ben Skeggs [Mon, 3 Sep 2007 11:06:15 +0000 (21:06 +1000)]
Don't pound PMC_ENABLE on startup, this is DRM's job.
Fixes resetting parts of G8x that shouldn't be.
Ben Skeggs [Mon, 3 Sep 2007 11:05:08 +0000 (21:05 +1000)]
Detect unknown G8x chips in NVProbe() + Force randr12 on G8x
Dave Airlie [Mon, 3 Sep 2007 06:46:34 +0000 (16:46 +1000)]
fix distcheck after randr-1.2 brought in
Dave Airlie [Mon, 3 Sep 2007 06:42:32 +0000 (16:42 +1000)]
merge in the nv50 code from the randr 1.2 branch
Dave Airlie [Mon, 3 Sep 2007 06:22:47 +0000 (16:22 +1000)]
randr12: bring over cursor code
Dave Airlie [Mon, 3 Sep 2007 06:16:43 +0000 (16:16 +1000)]
randr12: try and bring over most of the randr12 code into master
This currently shouldn't break master, and randr-1.2 more than likely doesn't actually work
Arthur Huillet [Fri, 31 Aug 2007 19:42:51 +0000 (21:42 +0200)]
Xv: now "powercycling" the overlay using PMC_ENABLE in order to workaround some lock up problems
Stephane Marchesin [Thu, 30 Aug 2007 23:36:11 +0000 (01:36 +0200)]
Cut remains of NV03 support.
Stephane Marchesin [Thu, 30 Aug 2007 23:35:52 +0000 (01:35 +0200)]
Good ol' nv04 doesn't seem to support dithering type for SIFM.
Arthur Huillet [Thu, 30 Aug 2007 21:19:13 +0000 (23:19 +0200)]
Xv: nv NV30 arbitration patch for DFPs - fixes (some?) bw problems
Stephane Marchesin [Tue, 28 Aug 2007 22:56:05 +0000 (00:56 +0200)]
Silence more warnings.
Stephane Marchesin [Tue, 28 Aug 2007 22:20:19 +0000 (00:20 +0200)]
Silence a warning.
Stephane Marchesin [Tue, 28 Aug 2007 09:18:54 +0000 (11:18 +0200)]
Some small fixes.
Stephane Marchesin [Thu, 23 Aug 2007 20:54:53 +0000 (22:54 +0200)]
Oops I forgot to enable the nv35 object on nv35...
Stephane Marchesin [Thu, 23 Aug 2007 20:39:34 +0000 (22:39 +0200)]
Don't enable that non-working nv30 EXA just yet.
Stephane Marchesin [Thu, 23 Aug 2007 20:33:58 +0000 (22:33 +0200)]
Add nv30 exa code, doesn't work yet.
Stephane Marchesin [Wed, 22 Aug 2007 20:38:08 +0000 (22:38 +0200)]
Update to the latest nouveau_reg.h file.
Matthieu Castet [Tue, 21 Aug 2007 18:03:15 +0000 (20:03 +0200)]
init SCALED_IMAGE_FROM_MEMORY_COLOR_CONVERSION to COLOR_CONVERSION_TYPE_DITHER.
riva and blob init it.
Arthur Huillet [Tue, 21 Aug 2007 12:55:07 +0000 (14:55 +0200)]
Fixed blending in NVComposite by actually creating ContextBeta1 and 4 objects
Arthur Huillet [Mon, 20 Aug 2007 21:50:43 +0000 (23:50 +0200)]
Workaround for NVComposite bug #11949
Accepting only PictOpSrc now, PictOpOver causing crashes.
Arthur Huillet [Mon, 20 Aug 2007 11:18:15 +0000 (13:18 +0200)]
Xv: fixed wrong fix of big endian NV12 copy, as explained by Daniel Chassot
No sleepless coding ever again. <- big lie
Arthur Huillet [Sun, 19 Aug 2007 22:46:00 +0000 (00:46 +0200)]
Xv: patch from Daniel Chassot to do 32bit memory writes in NVCopyNV12ColorPlanes, with minor reworking of mine
Arthur Huillet [Sun, 19 Aug 2007 19:04:00 +0000 (21:04 +0200)]
Xv: this time a correct matching ? :)
Arthur Huillet [Sun, 19 Aug 2007 18:18:49 +0000 (20:18 +0200)]
Xv: stupid build error. blah.
Arthur Huillet [Sun, 19 Aug 2007 18:14:38 +0000 (20:14 +0200)]
Xv: now catching all chips < NV17
Arthur Huillet [Sun, 19 Aug 2007 17:50:57 +0000 (19:50 +0200)]
Xv: disabled YV12 overlay on < NV17
Arthur Huillet [Thu, 16 Aug 2007 22:45:47 +0000 (00:45 +0200)]
Xv: now only uploading the part of source image that is used to workaround bandwidth problems
Arthur Huillet [Wed, 15 Aug 2007 00:27:15 +0000 (02:27 +0200)]
Cleaner DMA and CPU copy upload of color plane for overlay. Fixes a few bugs and is necessary for the bandwidth problem workaround.
Patrice Mandin [Tue, 14 Aug 2007 20:26:02 +0000 (22:26 +0200)]
Can not setup dfp modes with xorg-server-1.1 also
Patrice Mandin [Tue, 14 Aug 2007 20:12:37 +0000 (22:12 +0200)]
Make NV30 EXA disablable
Arthur Huillet [Tue, 14 Aug 2007 13:01:58 +0000 (15:01 +0200)]
Implemented CPU copy fallback for native YV12 overlay as well.
Arthur Huillet [Tue, 14 Aug 2007 12:47:44 +0000 (14:47 +0200)]
Native YV12 overlay support, cleaner Xv code
Added support for a native YV12 overlay for NV10+ cards.
Cleaned up Xv code.
CPU copy fallback does not do native YV12 yet.
Bandwidth problem with YV12.
Carlos Martín Nieto [Sat, 11 Aug 2007 10:27:56 +0000 (12:27 +0200)]
Don't dereference the uninitialised pNv->FB pointer.
Opps, mea culpa. I accidentally commited a debug statement that
dereferences an uninitialised pointer.
Carlos Martín Nieto [Fri, 10 Aug 2007 18:01:27 +0000 (20:01 +0200)]
Move DRI's FB to the higher half of VRAM
If we don't, DRM's push buffer takes the map away from us.
This is just a workaround until that useless DRI mapping goes away.
Arthur Huillet [Fri, 10 Aug 2007 18:59:12 +0000 (20:59 +0200)]
of course, we don't need Xv debug messages upstream
Arthur Huillet [Fri, 10 Aug 2007 17:28:22 +0000 (19:28 +0200)]
"smart" overlay with composite, and a tentative fix of flickering when dropping frames
added "smart overlay" when composite is enabled. not extensively tested
now not changing the buffer when skipping frames - not sure it even has an impact.
Ben Skeggs [Wed, 8 Aug 2007 15:46:46 +0000 (01:46 +1000)]
Fix blit adaptor + NVWaitVBlank() (ie. replace old magic 0x400710 hack)
Stephane Marchesin [Wed, 8 Aug 2007 10:45:59 +0000 (12:45 +0200)]
And of course, we don't really need these ErrorFs. Not any more than last time.
Stephane Marchesin [Wed, 8 Aug 2007 10:38:14 +0000 (12:38 +0200)]
Oh, and of course we need a new object.
Stephane Marchesin [Wed, 8 Aug 2007 10:37:31 +0000 (12:37 +0200)]
Use IMAGE_FROM_CPU for smaller UTS. This is async and helps a lot with glyphs especially.
Ben Skeggs [Wed, 8 Aug 2007 01:48:48 +0000 (11:48 +1000)]
Add forgotten prototype
Ben Skeggs [Wed, 8 Aug 2007 00:32:08 +0000 (10:32 +1000)]
Timeouts got lost somewhere along the way..
Stephane Marchesin [Tue, 7 Aug 2007 21:42:09 +0000 (23:42 +0200)]
Fix some overlooked hardcoded subchannels...
Stephane Marchesin [Mon, 6 Aug 2007 21:30:04 +0000 (23:30 +0200)]
Fix explicit usage of subchannels, and remove subchannel defines altogether.
Matthieu Castet [Mon, 6 Aug 2007 17:55:52 +0000 (19:55 +0200)]
make XAA work on nv17
Stephane Marchesin [Mon, 6 Aug 2007 16:27:19 +0000 (18:27 +0200)]
oops remove the debugging ErrorFs.
Stephane Marchesin [Mon, 6 Aug 2007 16:13:13 +0000 (18:13 +0200)]
Fix UTS/DFS when gart is smaller than transfer size.
Ben Skeggs [Mon, 6 Aug 2007 16:09:30 +0000 (02:09 +1000)]
NVDmaSetObjectFromSubchannel doesn't exist anymore!
Stephane Marchesin [Mon, 6 Aug 2007 15:29:41 +0000 (17:29 +0200)]
Add subchannel handling code
Ben Skeggs [Mon, 6 Aug 2007 11:45:50 +0000 (21:45 +1000)]
Adapt to drm 0.0.10
Arthur Huillet [Sun, 5 Aug 2007 23:37:17 +0000 (01:37 +0200)]
Xv: waiting for last transfers to finish before freeing notifiers
Ben Skeggs [Sun, 5 Aug 2007 14:13:35 +0000 (00:13 +1000)]
Clamp NV_MEMORY_TO_MEMORY_FORMAT_LINE_COUNT to 2047 lines.
At least NV40 can't handle values larger than this. Patch fixes hang
when visiting opengl.org.
Arthur Huillet [Mon, 30 Jul 2007 01:27:55 +0000 (03:27 +0200)]
Xv now manages a pool of 6 notifiers for its double buffering. Also improved the memory allocation logic.
Arthur Huillet [Sat, 28 Jul 2007 23:54:42 +0000 (01:54 +0200)]
Xv: fixed bugs when displayed only part of the source image (tvtime with overscan)
Xv: fixed bug with overlay behaving badly when window is partly out of screen
Xv: clean up NVPutImage code
Dave Airlie [Sat, 28 Jul 2007 06:34:49 +0000 (16:34 +1000)]
exa: disable compositing on big endian machines
This at least allows me to see what I'm typing for now :-)
Arthur Huillet [Fri, 27 Jul 2007 17:50:48 +0000 (19:50 +0200)]
no overlay with composite
Arthur Huillet [Fri, 27 Jul 2007 14:28:48 +0000 (16:28 +0200)]
Xv: gotos are evil
Arthur Huillet [Fri, 27 Jul 2007 13:11:31 +0000 (15:11 +0200)]
Removed comments in preparation for upstream push
Arthur Huillet [Thu, 26 Jul 2007 21:00:02 +0000 (23:00 +0200)]
re-added CPU copy code as a second fallback option (first being to use X GARTScratch)
Arthur Huillet [Thu, 26 Jul 2007 14:08:40 +0000 (16:08 +0200)]
Completely removed notifier wait, when using double buffered stuff.
I may have to re-add a wait in the future, but I'm not sure yet how to use two notifiers at a time.
Arthur Huillet [Thu, 26 Jul 2007 13:21:08 +0000 (15:21 +0200)]
Preliminary implementation of "host-side double buffering" to improve performance of Xv
Arthur Huillet [Wed, 25 Jul 2007 20:23:37 +0000 (22:23 +0200)]
removed pointless sleep in notifier wait
Arthur Huillet [Fri, 20 Jul 2007 15:46:18 +0000 (17:46 +0200)]
cleaner Xv code - fallback on CPU copy yet to be implemented
Arthur Huillet [Thu, 19 Jul 2007 23:33:49 +0000 (01:33 +0200)]
Now using GART as the source for the blitter - preliminary implementation, gotta clean it up
Arthur Huillet [Thu, 19 Jul 2007 23:22:11 +0000 (01:22 +0200)]
now yielding in the wait for notifier for Xv only
Arthur Huillet [Sat, 14 Jul 2007 23:00:19 +0000 (01:00 +0200)]
VERY EXPERIMENTAL now EXA waits for sync before its operations - this removed the text corruption and didn't affect performance here, please report.
Arthur Huillet [Sat, 14 Jul 2007 22:35:46 +0000 (00:35 +0200)]
VERY EXPERIMENTAL moved the notifier wait at the beginning of NvPutImage
Arthur Huillet [Thu, 12 Jul 2007 01:19:21 +0000 (03:19 +0200)]
new structure for PutImage, and DMA transfers
Ben Skeggs [Tue, 17 Jul 2007 03:09:34 +0000 (13:09 +1000)]
Emit NOTIFY+NOP sequence after M2MF.