Commit Graph

1801 Commits

Author SHA1 Message Date
Jesse Barnes 019dbfda29 Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel 2007-08-03 20:45:14 -07:00
Jesse Barnes 3d3c0e8c55 Tiled rendering & fbc fixes:
- actually enable tiling in DSP(A|B)CNTR if needed
  - add logic to EXA routines for tiled case (still needs work)
  - enable/disable fbc on DPMS events (meant moving functions higher in file)
  - fix fence register pitch programming (use correct pitch instead of kludged value)
2007-08-03 20:40:45 -07:00
Eric Anholt 79d9a309b1 Mark DRI buffers as shareable, and pass their buffer handles through the SAREA. 2007-08-02 15:50:42 -07:00
Jesse Barnes 0da4f2b0cd Legacy backlight changes:
- add support for 965GM
  - make sure legacy enabled systems don't reduce the range of backlight values we can present to the user
2007-07-31 16:22:36 -07:00
Zhenyu Wang 15f71edba3 Update Lenovo TV quirk info 2007-07-28 17:43:29 +08:00
Eric Anholt 857b4a7bcb Pin some buffer objects at creation time, which can't be moved yet.
A number of other interfaces of ours don't allow buffer offsets to be updated
after screeninit.  This attempts to catalog why for each one, so that they
can be fixed one by one.

This happens to restore the EXA offscreen allocator for now, as a fixed-offset
object.
2007-07-27 18:50:07 -07:00
Eric Anholt d7b5b595ad Delay the first screen pixmap update to CreateScreenResources.
The return value of GetScreenPixmap before CreateScreenResources is not, in
fact, a pixmap.
2007-07-27 14:38:49 -07:00
Eric Anholt 2b1ec0f514 Use the dontMapFramebuffer option available with DRIINFO 5.4.
If not available, AIGLX init will fail.  While here, simplify DRIINFO tests
since we refuse to init with a version queried less than the version we
compiled against, anyway.
2007-07-27 10:42:25 -07:00
Wang Zhenyu f403a50afb Add another Lenovo TV output quirk
From issue report http://lists.freedesktop.org/archives/xorg/2007-July/026644.html
2007-07-27 09:24:24 +08:00
Wang Zhenyu 34c82ad7ce Add quirk support
This one trys to use a flag for possible quirks. It adds a quirk
for my Lenovo T61 TV output, and ports some origin LVDS quirks to it.
2007-07-27 09:14:13 +08:00
Eric Anholt 1a585d0397 Use new drmBOSetPin interface instead of NO_EVICT/NO_MOVE buffers.
To do this, we have to deal with buffer offsets being set at EnterVT time
instead of screen init time. We've wanted to move this direction for a long
time, but there are repercussions.  The EXA offscreen memory manager has to
be disabled, because it can't be moved.  That will be replaced by BO-backed
pixmaps soon.  Also unresolved is whether our moving
front/back/depth/texture buffers will break the classic-mode DRI driver.

This code doesn't actually work yet.
2007-07-26 13:21:43 -07:00
Brice Goglin 0fd3ba0518 Fix typo in intel.man
Reported by A. Costa" <agcosta@gis.net> in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432061
2007-07-25 20:11:32 +02:00
Eric Anholt 18c707a8c1 When TTM is available, use it instead of manual AGP allocations when possible.
This is a step towards being able to expose buffer objects through the screen
private to DRI clients, instead of having them have to use the fake buffer
object type.

