summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* DRI2: add OML and SGI_video_sync supportdri2-swapbuffersJesse Barnes2009-10-033-9/+230
| | | | | Add hooks to support OML functionality and older SGI_video_sync functionality. Requires a server with support for the new hooks.
* Track number of crtcs with pending flipsKristian Høgsberg2009-08-071-0/+6
|
* Notify DRI2 asynchronously when page flip is finishedKristian Høgsberg2009-07-313-48/+50
| | | | | | This lets DRI2 suspend just the swapping client instead of the entire server. When the swap is done, the drm fd becomes readable and we call back into DRI2 so it can resume the client.
* Add support for DRI2 SwapBuffers requestJesse Barnes2009-07-314-6/+185
| | | | | | | | | Support the new DRI2 SwapBuffers request with a KMS-specific page flip ioctl. Doesn't help prevent tearing from CopyRegion requests, but full buffer swaps look nice. There's still an open issue with buffer resize in here somewhere; maybe pI830->front_buffer isn't getting fully fixed up at swap time?
* intel: drop RES_SHARED_VGA not needed anymoreDave Airlie2009-07-282-70/+62
|
* xserver: fix up for stable buildDave Airlie2009-07-282-0/+9
| | | | reported by Arkadiusz Miskiewicz <arekm@maven.pl>
* intel: since driver depends on newer server don't need to wrap thisDave Airlie2009-07-282-30/+0
| | | | drop resource/RAC interactions
* intel: update for resources/RAC API removalDave Airlie2009-07-282-2/+12
|
* h/v bias in 3DSTATE_DEST_BUFFER_VARIABLES is 4-bits wideKrzysztof Halasa2009-07-281-2/+2
| | | | Fixes bug #22370
* intel: remove unneeded includesDave Airlie2009-07-2810-11/+0
| | | | none of these need the resource includes
* Allow DRM mode setting to include transformationsKeith Packard2009-07-261-3/+0
| | | | | | | | This removes the explicit transform disabling code in drm_set_mode_major. Without a fixed X server, transforms will still be broken, but even a fixed X server can't work around this driver bug. Signed-off-by: Keith Packard <keithp@keithp.com>
* XvMC: enable XvMC/XvMC-VLD on IGDNGXiang, Haihao2009-07-244-19/+122
|
* add compiled shader programs for XvMC/XvMC-VLD on IGDNGXiang, Haihao2009-07-2428-4/+16860
|
* Check the version of intel-gen4asm tool in configure.acXiang, Haihao2009-07-241-10/+1
|
* XvMC: pin XvMC buffers under KMS.Xiang, Haihao2009-07-244-13/+36
| | | | | | | | Under KMS, the buffer allocated by i830_allocate_memory isn't pinned anymore. However currently 915 XvMC needs static offsets. Fixes bug #22872
* 8xx render: Add limited support for a8 dests.Eric Anholt2009-07-221-13/+27
| | | | | | This improves aa10text performance from 74k to 569k on my 855 laptop. This also causes my 865 to hang on aa10text like it does on rgb10text, thanks to actually hitting render accel.
* Only align DRI2 tiled pixmaps to the DRI2 tiled pixmap alignment requirement.Eric Anholt2009-07-222-8/+11
| | | | | | | This should save significant amounts of memory for glyph and other small pixmap storage. Bug #21387
* uxa: Tell the driver when we're just going to immediately map the pixmap.Eric Anholt2009-07-223-2/+16
| | | | | | This lets the driver allocate a nice idle buffer object instead of a busy one, reducing runtime of firefox-20090601 on my G45 from 50.7 (+/- .41%) to 48.4 (+/- 1.1%).
* uxa: Skip fill of temporary alpha picture that just gets copied over.Eric Anholt2009-07-221-18/+21
| | | | | | | | This was needed when we were doing the mask computations in this pixmap, but now they're done in a temporary and then uploaded later. This reduces runtime of firefox-20090601 from 52.6 (+/- .96%) to 50.7 (+/- .41%) seconds on my G45.
* drmmode_output_get_modes: Replace existing EDID property blob with new oneKeith Packard2009-07-211-2/+1
| | | | | | | | This synchronizes the X EDID data with the kernel EDID data each time the kernel data may have changed. Otherwise, X ends up stuck with the first EDID data it sees, failing to accomodate to different monitors. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch '2.8'Carl Worth2009-07-202-1/+49
|\
| * Increment version number to 2.8.0 for release.2.8.0Carl Worth2009-07-201-1/+1
| |
| * NEWS: Add notes for 2.8.0 releaseCarl Worth2009-07-201-0/+48
| | | | | | | | Many thanks to Gordon for his notes from http://intellinuxgraphics.org/2009Q2.html
* | Update to xextproto 7.1 support.Peter Hutterer2009-07-187-1/+59
| | | | | | | | | | | | | | | | | | | | DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers need to include dpmsconst.h if xextproto 7.1 is available. SHM is now shm.h instead of shmstr. Requires definition of ShmFuncs that's not exported by the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* | accessing a pixmap if prepare_access fails is verboten.Owain Ainsworth2009-07-171-3/+4
|/ | | | | | | Don't do it, treat this the same as every other prepare access call in uxa. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Owain Ainsworth <zerooa@googlemail.com>
* Really fix i915 render. Fail at commit --amend.Eric Anholt2009-07-162-14/+13
|
* Fix 915-class Render after the 8xx-class Render fix.Eric Anholt2009-07-163-17/+34
| | | | | | The two shared i830_composite.c, so giving i830 atomic batch support triggered anger about starting i830's atomic area while in i915's atomic area. Instead, split the emit-a-primitive stuff from the state emission.
* Use batch_start_atomic to fix batchbuffer wrapping problems with 8xx render.Eric Anholt2009-07-153-89/+123
| | | | Bug #22483.
* Reset framebuffer offset when rebinding aperture (22760).Keith Packard2009-07-151-0/+3
| | | | | | | | scrn->fbOffset may be changed when binding objects to the aperture during server initialization or VT enter. This was accidentally removed when the NoAlloc option was eliminated. Signed-off-by: Keith Packard <keithp@keithp.com>
* Fix XV scan line calculation when rotated.Barry Scott2009-07-131-5/+6
|
* Increment version to 2.7.99.9022.7.99.902Carl Worth2009-07-131-1/+1
|
* RELEASING: Fix typo in instructionsCarl Worth2009-07-131-1/+1
|
* NEWS: Add notes for 2.7.99.902Carl Worth2009-07-131-0/+7
|
* Remove vestiges of NoAccel options from i830_driver.cKeith Packard2009-07-111-2/+0
| | | | | | The enum and OptionInfoRec weren't removed in the initial patch Signed-off-by: Keith Packard <keithp@keithp.com>
* intel.man: Mark NoAccel option as i810/i815 onlyKeith Packard2009-07-111-5/+5
| | | | | | The NoAccel option is not valid for other chips. Signed-off-by: Keith Packard <keithp@keithp.com>
* i830_uxa_prepare_access: Flush and wait for idle for non-bo pixmapsKeith Packard2009-07-101-5/+6
| | | | | | | | | Without kernel support and explicit knowledge about where in the ring the last rendering operation for a specific pixmap was, we must synchronize with any outstanding rendering before accessing a pixmap which does not have a buffer object. Signed-off-by: Keith Packard <keithp@keithp.com>
* KMS: Keep screen pixmap devPrivate.ptr NULL during init and resizeKeith Packard2009-07-101-3/+0
| | | | | | | | The frame buffer only has a valid address between prepare_access and finish_access calls, so remove all other attempts to compute an address from the driver. Signed-off-by: Keith Packard <keithp@keithp.com>
* i830_bind_memory: Under UMS: Bind GEM bos with dri_bo_pin, else through the GARTKeith Packard2009-07-101-8/+6
| | | | | | | | We only need to get static offsets for objects when not running KMS, otherwise the kernel will manage those as needed for us. Binding objects is done in one of two ways. For GEM buffer objects, we use dri_bo_pin. For GART allocated memory, we bind that to the GART.
* Allocate GTT space for GEM only under UMSKeith Packard2009-07-102-71/+72
| | | | | | | | GEM requires GTT space to map objects. Under KMS, the kernel driver has already provided all available GTT space to GEM, so the X server need not do anything. Signed-off-by: Keith Packard <keithp@keithp.com>
* Always set screen pixmap data pointer at init and resize timesKeith Packard2009-07-101-5/+10
| | | | | | | | | For non-DRM environments, the screen pixmap will be GART allocated memory and not a libdrm buffer object and so uxa will only use devPrivate.ptr to find the associated memory. Make sure devPrivate.ptr is set each time the framebuffer is allocated so that uxa will be able to draw to it. Signed-off-by: Keith Packard <keithp@keithp.com>
* Make xorg.conf DRI option work under KMS. Fix name of I830AccelMethodInitKeith Packard2009-07-101-6/+12
| | | | | | | | | | KMS mode does not call I830AccelMethodInit as that does the user modesetting initialization (yes, it was misnamed), but that means that the DRI option was ignored. Create a new i830_check_dri_option function to do the option detection, then remove that from I830AccelMethodInit, which is renamed i830_user_modesetting_init to reflect what it actually does. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove NoAccel supportKeith Packard2009-07-107-184/+54
| | | | | | | This removes yet another 'debugging' option that hasn't seen real use in a long time, and wasn't supported under KMS in any case. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove bad comment about 3DSTATE_DRAWING_RECTANGLE size.Eric Anholt2009-07-091-1/+1
|
* Fix lols in trying to figure out whether this is a 64-bit build.Eric Anholt2009-07-091-1/+1
| | | | Noticed by: Michel Dänzer <michel@daenzer.net>
* Refuse to allocate giant BOs on 32-bit systems.Eric Anholt2009-07-081-0/+16
| | | | | | | | The overcommit of address space combined with these buffers hitting SW fallbacks all the time means that we're probably better off telling the application "no" instead of likely silently failing later. Bug #22601.
* Initialize the other argument to drmSetInterfaceVersion.Eric Anholt2009-07-081-0/+1
| | | | The kernel ignores it if dd_major is -1, anyway.
* enable sdvo lvds scaling functionling.ma@intel.com2009-07-082-12/+83
| | | | | | | | | | Currently we implemented basic sdvo lvds function, But except for sdvo lvds fixed mode, we can not switch to other modes, otherwise display get black. The patch intends to work for all modes whose HDisplay and VDisplay are lower than fixed mode. Signed-off-by: Ma Ling <ling.ma@intel.com>
* Raise XV limit to 2048x2048 to match hardware limits.Simon Farnsworth2009-07-071-12/+4
| | | | | | | | | The bigrequests limit isn't present in current X servers (tested using textured video on a 965 with both image and window at 2048x2048 on a 1920x1200 display, and image at 2048x2048, window at 1024x1024). Remove the artificial limit, enabling full-screen HD video when rotated.
* non-DRI FB resize failed to assign the screen pixmap devPrivate.ptr (22328)Keith Packard2009-07-071-1/+8
| | | | | | | | | | | | | | | When not using DRI, the screen pixmap is not in a bo, and so the usual enable/disable access functions don't adjust the pixmap devPrivate field, leaving it to the frame buffer allocation code to assign this correctly. During mode setting and fb resizing, FB access is disabled, and the screen pixmap devPrivate is stashed away by xf86EnableDisableFBAccess, to be restored when FB access is turned back on. This means that we have to set the pixmap devPrivate.ptr (in case xf86EnableDisableFBAccess doesn't do this), along with storing the address in the scrn->pixmapPrivate field. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
* Check for a valid I830Ptr before closing master.Chris Wilson2009-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | After failing to become DRM master, the X server dies attempting to close the master fd during free: (EE) intel(0): [drm] failed to set drm interface version. (EE) intel(0): Failed to become DRM master. (EE) intel(0): failed to get resources: Bad file descriptor (EE) intel(0): Kernel modesetting setup failed Backtrace: 0: X(xorg_backtrace+0x3b) [0x8133a3b] 1: X(xf86SigHandler+0x55) [0x80c7945] 2: [0xb805d400] 3: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb7b4bfcc] 4: X(xf86DeleteScreen+0x6b) [0x80d465b] 5: X(InitOutput+0x548) [0x80b0158] 6: X(main+0x1cb) [0x807220b] 7: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7d107a5] 8: X [0x8071881] Saw signal 11. Server aborting. ddxSigGiveUp: Closing log ddxSigGiveUp: re-raising 11 Segmentation fault Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>