summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-07-01Xv: kill !textured conditionDaniel Vetter
This is in the overlay path and therefore always true. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2009-07-01Xv overlay: implement GAMMA5 errataDaniel Vetter
- also ensure that the most significant byte is zero - while I was looking at the code, add the Overlay suffix to SetPortAttribute like in the textured case. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2009-07-01Xv: kill unneeded indirectionDaniel Vetter
overlay and textured video have the exact same QueryImageAttributes function. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2009-06-30uxa: Fix segfault on source-only picture usage with FallbackDebug.Eric Anholt
Bug #22107.
2009-07-01Fix 945GM VT switch in UMSZhenyu Wang
Bug #19578. We should set private intel_crtc state according to current, as fail to do so pipe A needs active won't be taken care of. Also make sure pipe swap operation always set during VT switch. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-07-01Load fbcon too if kernel mode setting is checked onZhenyu Wang
If i915 module has already been loaded and kms check is true, it would be nice to load fbcon module too. Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
2009-06-30Don't try to pin buffers in KMS modeJesse Barnes
The only things we try to pin in KMS mode are the cursor objects and front buffer, and those are taken care of by the kernel anyway, so we shouldn't even bother trying to pin them (well, not entirely true, XvMC tries to pin as well, but it needs work w/KMS anyway). Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-30Make KMS set_resource function return TRUEJesse Barnes
This is what's expected by the server, and allows the EDID for example to be exported in the KMS case. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-30Use DVO timing block instead of fp_timing when parsing LFP dataJesse Barnes
The KMS side was correct, but the UMS patch was broken. We need to use the DVO timing block of the LFP data to get the timing, not the fp_timing block. Fixes fdo bug #22529. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-30Add a few error messages for DRM initializationJesse Barnes
Makes it easier to see where things go wrong. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-30Remove unused packed yuv sampler shader programsZhenyu Wang
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-30Xv: fix domain usage for binding table on i965+ chipsZhenyu Wang
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-30Add XV support on IGDNGZhenyu Wang
This brings necessary change for IGDNG for texture video support from 2D render code. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-30Enable 2D composite on IGDNGXiang Haihao
This patch enables 2D composite on IGDNG. IGDNG requires new compiled shader programs for Gen5 and some command changes. The most notable is the layout of vertex element has changed, but we tried to keep it as origin to not change shader programs. Also vertex buffer state requires end address of vertex buffer instead of origin max index. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-30Add new compiled shader program for IGDNGZhenyu Wang
Also check intel-gen4asm tool here for new -g option, which is required to compile new programs. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-30Move shader programs under its own subdirectoryZhenyu Wang
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-29Only get the VBIOS in non-KMS modeJesse Barnes
In KMS mode, the kernel takes care of this for us, so don't bother.
2009-06-29Output error info if we fail to get DRM resourcesJesse Barnes
Useful for debugging.
2009-06-29Use swapbuffers_wait controlJesse Barnes
Commit 1eec83a203c48822400742a1fb184b2cb52c62f7, which added the new SwapbuffersWait option, didn't actually include the code which used it. So add a test to DRI2's CopyRegion call, only emitting the scanline wait command if the swapbuffers_wait option is set. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-29Disable XvMC on 915G/GM in KMSZhenyu Wang
These chips require physical address for XvMC surface, which is not available in KMS case. Instead of crashing X, disable it now. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-24Fix i830_crtc_on to only check outputs associated with the given CRTCJesse Barnes
Otherwise we may end up returning a false positive if some other output & crtc are on, but not the one in question, again leading to hangs. Reported-by: Eric Anholt <eric@anholt.net> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-24Treat disabled CRTCs as "not covering" for scanline wait purposesJesse Barnes
Now that swapbuffers does a scanline wait to avoid tearing, it's important to take into account the CRTC status to avoid hangs. If we do a scanline wait when the CRTC is off (due to DPMS for example) we'll hang the GPU. So add some code to check the CRTC DPMS status to the i830_covering_crtc function, returning NULL if none of the covering CRTCs are actually active. KMS vs UMS logic is hidden in new i830* functions, cleaning up both DRI2 & video paths a bit. Fixes fdo bug #22383. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-23Harden i830 render in case check_composite didn't throw out bad formats.Alan Coopersmith
Fixes a warning in a static analysis program, and the code's a little clearer. Bug #21667
2009-06-23Add option to control swapbuffers behaviorJesse Barnes
Until we get triple buffering, we'll want this so users can avoid taking a performance hit on apps that render slower than the refresh rate. Fixes fdo bug #22234. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-23 i915 xvmc, fix fd.o bug #22103Zou Nan hai
2009-06-22Fix LFP data block fetchJesse Barnes
Apparently the proper way to do this is to use the LFP data pointer block to figure out the LFP data block entry size, then use that plus the panel index to calculate an offset into the LFP data block array. Fixes fdo bug #19450. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-19Don't change the blank/sync width when calculating scaled modesZhao Yakui
Don't the change the blank/vsync width while doing LVDS scaled modes. And use the border instead of border minus one. At the same time, make sure the horizontal border and hsync are even for the LVDS that works in dual-channel mode. So both horizontal border and hsync start are also changed to be even, even for the LVDS in single-channel mode. https://bugs.freedesktop.org/show_bug.cgi?id=20951 Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-06-17TV: Set correct voltage level override valuesling.ma@intel.com
We detect TV connect status by setting DAC voltage level override values as 0.7 voltage for DAC_A/B/C. The corresponding 2-bits shold be 0x2, In order correctly to set last bit as 0, at first we must clean it. It fixed freedesktop.org bug #21204 Signed-off-by: Ma Ling <ling.ma@intel.com>
2009-06-17Set hot plug interrupt to detect HDMI outputling.ma@intel.com
We detect HDMI output connection status by writing to HOT Plug Interrupt Detect Enable bit in PORT_HOTPLUG_EN. The behavior will generate an specified interrupt, which is caught by audio driver, but during one detection driver set all Detect Enable bits of HDMIB, HDMIC and HDMID, which generate wrong interrupt signals for current output, according to the signals audio driver misunderstand device status. The patch intends to handle corresponding output precisely. It fixed fredesktop bug #21371 Signed-off-by: Ma Ling <ling.ma@intel.com>
2009-06-16add pipe a force quirk for Dell miniBryce Harrington
Add quirk to solve issue with black screen and hang occuring after closing the lid with attached external monitor, on Dell Mini. Fixes fdo bug #21960. Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
2009-06-16don't wait for vblank on rotated displaysLi Peng
We may hang or wait for the wrong line if the display is rotated, so just skip the wait in that case. Fixes fdo bug #22196.
2009-06-16pipe-a quirk for thinkpad x30Bryce Harrington
Fixes freeze when closing lid on ThinkPad X30. Fixes FDO bug # 21976. Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
2009-06-16Fix EDID for LVDS output device to add the default modesZhao Yakui
Fix the EDID for the LVDS output device to add the default modes.This is similar to what we have done in UMS mode. a. When there exists the EDID, either find the DS_RANGES block or replace a DS_VENDOR block, smashing it into a DS_RANGES block with open refresh to match all the defaults modes. b. When there is no EDID, we will construct a bogus EDID and add a DS_RANGES block with the open refresh to match all the default modes. http://bugs.freedesktop.org/show_bug.cgi?id=20801 http://bugs.freedesktop.org/show_bug.cgi?id=21094 http://bugs.freedesktop.org/show_bug.cgi?id=21346 http://bugs.freedesktop.org/show_bug.cgi?id=21417 http://bugs.freedesktop.org/show_bug.cgi?id=21671 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-06-16Get the LVDS panel limit and check whether the given modeline is validZhao Yakui
When the connector type is LVDS, it will traverse the mode list returned by KMS kernel to get the LVDS panel limit. Then it will use the panel limit to check whether the given modeline is valid. If the given modeline exceeds the LVDS panel limit, it will be invalid. http://bugs.freedesktop.org/show_bug.cgi?id=20801 http://bugs.freedesktop.org/show_bug.cgi?id=21094 http://bugs.freedesktop.org/show_bug.cgi?id=21346 http://bugs.freedesktop.org/show_bug.cgi?id=21417 http://bugs.freedesktop.org/show_bug.cgi?id=21671 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-06-16Add the private data for the LVDS connectorZhao Yakui
Add the private data when the connector type is LVDS. We can use the private_data to store the LVDS panel limit. For example: Hdisplay, Vdisplay. http://bugs.freedesktop.org/show_bug.cgi?id=20801 http://bugs.freedesktop.org/show_bug.cgi?id=21094 http://bugs.freedesktop.org/show_bug.cgi?id=21346 http://bugs.freedesktop.org/show_bug.cgi?id=21417 http://bugs.freedesktop.org/show_bug.cgi?id=21671 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-06-15GFX: Initialize the SDVO device based on the valid slave addressZhao Yakui
When the slave address is found for the SDVO port, the SDVO device will be initialzied. When the slave address is not found for the SDVO port, it will return the slave address by using the following flowchart: a. If the SDVO device info is found for another SDVO port, it will return the slave address that is not used. For example: if 0x70 is used, then 0x72 is returned. b. If no SDVO device info is found for another SDVO port, it will return 0x70 for SDVOB and 0x72 for SDVOC. http://bugs.freedesktop.org/show_bug.cgi?id=20429 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-06-15parse general definition block to get the SDVO device infoZhao Yakui
The general definition block contains the child device tables, which include the child device info. For example: device slave address, device dvo port, device type. We will get the info of SDVO device by parsing the general definition blocks. Only when a valid slave address is found, it is regarded as the SDVO device. And the info of DVO port and slave address is recorded. http://bugs.freedesktop.org/show_bug.cgi?id=20429 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-06-15Dynamically get the number of child device in general definition blockZhao Yakui
The size of general definition block varies on different platform/machines. In such case the number of child device is also different. And it will be better to get the number of child device in general definition block dynamically. The number of child device can be calculated by the following formula: (block_size - block_header_size) / sizeof( struct child_device_config) http://bugs.freedesktop.org/show_bug.cgi?id=20429 Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-06-11intel_batch_init: test have_gem, not directRenderingTypeKeith Packard
Under KMS, directRenderingType will get set to DRI_NONE during driver initialization. When the first batch buffer is allocated, as directRenderingType is DRI_NONE, the GEM bufmgr would get trashed as intel_batch_init called a fake-bufmgr specific function. Signed-off-by: Keith Packard <keithp@keithp.com>
2009-06-11Fix xvmc buildJulien Cristau
If we don't find xext.pc, disable xvmc instead of failing configure Also add dependencies on xfixes and dri2proto (src/xvmc/dri2.h includes <X11/extensions/Xfixes.h> and <X11/extensions/dri2tokens.h>).
2009-06-10Increment version to 2.7.99.9012.7.99.901Carl Worth
This is the first release candidate for 2.8.0
2009-06-10NEWS: Summarize new developments for 2.7.99.901Carl Worth
2009-06-10DRI2 copyregion: don't wait for scanlines that won't happenLukasz Kurylo
In some configurations, it's possible to wait for a scanline outside of a given CRTC range. Make sure that can't happen to fix multihead cases with dead space. Fixes fdo bug #22203. Signed-off-by: Lukasz Kurylo <Lukasz.Kurylo@gmail.com>
2009-06-10 add missing files for previous commitZou Nan hai
2009-06-10 enable MC on g45 for player without vld patchZou Nan hai
2009-06-10Add new chipset register dumpsZhenyu Wang
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-10Disable composite on new chipset for nowZhenyu Wang
This depends on updated intel-gen4asm be ready for new chip. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-10Add new register definitionsZhenyu Wang
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-10Update intel_gtt utility for new chipset GTT checkZhenyu Wang
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2009-06-10Remove fixed MMIO sizeZhenyu Wang
Use pci resource size instead, which will get the correct MMIO range. New chipset uses obviously larger MMIO range. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>