summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2008-04-14Make the VS unit state static for 965 render.Eric Anholt
2008-04-14Rename some variables in i965_render.c for clarity.Eric Anholt
The gen4_render_state is now always called "render_state" (i965_render.c bookkeeping) and gen4_state_t is now always called "card_state" (the buffer for state used by the chip).
2008-04-14Associate one sf_state object with each sf_kernelCarl Worth
(cherry picked from a2b5c23184d19b386fdfd04f578a55566df60132 commit)
2008-04-14Change default panel fitting mode to originZhenyu Wang
i8xx currently only works in FULL mode. (cherry picked from commit 33ffd781bbca3d0dee8c1b47e7b90be5824b9a4f)
2008-04-14Remove old sf/wm program from MakefileZhenyu Wang
Fix distcheck (cherry picked from commit 1d8383923bebf38ab8ada6a262cb4fc8c30e074a)
2008-04-13Only use FOURCC_XVMC when INTEL_XVMC is definedKeith Packard
The XVMC code uses a magic FOURCC code to signal frame updates, but that code is only defined when the XVMC code is used.
2008-04-13Move wm_scratch first to meet alignment requirementsKeith Packard
2008-04-13Kludge to make planar video work - duplicate sampler stateKeith Packard
This patch duplicates all of the surface sampler state needed to read from the separate YUV surfaces and then has the planar sampler read from samplers 0, 2, 4 instead of 0, 1, 2. This appears to make things work, instead of having the samplers break at random. I do not understand why this works.
2008-04-13Skip copying on FOURCC_XVMC surfacesKeith Packard
2008-04-13Set some mask bits to try and get yuv conversion workingKeith Packard
2008-04-13Use compressed instructions for yuv conversionKeith Packard
2008-04-11Fix the offset to sampler default color, and a compiler warning.Eric Anholt
2008-04-11Enumerate all possible wm_state objectsCarl Worth
We have a collection of wm_state objects for each ps kernel, (one for each combination of src and mask extend and repeat values). Thanks to Dave Airlie for noticing an errant write through a wild wm_state pointer in an early version of this commit. (cherry picked from 7763706a93d3021907273f9b330750ba110e2fc3 commit) This cherry-pick required more reformatting than most, due to the projective texturing merge.
2008-04-11Enumerate all possible src,mask sampler state pairsCarl Worth
This will eventually allow for the elimination of sampler state updates while compositing---and initializing everything in the initialization function. (cherry picked from commit d0874697be8086cd64740c24698df8cd4d31c76f)
2008-04-11Revert "remove '#line NUM ...' in macro process"Keith Packard
This reverts commit f47486fab3dffcbb03e7ad89f777abba1e887299. Sorry for failing to push the #line processing changes to intel-gen4asm; those are now pushed, so this change should no longer be necessary. Having correct file name and line numbers in the error messages is awfully nice though.
2008-04-11remove '#line NUM ...' in macro processZhenyu Wang
intel-gen4asm doesn't allow '#' line
2008-04-11Bug #14935: Fix i9xx reference clock for spread spectrum.Hong Liu
2008-04-10Fix compiler warning from 24-bit lvds change.Eric Anholt
2008-04-10Enumerate all possible cc_state objectsCarl Worth
We need one for each possible combination of src and dst blend_factors. Again, as with recent changes, this eliminates state updates from prepare_composite and allows that function to instead simply reference an existing object initialized within gen4_state_init. Thanks to Dave Airlie (and git-bisect) for pointing out that with gnome-terminal all text was appearing as solid black with an early version of this commit. As expected the bug was an alignment issue. (cherry picked from 0c0ab52c2d100c47f38c7ef826ef585c8b9815e9 commit) Performance is approximately equivalent on text tests, but may be around +2%.
2008-04-10Single memcpy when pitches align on planar image transferKeith Packard
2008-04-10Use available symbolic register nameKeith Packard
2008-04-10Remove .g4b files on cleanKeith Packard
2008-04-10Update yuv->rgb conversion programs to write to src_sample regsKeith Packard
The YUV->RGB code was written to write directly to the dataport registers, but that didn't work for the compositing functions (cause still unknown). This change makes that code write RGB values to the src_sample registers as with the other sample computation fragments.
2008-04-10Revert "Compute pixel values directly into data port"Keith Packard
This reverts commit 346cf57deabb4c336612df4c13650a87b5ef6775. Mixing randr transforms and video caused screen corruption for Render operations. No, I don't understand why.
2008-04-10Remove sync after 965 video put.Keith Packard
The hardware has been marked as needing a sync, so the next video put will block waiting for the previous one to complete. Adding a sync here just stalls the video playback for no good reason.
2008-04-10Add planer video decode kernelKeith Packard
Support for planar video reduces bus bandwidth by 25% and also reduces CPU usage during planar->packed conversion.
2008-04-10Use shared exa_wm code for packed yuv decodeKeith Packard
Eliminate special video sf and ps programs.
2008-04-10Compute pixel values directly into data portKeith Packard
Instead of leaving pixel values in src_sample registers, compute the pixel values directl to the data port to save 8 moves. This cannot work when no computation is done as there is both no way to wait for the sampler to finish and because the sampler returns data in a different order from that required by the data port (sigh).
2008-04-10Use symbolic names for channels in YUV codeKeith Packard
2008-04-10Rename src/mask/data registers to indicate channelKeith Packard
2008-04-10Statically allocate the sampler default color, which we never change.Eric Anholt
Performance change is in the noise. Also from Carl Worth.
2008-04-10Add copyright information for recent editors of this file.Eric Anholt
2008-04-10Keep static copies of the 965 render programs in video memory.Eric Anholt
This reduces the CPU overhead of memcpying them in every time, for a speedup in aa24text of around 30%. This is based on work by Carl Worth which is in the intel-batchbuffer branch.
2008-04-09SDVO: Rename output_dtd variable to input_dtd, which is its new job.Eric Anholt
2008-04-09SDVO: Set adjusted_mode in mode_fixup from the preferred input timings for TV.Eric Anholt
2008-04-09SDVO: Fix lols TV mode list handling.Eric Anholt
2008-04-09SDVO: Use the TV reference clock for SDVO TV outputs.Eric Anholt
Based on a patch by Will Wiseman.
2008-04-09Implement support for 24 bit pixel formatMike Isely
The Intel driver appears to be coded to only work with displays expecting 18 bit pixels. However I have an application using a LCD display that expects pixel data in 24 bit format. The difference is only 2 bits in a single GPU register. This patch implements that change, controlled by a new driver option, "LVDS24Bit". The default value is false, which is the previous behavior. When set to true, then 24 bit panels should work (at least the one I'm testing here does). Fd.o bug #15201 Signed-off-by: Mike Isely <isely@pobox.com>
2008-04-09Include <stdint.h> in i810.h for integer types definitionZhenyu Wang
2008-04-09Fix LVDS regressionJesse Barnes
Disable panel fitting on 855GM, and fix dither setting.
2008-04-08Bug #15219: Fix default overlay CSC factors, and use BT709 if available.David Schleef
Using the updated factors even when BT709 conversion isn't available (non-965) should still give us better color reproduction. Tested on a 945GM, examining the +/-5% of black bars of videotestsrc.
2008-04-07Quirks from Ubuntu/DellBryce Harrington
FD bug #15353. Launchpad bug ID is available for reference. (cherry picked from commit 24248097988775d62f6c416f2988e74d31c91cd0)
2008-04-04Merge commit 'origin/master' into projective-965Keith Packard
2008-04-04Forgot to build exa_wm_src_sample_argb.g4bKeith Packard
2008-04-02SDVO: Fix DDC bus selection based on output priority list.Hong Liu
2008-04-02SDVO: Fix mixups with input and output channels.Eric Anholt
The 2-bit input_mask was actually an input count -- in0 is always there, and in1 is optional. The output flags weren't being reported in the log, so I mistakenly took controlled_output == RGB0 to mean that the device only reported an RGB0, while it actually reported RGB0|SVID0|YPRPB0|misc|other. Move SVID0 up in priority and remove the RGB-is-it-really-TV hack I had just come up with. Finally, set the input/output mapping at mode set time. We're always supposed to do this, but haven't had to so far as we've never handled devices with more than one output.
2008-04-02SDVO: Handle RGB outputs that are really TV outputs, and select a TV format.Eric Anholt
Still doesn't light anything up.
2008-04-02Add WIP SDVO TV-out support.Eric Anholt
Doesn't include properties for selecting TV formats or picture enhancements, and totally untested.
2008-04-02Add SDVO TV-out registers.Eric Anholt
2008-04-01Remove extra flushingKeith Packard