Robert Noland
087ade8e66
Fix typo in last commit
2008-08-26 16:35:07 -04:00
Robert Noland
6404ac178b
Check for drm before calling modeset ioctl.
2008-08-26 15:10:52 -04:00
Zhenyu Wang
c889198ab5
Fix X exit crash in NoAccel
...
NoAccel should still be needed for performance evaluation,
so don't crash me when exit.
2008-08-26 10:12:21 +08:00
Zhenyu Wang
0929a191ae
Destroy bufmgr after allocation finish
...
Fixed X exit crash for me, allocation reset will
unreference bo which still requires bufmgr to be live.
2008-08-26 10:01:23 +08:00
Jesse Barnes
1c224f72d5
Fix UXA build for distcheck
...
Was missing proper path info in CFLAGS.
2008-08-25 16:59:03 -07:00
Jesse Barnes
8e3243b8e5
Update version to post-2.5
2008-08-25 16:37:34 -07:00
Jesse Barnes
7a5b090abc
Hide kernel mode setting EXA code behind XF86DRM_MODE
...
Prevents compiler warnings in the non-kms case.
2008-08-21 09:40:57 -07:00
Jesse Barnes
4937b98981
Fix compiler warnings in VBIOS utils
2008-08-21 09:39:33 -07:00
Jesse Barnes
08326827fd
Merge branch 'modesetting-gem'
2008-08-21 09:30:38 -07:00
Jesse Barnes
5af504166f
Don't disable planes in i830_update_dsparb
...
We need to program DSPARB with only one plane enabled at most, and that's
guaranteed to be the case when we're called during mode set, so just assert
that case but otherwise leave the planes alone to avoid flicker on active
displays during output detection for example.
Fixes bug #17050 .
2008-08-20 15:08:54 -07:00
Jesse Barnes
7b6f4d2221
Don't allocate a pipe for hotplug detection
...
It shouldn't be needed...
2008-08-20 14:40:29 -07:00
Jesse Barnes
ba4a4b7887
Add more panel debugging info to register dump & vbios reader
2008-08-20 14:39:34 -07:00
Jesse Barnes
0de8ca3630
Merge branch 'master' into modesetting-gem
...
Conflicts:
configure.ac
2008-08-20 12:11:00 -07:00
Julien Cristau
5eccb5ec7e
Don't skip the checks for DRI headers with --enable-dri
2008-08-20 15:33:59 +08:00
Jesse Barnes
1baebabc3a
Add swf_dumper to .gitignore
2008-08-19 16:02:55 -07:00
Jesse Barnes
f26bcb9cb8
Merge branch 'master' into modesetting-gem
...
Conflicts:
src/i830_driver.c
2008-08-19 15:53:18 -07:00
Jesse Barnes
67ab546252
Use GTT mapping for EXA PrepareAccess function
...
Makes software fallbacks *much* faster.
2008-08-19 15:46:52 -07:00
Jesse Barnes
547cf77480
Don't allocate EXA offscreen space if kernel mode setting is active
...
We'll use GEM alloc & free routines in that case.
2008-08-19 15:45:26 -07:00
Jesse Barnes
2ddd85f8ae
Bail out if kernel mode setting is active but DRI fails
2008-08-19 15:41:41 -07:00
Jesse Barnes
646bbdc4b6
Add quirk for pre-915s with working PFIT regs
...
The regs are undocumented, but on some machines they work fine, so add this
quirk to indicate it.
2008-08-19 15:05:00 -07:00
Jesse Barnes
7a1cc48276
Add VBIOS software flags dumper program
...
Still need to actually print all the flags & test on various platforms, but at
least the bits are documented now.
2008-08-19 10:45:11 -07:00
Zou Nan hai
385dc85881
Fix from He Shuang(shuang.he@intel.com),
...
XvMCDestroyContext to check pointer valid
2008-08-19 16:27:12 +08:00
Jesse Barnes
078a59dd48
Remove unused VBIOS flag defines
...
We just use the structure definitions now.
2008-08-18 12:53:33 -07:00
Jesse Barnes
7048141254
Pack bdb_general_definitions block
...
More correct & consistent with other definitions.
2008-08-18 12:51:31 -07:00
Zhenyu Wang
0e6759bb6a
Fix reverted LVDS bios capability dword definition
...
Issue found by Peter Clifton.
2008-08-19 07:30:01 +08:00
Shaohua Li
76b5a7ff5c
[PATCH] avoid duplicate mode set in lvds
...
xf86SetDesiredModes() already sets lvds to full mode. later when
xf86CrtcScreenInit() initialized randr12, i830_lvds_set_property will
recall xf86CrtcSetMode and set mode to full. This patch is to remove the
duplication. In my test, this can save about 0.2 - 0.4s x startup time.
2008-08-18 11:13:20 +08:00
Jesse Barnes
b8ee31cd80
Remove last TTM bits
...
Makes it build again with drm#modesetting-gem.
2008-08-16 12:18:01 -07:00
Adam Jackson
6eb3e0f2f4
Don't touch pScrn->monitor->DDC directly.
2008-08-15 15:47:35 -04:00
Zhenyu Wang
ed7269e0a3
Always check and free driver private in LVDS destroy
2008-08-15 10:10:43 +08:00
Zhenyu Wang
f4cb9a135d
Make skip_panel_detect clear for its meaning
2008-08-15 10:02:44 +08:00
Jesse Barnes
22918f62c8
Fix pipe A force quirk
...
Last commit introduced a logic buglet, we went from (foo & BLAH) -> (!foo &
BLAH) rather than !(foo & BLAH), so fix it up to make my laptop work again.
2008-08-14 16:02:37 -07:00
Jesse Barnes
c1687f9ca9
Map/unmap render state only when bo is available
...
Otherwise just use the GTT address.
2008-08-14 15:48:02 -07:00
Jesse Barnes
380c80712f
Fixup AccelMethod kernel mode setting code
...
Allow UXA or EXA in the kernel mode setting case, defaulting to EXA.
2008-08-14 15:39:57 -07:00
Jesse Barnes
4475dfb541
Use pwrite for cursor updates
...
Don't open code map/memcpy/unmap, let libdrm do that for us if necessary.
2008-08-14 15:38:07 -07:00
Jesse Barnes
cb217d4bfd
Make EXA & UXA share bo getting function
...
Needed for proper acceleration & batch buffer handling.
2008-08-13 16:55:39 -07:00
Jesse Barnes
1ab7239b73
Map gen4 render state buffer before initializing
2008-08-12 18:16:37 -07:00
Jesse Barnes
603f48e31b
Don't set tiling (yet) if kernel mode setting is active
2008-08-12 18:04:08 -07:00
Jesse Barnes
f744aa8d4b
Don't run old accel init code
...
Had the wrong logic. Throw in a couple of cleanups while we're there.
2008-08-12 18:02:21 -07:00
Jesse Barnes
2321c865f3
Don't wait for ring if kernel mode setting is active
...
We won't have the ring mapped.
2008-08-12 17:59:16 -07:00
Jesse Barnes
a1b334a4c8
Update DRM based modesetting support
...
Just a checkpoint, still needs a lot of work to properly handle resize, rotate
& cursor handling.
2008-08-12 17:58:29 -07:00
Jesse Barnes
5d78cf7cf0
Add EXA pixmap management functions for kernel mode setting
...
Mostly pulled over from the old kernel modesetting code; a few updates were
necessary.
2008-08-12 17:56:59 -07:00
Olivier Fourdan
9ec36e0c8b
Fix DPMS off in the presence of the pipe A quirk.
...
Still turn off the VGA plane, and also handle the DRI path at the end.
2008-08-11 12:07:32 -04:00
Olivier Fourdan
445c2e9ef8
Apply pipe A quirk to 845 as well.
2008-08-11 11:30:51 -04:00
Zhenyu Wang
d592eabc80
Fix possible spurious interrupts in hotplug detect on 4 series chip
2008-08-11 15:16:44 +08:00
Zhenyu Wang
d0018a9606
Disable display clock gating for 4 series chips
2008-08-11 15:16:09 +08:00
Jesse Barnes
173b909a71
Make it actually build the kernel stuff if possible
...
Fixup the kernel stuff to have a slightly better chance of working. Still need
to fixup the EXA pixmap functions.
2008-08-08 18:11:13 -07:00
Eric Anholt
fe90c0522f
Set lvds_ddc_mode before use to avoid a segfault on mac mini.
2008-08-08 16:35:25 -07:00
Jesse Barnes
b1aef6f63c
Initial port of kernel modesetting from old intel-kernelmode branch
...
Thanks airlied!
2008-08-08 11:54:18 -07:00
Eric Anholt
91e7b93c12
intel_idle: Instead if #if 0, add an ignore flag for unreliable INSTDONE bits.
...
This lets us produce a decent total value, and still show the unreliable bits
in case they aren't on your platform.
2008-08-07 11:07:12 -07:00
Jesse Barnes
f9504eff31
Merge branch 'drm-gem'
2008-08-06 12:40:47 -07:00