Maarten Maathuis [Wed, 10 Oct 2007 18:08:28 +0000 (20:08 +0200)]
randr12: Fix switch mode function, so fullscreen apps don't screw up your screen by definition ;-)
Stephane Marchesin [Wed, 10 Oct 2007 12:43:34 +0000 (14:43 +0200)]
Oops.
Stephane Marchesin [Wed, 10 Oct 2007 12:42:46 +0000 (14:42 +0200)]
Try to do something for our desastrous UTS/DFS performance. My PCI card is really hurting.
Stephane Marchesin [Wed, 10 Oct 2007 00:34:06 +0000 (02:34 +0200)]
Still more work on nv30 exa... now starts but nothing works.
Stephane Marchesin [Tue, 9 Oct 2007 22:48:46 +0000 (00:48 +0200)]
Don't swap the registers from user space. This is very wrong, and the drm will handle that soon.
Stephane Marchesin [Tue, 9 Oct 2007 22:48:06 +0000 (00:48 +0200)]
Revert back to the other shaders. The terminator instruction doesn't seem to help, and breaks the A8 hack.
Stephane Marchesin [Tue, 9 Oct 2007 02:38:29 +0000 (04:38 +0200)]
Cleanup some nv30 exa issues, add debbuging info to the composite hook.
Stephane Marchesin [Tue, 9 Oct 2007 01:28:39 +0000 (03:28 +0200)]
Some fixes to nv30_exa. Now goes through a couple of composite() calls without crashing.
Stephane Marchesin [Tue, 9 Oct 2007 01:28:11 +0000 (03:28 +0200)]
Use terminators on the nv30/40 shaders.
Maarten Maathuis [Mon, 8 Oct 2007 17:53:56 +0000 (19:53 +0200)]
randr12: Small changes makes finding regressions easy ;-)
Maarten Maathuis [Sat, 6 Oct 2007 17:04:51 +0000 (19:04 +0200)]
EXA: Starting from version 2.4 we can't use devPrivate.ptr anymore.
Stephane Marchesin [Fri, 5 Oct 2007 21:50:18 +0000 (23:50 +0200)]
some more work on nv30 exa...
Maarten Maathuis [Fri, 5 Oct 2007 20:29:07 +0000 (22:29 +0200)]
randr12: Misc changes.
Stephane Marchesin [Fri, 5 Oct 2007 15:20:05 +0000 (17:20 +0200)]
mandatory oops commit.
Stephane Marchesin [Fri, 5 Oct 2007 15:18:40 +0000 (17:18 +0200)]
Split nv30 exa and nv40 exa.
Jeremy Kolb [Fri, 5 Oct 2007 03:15:38 +0000 (23:15 -0400)]
NV30 texture changes. Commented out table that appears to work for nv35 at least.
Jeremy Kolb [Fri, 5 Oct 2007 00:37:35 +0000 (20:37 -0400)]
Fix NV30 arch check.
Stephane Marchesin [Thu, 4 Oct 2007 21:46:43 +0000 (23:46 +0200)]
fix nv30_exa for nv40.
Maarten Maathuis [Thu, 4 Oct 2007 19:49:33 +0000 (21:49 +0200)]
NV50: Fix a minor mistake.
Maarten Maathuis [Wed, 3 Oct 2007 20:57:56 +0000 (22:57 +0200)]
randr12: Some reindenting.
Patrice Mandin [Thu, 4 Oct 2007 17:54:40 +0000 (19:54 +0200)]
nv10exa: init link between tcl and image blit for >=nv11
Jeremy Kolb [Thu, 4 Oct 2007 03:34:23 +0000 (23:34 -0400)]
nv30_exa: send down pitch correctly
Jeremy Kolb [Thu, 4 Oct 2007 00:54:28 +0000 (20:54 -0400)]
Fill in some regs.
Maarten Maathuis [Wed, 3 Oct 2007 20:16:13 +0000 (22:16 +0200)]
randr12: Actually borrow some timing stuff from Haiku correctly ;-) + new crtc reg
Matthieu Castet [Wed, 3 Oct 2007 19:21:41 +0000 (21:21 +0200)]
abort on Init table command not found when parsing bios
Maarten Maathuis [Wed, 3 Oct 2007 17:54:40 +0000 (19:54 +0200)]
NV50: Fix small mistake.
Maarten Maathuis [Wed, 3 Oct 2007 17:03:38 +0000 (19:03 +0200)]
randr12 + NV50: Misc changes.
- Switched everything back to head variable instead of pcio.
- Removed ugly C() macro for NV50.
- Probably some other stuff too.
- Please test NV5x users ;-)
Maarten Maathuis [Tue, 2 Oct 2007 17:31:10 +0000 (19:31 +0200)]
NV50: Some infrastructure and minor changes.
Maarten Maathuis [Tue, 2 Oct 2007 14:55:07 +0000 (16:55 +0200)]
NV50: The beginning of moving some code around.
- Please contact me if something breaks, i don't have an NV5x card.
Maarten Maathuis [Tue, 2 Oct 2007 08:35:37 +0000 (10:35 +0200)]
NV30EXA: Minor code cleanup.
Stephane Marchesin [Mon, 1 Oct 2007 15:19:41 +0000 (17:19 +0200)]
Remove those useless casts.
Stephane Marchesin [Mon, 1 Oct 2007 00:01:30 +0000 (02:01 +0200)]
Some work on nv10 exa.
Matthieu Castet [Sun, 30 Sep 2007 20:41:15 +0000 (22:41 +0200)]
enable bios PINS parsing on post nv10 cards
Pekka Paalanen [Sun, 30 Sep 2007 20:09:33 +0000 (23:09 +0300)]
nv20 inits nv10tcl.
Maarten Maathuis [Sun, 30 Sep 2007 19:43:41 +0000 (21:43 +0200)]
Fix detection of NV04 and NV05 when using pci-rework.
Maarten Maathuis [Sun, 30 Sep 2007 17:37:53 +0000 (19:37 +0200)]
randr12: Switch to proper cursor api + minor changes + small nv50 fix
- Remove the ugly cursor hack.
- A function name on nv50 was still g80, this caused an implicit decleration.
Maarten Maathuis [Sun, 30 Sep 2007 10:40:50 +0000 (12:40 +0200)]
NV30EXA: Fix rendering issues.
- Full non-composite tests using rendercheck.
- The full test suite of composite has been run (it takes ~15 hours).
- A partial cacomposite has been run (a8, a8r8g8b8, x8r8g8b8).
- All the rendering tests work fine, as does the cairo-knockout demo.
- Thanks to doener for reporting this issue.
Stephane Marchesin [Sat, 29 Sep 2007 18:20:47 +0000 (20:20 +0200)]
A little more work on nv10 exa.
Maarten Maathuis [Sat, 29 Sep 2007 15:28:10 +0000 (17:28 +0200)]
randr12: Some more CRTC regs.
Maarten Maathuis [Sat, 29 Sep 2007 12:33:38 +0000 (14:33 +0200)]
randr12: make crtc owner beheaviour consistent with blob + minor changes
Maarten Maathuis [Fri, 28 Sep 2007 17:58:39 +0000 (19:58 +0200)]
randr12: Minor changes and more debugging output.
Maarten Maathuis [Fri, 28 Sep 2007 16:52:47 +0000 (18:52 +0200)]
randr12: Some more debugging output and some other minor changes.
Maarten Maathuis [Fri, 28 Sep 2007 11:02:51 +0000 (13:02 +0200)]
randr12: Preperation to allow differentation between crtc and pcio in the future.
Stephane Marchesin [Thu, 27 Sep 2007 16:21:25 +0000 (18:21 +0200)]
Import nv10 exa code. Does not work yet.
Maarten Maathuis [Wed, 26 Sep 2007 07:04:43 +0000 (09:04 +0200)]
randr12: Some registers were not constants, so changed it back with a note about the values i had seen.
Maarten Maathuis [Tue, 25 Sep 2007 20:05:36 +0000 (22:05 +0200)]
randr12: Getting closer, doing a decent attempt at detecting the proper ramdac.
- crtc detection may need to be added
- When i boot up with both analog and dvi attached, my dvi is misprogrammed, maybe some sharing is happening somewhere?
Maarten Maathuis [Tue, 25 Sep 2007 19:06:03 +0000 (21:06 +0200)]
randr12: detection changes, more to come later
- Detection of crtc's (or a way to program them effectively) still has to be done/fixed.
- It now detects if tmds controls is on another ramdac, for a non-dual dvi setup.
- Disabled TMDS stuff for the moment, since it's incorrect somehow.
- Dumps for single dvi, dual dvi, etc are appreciated.
Maarten Maathuis [Tue, 25 Sep 2007 14:22:38 +0000 (16:22 +0200)]
randr12: Some reindenting.
Maarten Maathuis [Tue, 25 Sep 2007 14:17:03 +0000 (16:17 +0200)]
randr12: simplification of the swapped i2c buses "workaround" for nv4x and some code reindenting
Maarten Maathuis [Sat, 22 Sep 2007 23:16:55 +0000 (01:16 +0200)]
randr12: A frail attempt at some TMDS programming, i have not figured out yet what switches DVI from one RAMDAC to the other.
Maarten Maathuis [Sat, 22 Sep 2007 22:57:18 +0000 (00:57 +0200)]
randr12: Reindenting and minor changes.
Maarten Maathuis [Sat, 22 Sep 2007 20:21:37 +0000 (22:21 +0200)]
randr12: Assign ramdac's in more sane way, otherwise two outputs may end up on the same ramdac.
Maarten Maathuis [Sat, 22 Sep 2007 18:37:32 +0000 (20:37 +0200)]
randr12: Add some TMDS register infrastructure, so i can try some stuff in the future.
Maarten Maathuis [Sat, 22 Sep 2007 13:55:01 +0000 (15:55 +0200)]
randr12: hardcoding a base value for debug_0 register.
Maarten Maathuis [Fri, 21 Sep 2007 21:16:40 +0000 (23:16 +0200)]
randr12: Some minor changes.
Maarten Maathuis [Fri, 21 Sep 2007 18:37:50 +0000 (20:37 +0200)]
randr12: hardcode more stuff + actually use a few previous regs
- I'm going to try and do full modesetting, before tackling the problems that dual monitor setups face (i tried, it wasn't pretty).
Dave Airlie [Wed, 19 Sep 2007 22:29:43 +0000 (08:29 +1000)]
make distcheck pass
Maarten Maathuis [Mon, 17 Sep 2007 16:58:31 +0000 (18:58 +0200)]
randr12: Add some CRTC regs which the blob sets.
Maarten Maathuis [Mon, 17 Sep 2007 16:22:53 +0000 (18:22 +0200)]
randr12: Change the way CRTC register 59 is set.
- Small change, i suspect the original author had a dfp on the second crtc.
- Information taken from a mmio trace of a nv28.
Ben Skeggs [Sun, 16 Sep 2007 14:01:22 +0000 (00:01 +1000)]
Make use of exaGetPixmapOffset().
Ben Skeggs [Sun, 16 Sep 2007 13:54:14 +0000 (23:54 +1000)]
Fix randr1.2 with driver-provided modes (ie. LVDS native mode)
Fixes #12368
Ben Skeggs [Sun, 16 Sep 2007 09:44:42 +0000 (19:44 +1000)]
NV30EXA: Support PICT_a8 dest surfaces
Quick hack for now, shader handling will get a rework one day and clean all
this up.
Ben Skeggs [Sun, 16 Sep 2007 09:01:21 +0000 (19:01 +1000)]
Bring G8x modesetting into sync with xf86-video-nv.
Ben Skeggs [Sun, 16 Sep 2007 07:27:22 +0000 (17:27 +1000)]
Move G80 VBIOS download into nv_bios.c.
Arthur Huillet [Fri, 14 Sep 2007 19:13:26 +0000 (21:13 +0200)]
Xv: NV04 overlay now has one "colorkey" attribute
It is technically possible to add other attributes, by copypasting vidix code from mplayer, but it requires a bit of work especially on testing, so I am going
to do it only if someone actually needs it.
Arthur Huillet [Fri, 14 Sep 2007 12:17:32 +0000 (14:17 +0200)]
Xv: NV04 overlay now almost functionnal
Arthur Huillet [Fri, 14 Sep 2007 10:27:45 +0000 (12:27 +0200)]
Xv: quick imple of NV04 overlay
Stephane Marchesin [Wed, 12 Sep 2007 11:10:37 +0000 (13:10 +0200)]
Try to fix nv4/tnt1
Maarten Maathuis [Tue, 11 Sep 2007 18:15:11 +0000 (20:15 +0200)]
Restore PRAMDAC1 and PCRTC1 offsets, in proper format (0x2000/4) and move them to their proper place.
Maarten Maathuis [Mon, 10 Sep 2007 19:14:24 +0000 (21:14 +0200)]
Fix the memory adresses of the secondary crtc and ramdac + minor change.
Patrice Mandin [Mon, 10 Sep 2007 16:29:10 +0000 (18:29 +0200)]
make randr 1.2 disableable for xorg server < 1.3
Patrice Mandin [Mon, 10 Sep 2007 16:28:03 +0000 (18:28 +0200)]
make randr 1.2 disableable for xorg server < 1.3
Maarten Maathuis [Mon, 10 Sep 2007 05:57:01 +0000 (07:57 +0200)]
randr12: Apply the same pll restrictions to a two stage design.
Maarten Maathuis [Mon, 10 Sep 2007 05:25:25 +0000 (07:25 +0200)]
randr12: Some more pll timer restrictions from Haiku.
Maarten Maathuis [Sun, 9 Sep 2007 21:11:18 +0000 (23:11 +0200)]
randr12: Some new pll clock restrictions.
Maarten Maathuis [Sun, 9 Sep 2007 20:50:19 +0000 (22:50 +0200)]
Some reindenting.
Maarten Maathuis [Sun, 9 Sep 2007 20:12:38 +0000 (22:12 +0200)]
randr12: Modify dcb table for nv40 to make it look more like older hardware. Remove i2c bus reverse.
Maarten Maathuis [Sun, 9 Sep 2007 18:40:20 +0000 (20:40 +0200)]
Removed a check for > 1 active crtc's, which seems really odd, no regressions occured for me.
- I cannot plug in both the vga and dvi connector of my monitor, so i cannot verify that.
- The seperate monitor, on crtc0 and crtc1 work as they did (the afp being slightly shifted).
- Also did a little reindenting.
Maarten Maathuis [Sun, 9 Sep 2007 16:49:08 +0000 (18:49 +0200)]
randr12: Fix a nasty regression from
6ba7e83f8cf2da84dd796ee59cb24c15bc36b746.
- For non-flatpanels the dac was never initialized.
Maarten Maathuis [Sat, 8 Sep 2007 22:39:41 +0000 (00:39 +0200)]
randr12: Some missing init.
Maarten Maathuis [Sat, 8 Sep 2007 21:58:39 +0000 (23:58 +0200)]
Some much needed indenting and readability improvements.
Maarten Maathuis [Sat, 8 Sep 2007 19:00:45 +0000 (21:00 +0200)]
Hopefully fix bridged chip detection, such as the 7800GS AGP.
Maarten Maathuis [Sat, 8 Sep 2007 12:25:39 +0000 (14:25 +0200)]
Remove list that is incorrect and no longer needed.
Maarten Maathuis [Sat, 8 Sep 2007 12:24:54 +0000 (14:24 +0200)]
Fix previous commit, change the way Digital Flat Panels are programmed.
- This is mostly taken from the Haiku driver.
- It works for me, please report any issues you have.
- Added scaling, for running 4:3 resolutions on widescreen for example (untested).
Maarten Maathuis [Fri, 7 Sep 2007 22:46:20 +0000 (00:46 +0200)]
Hopefully this will improve flatpanel beheaviour.
- I looked at Haiku and copied as much as i could.
- I removed the htiming and vtiming hack.
- Let's hope this works.
Maarten Maathuis [Fri, 7 Sep 2007 21:11:51 +0000 (23:11 +0200)]
Some more indenting and such.
Maarten Maathuis [Fri, 7 Sep 2007 20:58:56 +0000 (22:58 +0200)]
Removing a hack in the hopes of finding a better way and some minor changes.
Maarten Maathuis [Fri, 7 Sep 2007 20:27:18 +0000 (22:27 +0200)]
Indenting and minor code style changes.
Maarten Maathuis [Fri, 7 Sep 2007 12:37:40 +0000 (14:37 +0200)]
randr12: Fix Xv blitter, please see full changelog for other implications.
- Removed the CRTCNumber variable, instead just store if crtc0 and crtc1 are active.
- This coule break old style setups (picking the wrong monitor for example).
- CRTCNumber option temporarily removed, because the piece of code surrounding it is ugly and needs a rework.
Maarten Maathuis [Thu, 6 Sep 2007 21:26:04 +0000 (23:26 +0200)]
randr-1.2: Only the NV4x have these busses swapped, revert for other architectures.
- If this is also true for NV3x, then please contact me.
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>.