This fails in two ways.  First, the kernel memory manager is not currently
suitable for doing the physical allocations we need, so we still use AGP for
those.  Additionally, the DRI lock can't be initialized early enough for us, so
these buffer object allocations fail.  This will be fixed by improving the
DRM interface.
2007-07-25 10:11:16 -07:00
Xiang, Haihao c4deefa80a only enable xvmc for 915/945/G33 2007-07-23 10:35:32 +08:00
Zhenyu Wang 45962eed51 Fix a typo in i915 render
Fence setting is in mapstate actually. This fixes rotation in
tiled fb case, thanks Keith to report this.
2007-07-23 09:50:17 +08:00
Xiang, Haihao a52c53b860 don't initialize XvMC if xv is disabled. 2007-07-20 17:10:27 +08:00
Zhenyu Wang b1af2c0e01 Fix device id info for 945GME, 965GME
which do have new host bridge ids
2007-07-20 15:18:48 +08:00
Xiang, Haihao 6b4d43dbf4 lock display when creating context 2007-07-20 09:59:40 +08:00
Xiang, Haihao 42e91c7092 move i830_allocate_xvmc_buffer out of #if/#endif 2007-07-19 17:30:54 +08:00
Xiang, Haihao 36ea26f277 add copyright 2007-07-19 17:28:35 +08:00
Xiang, Haihao 9d03873423 block some signals within critical section to avoid
dead lock.
2007-07-19 17:28:35 +08:00
Xiang, Haihao 25658f838b 1. The pitches for y/u/v surfaces are 1024bytes aligned.
2. clean code
2007-07-19 17:28:35 +08:00
root 8f316a4584 1. clean code
2. fix an error in map_state
2007-07-19 17:28:35 +08:00
root 4844254431 a fix for 945G/945GM 2007-07-19 17:28:35 +08:00
root 8c249765ce 1. using batch buffer
2. implement macroblock_ipicture instruction
3. 16bit INTRA block
2007-07-19 17:28:35 +08:00
Xiang, Haihao 2b20b39554 fix a bug related to display surface 2007-07-19 17:28:35 +08:00
Xiang, Haihao 6e47601ac7 fix some bugs 2007-07-19 17:28:35 +08:00
Xiang, Haihao d038ffdfff Release resource allocated for surface/subpicture 2007-07-19 17:28:35 +08:00
Xiang, Haihao a9bf7e28b9 fix some bugs 2007-07-19 17:28:35 +08:00
Xiang, Haihao ccac60bf03 fix some bugs 2007-07-19 17:28:35 +08:00
Xiang, Haihao 934da9f2b8 enable XvMC for i915 2007-07-19 17:28:35 +08:00
Dave Airlie c7920a0e81 strip out remainder of drmmm code in driver 2007-07-19 15:09:54 +10:00
Dave Airlie 37652b6888 intel: oops I commited pixman local workaround - undo it 2007-07-17 14:03:21 +10:00
Dave Airlie e40f6a4923 intel: actually 2.3.1 should be good enough 2007-07-17 09:20:07 +10:00
Dave Airlie 1e169be25b intel: don't try and use TTM memory manager with old libdrm interface
I probably need to release a libdrm with this interface in it now..
2007-07-17 09:17:31 +10:00
Keith Packard ff2be3995d Remove hard-coded CRT blanking frobbing for load detection.
CRT blanking needn't be adjusted to perform load detection on 9xx chips, and
the 8xx load detection path now adjusts blanking just during load detection.
Adjusting the blanking interval turned out to cause many monitors to fail to
sync.
2007-07-13 13:39:36 -07:00
Keith Packard 00f4587025 Ensure pipe/output active before doing load detection.
If the pipe or output have been set to DPMSOff, then load detection will not
work correctly. Also, share the load detection configuration code between
crt and tv outputs.
2007-07-13 13:39:36 -07:00
Keith Packard 6f18300aed Eliminate bogus (and harmful) blanking adjustment for load detect.
Instead of always adding blanking to mode lines, use the FORCE_BORDER option
on i9xx hardware where it works, and dynamically add a bit of border if
necessary on i8xx hardware to make load detection work. This may cause
flashing when a usable crtc is not otherwise idle when load detection is
requested.
2007-07-13 13:39:36 -07:00
Wang Zhenyu 04130ac6b7 Fix i915 rendering for tiled buffer
Make it to check fence register for dest buffer.
2007-07-11 11:42:56 +08:00
Eric Anholt 88f8b688e2 Fix some physical address handling for >4GB addresses.
The upper bits would have been inappropriately dropped on G33-class hardware,
and on G965-class hardware in a 32-bit environment.  The only use of physical
addresses on these should be for FBC, though, and FBC requires addresses
below 4GB.  This is unresolved.
2007-07-09 13:01:12 -07:00
Jesse Barnes bf831117b4 FBC fixes:
- allow FBC and Tiling to be forced off if configured to do so
  - only touch FBC registers if pI830->fb_compression is true
2007-07-07 10:15:32 -07:00
Jesse Barnes b426866fe1 Fix manpage to reflect default behavior. 2007-07-06 20:48:40 -07:00
Jesse Barnes 377c58373d Fix naming of FBC plane enable bits (mistakenly called them pipes earlier). 2007-07-06 20:39:19 -07:00
Jesse Barnes 9c0388dc8d Update man page with current behavior. 2007-07-06 20:38:41 -07:00
Jesse Barnes cecbc71fdc Fix debug output in fbc enable/disable routines. Add logic to make sure fbc
isn't enabled twice on two different pipes.
2007-07-06 16:36:34 -07:00
Jesse Barnes 4359df9419 Fix tiling and fb compression defaults for 965 (not yet fully supported). 2007-07-06 16:17:45 -07:00
Jesse Barnes ca593a5219 FBC and tiling changes
- change framebuffer option name to "FramebufferCompression"
  - add new "Tiling" option (controls all tiling, not just front buffer)
  - add debug message to fb compression enable/disable routines
  - update man page with new options
2007-07-06 16:10:52 -07:00
Jesse Barnes 8798ef1132 Merge branch 'master' into fbc 2007-07-05 12:21:31 -07:00
Jesse Barnes 8919b22921 Re-add tiling kludge, but only for 965. 2007-07-05 12:21:06 -07:00
Jesse Barnes 407b124af8 Remove tiling kludge. May need more fixes for 965. 2007-07-05 11:31:34 -07:00