summaryrefslogtreecommitdiff
path: root/src/i830_render.c
AgeCommit message (Collapse)Author
2008-04-19Check pitch for EXA operationZhenyu Wang
2D pitch limit applys to all chips. Pre-965 chip has 8KB pitch limit for 3D. 965 supports max pitch by current exa (128KB).
2008-03-24Transformed coord computed using floats. Don't move bilinear composite dst.Keith Packard
The homogeneous coordinate computation in the core server cannot be used for many legal matrices as it overflows. Just use floats in the driver; faster and avoids troubles. When compositing with bilinear filter, don't push the dst coordinates around as that makes the output blurry when pixels are aligned.
2008-03-18Handle projective transforms on 9xx for Composite.Keith Packard
Projective transforms require un-normalized texture coordinates and the use of the texldp instruction. The coordinates are passed as x/y/z/w (the z is unused, but there isn't a vertext format for just x/y/w).
2008-03-188xx/9xx can handle textures to 2kx2k. 965 can do 8kx8kKeith Packard
2008-03-14Change OUT_RING and similar calls to OUT_BATCH for batchbuffer mergeEric Anholt
2008-03-13Add workarounds for 830/845's lack of a8/x8r8g8b8/x8b8g8r8 support.Eric Anholt
When we have unset channels (color for a8, or alpha for x8*), force them to the appropriate value in the texture combiner rather than relying on getting the desired results from teture mapping. Performance is the same on 865, so multiple paths aren't necessary and we can use the less friendly texture formats everywhere.
2008-03-11Remove i830+ driver's use of CARD*/INT* types for great justice.Eric Anholt
Several uses are actually left, which are determined by the X Server interfaces we're implementing.
2008-03-11Silence warnings about possible uninitialize use of dst_format.Kristian Høgsberg
Whoa, gcc got a lot smarter about warnings. If iXXX_get_dest_format() doesn't support the picture format passed in it won't initialize the uint32_t pointed to by dst_format and return FALSE. What gcc now can detect is if dst_format is used without checking the return value, it might be used uninitialized. This patch makes sure we always check the return value before using dst_format.
2007-10-10EXA: fix tiled dest rendering on i8XX chipsZhenyu Wang
2007-06-12Fix context switching between DRI and X.Eric Anholt
Now, all 3D pipeline consumers in the driver just call IntelEmitInvariantState(), which handles basic state setup, the caching of that state setup, and notifying DRI clients. This also removes a mistaken idle wait in the Render code which was papering over the brokenness in the context switching.
2007-05-18EXA: add render enter helper functionWang Zhenyu
That notify mesa rendering is smashing the state, and check last 3d operation to do sync after we're swapped in or others.
2007-04-20EXA: set enabling bits properly for i830Wang Zhenyu
This was found when debug exa on a 865GV, we should set pipeline state bits properly, otherwise the engine will hang.
2007-04-17EXA: fix i830 renderWang Zhenyu
Fix tex blend pipeline in case that src/mask pict has no alpha. Unmask color buffer write disable bits. These make rendercheck run fine on 855GM.
2007-04-16EXA: fix 830/845G pict formatWang Zhenyu
Fallback in 830/845G when pict format is a8, x8r8g8b8 or x8b8g8r8. The hw doesn't support them.
2007-04-16EXA: Add i830 supported pict format XRGB8888, XBGR8888Wang Zhenyu
2007-04-16EXA: i830 render misc fix and cleanupsWang Zhenyu
Try to map texture stream when setup texture map, and use correct order in load_immediate_1 cmd, which fixed crash on 845GV. Also remove some flush cmds.
2007-03-27EXA: i830 fix blend actionWang Zhenyu
i830_get_blend_cntl() has already added S8 offset.
2007-03-27EXA: fix i830 componentAlpha supportWang Zhenyu
Pick fix from i915 render, change tex blend pipeline for CA.
2007-03-27EXA: fix i830 texture setupWang Zhenyu
Use LOAD_IMM_2 helper cmd for tex setup. Enable RepeatNormal support. Fix A8 format, i830 can support it now.
2007-02-13Switch the RECTLIST vertex order to (x2, y2), (x1, y2), (x1, y1).Eric Anholt
This is the documented correct ordering, and while the previous ordering (reversed) worked on some hardware, it failed on others. Reported by: Wang Zhenyu <zhenyu.z.wang@intel.com>
2007-02-02Add subpixel offsets to fix accelerated rotated rendering on i915.Eric Anholt
This fixes the rendercheck "transformed src/mask coords 2" tests. Previously, the source pixels chosen would be off by one in some cases. The particular values were taken from Mesa, which uses .125 offsets (except apparently broken for y), but the signs are changed. I would be happier if I had better justification for why this worked.
2007-01-31Naming and formatting cleanup in Render acceleration code.Eric Anholt
2007-01-31Move the render code to non-EXA-specific filenames.Eric Anholt