Pekka Paalanen [Sun, 21 Oct 2007 16:55:41 +0000 (19:55 +0300)]
Revert "EXA: now caching BLIT_OPERATION and RECT_OPERATION..."
This reverts commit
6d8caf5e0dd915809152c52c2c56a39d76e2ed8c.
Conflicts:
src/nv_exa.c
The above mentioned commit broke EXA copy and solid operations on nv20
after display mode change. Triggered by running freedroid in fullscreen.
(Not freedroidRPG)
Maarten Maathuis [Sat, 20 Oct 2007 18:30:02 +0000 (20:30 +0200)]
Add back comment.
Maarten Maathuis [Fri, 19 Oct 2007 22:26:02 +0000 (00:26 +0200)]
randr12: Fix critical bug and minor change.
- The previous code could allow the TMDS[0x4] register of both heads to be set to 0x88.
- This caused problems and freaked out my monitor and scared me as well :-(
- Until further notice, the usage of this swap bit is restricted to very specific situations.
Maarten Maathuis [Fri, 19 Oct 2007 18:57:58 +0000 (20:57 +0200)]
randr12: Some changes to crtc regs.
Maarten Maathuis [Fri, 19 Oct 2007 06:06:33 +0000 (08:06 +0200)]
randr12: Some changes to output detection.
- I'm aware that we still can't fully program modes.
Stephane Marchesin [Wed, 17 Oct 2007 23:56:17 +0000 (01:56 +0200)]
Remove xaa includes.
Stephane Marchesin [Wed, 17 Oct 2007 23:55:06 +0000 (01:55 +0200)]
Handle -minline-all-stringops properly
Ben Skeggs [Wed, 17 Oct 2007 12:28:50 +0000 (23:28 +1100)]
re-align nv40exa after ring macro changes
Ben Skeggs [Wed, 17 Oct 2007 12:22:05 +0000 (23:22 +1100)]
Switch to *_RING instead of NVDma*
Ben Skeggs [Wed, 17 Oct 2007 05:29:01 +0000 (16:29 +1100)]
Switch to header generated from XML + other cleanups.
- Renamed object header to nouveau_class.h, so it's not confused with mmio
- Removed usage of method defines in nv_dma.h
- Removed 2D engine EXA composite hook, it was broken, useless and soon to
be obsoleted by card-specific versions.
- Use names in a few places that magic values were previously used.
Dave Airlie [Mon, 15 Oct 2007 23:28:58 +0000 (09:28 +1000)]
nouveau: missing include
Stephane Marchesin [Sun, 14 Oct 2007 15:10:59 +0000 (17:10 +0200)]
more changes to nv30 exa... displays the pictures at their correct postition and size but doesn't obey the blending parameters (i.e. no blending takes place).
Maarten Maathuis [Sat, 13 Oct 2007 21:02:27 +0000 (23:02 +0200)]
randr12: Some fallback defaults for dual-dvi cards, please submit dumps when you can.
Arthur Huillet [Sat, 13 Oct 2007 20:28:39 +0000 (22:28 +0200)]
EXA: now caching BLIT_OPERATION and RECT_OPERATION (0x2FC) to limit the number of IRQs on NV04
Maarten Maathuis [Sat, 13 Oct 2007 19:45:50 +0000 (21:45 +0200)]
randr12: Revert a small unnecesary change.
Maarten Maathuis [Sat, 13 Oct 2007 19:33:07 +0000 (21:33 +0200)]
randr12: Hopefully fix panel size detection and allow negative hsync/vsync polarities.
Maarten Maathuis [Sat, 13 Oct 2007 15:26:32 +0000 (17:26 +0200)]
randr12: Some debug stuff.
Maarten Maathuis [Sat, 13 Oct 2007 10:52:10 +0000 (12:52 +0200)]
randr12: Remove a double reg and misc changes.
Maarten Maathuis [Fri, 12 Oct 2007 17:49:32 +0000 (19:49 +0200)]
randr12: Some misc changes.
Jeremy Kolb [Fri, 12 Oct 2007 00:32:47 +0000 (20:32 -0400)]
Remove division in NV30EXATransformCoord. We want coords between 0 and texture width, height.
Maarten Maathuis [Wed, 10 Oct 2007 19:40:13 +0000 (21:40 +0200)]
randr12: Misc fix.
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.