summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2007-03-09i915tex: Wait for pending scheduled flips before switching vsync pipe.i915tex-pageflipMichel Dänzer1-0/+19
This avoids hangs when the vblank sequence numbers are not in sync between pipes, in particular when they run at different refresh rates.
2007-03-09i915tex: Set intel_fb->vbl_waited to current instead of what we aimed for.Michel Dänzer1-1/+1
2007-03-09i915tex: Sync pages between pipes immediately again.Michel Dänzer1-2/+12
This should be safe now that we no longer use the MI_WAIT_FOR_EVENT instruction incorrectly and should also work correctly with applications that render to the front buffer.
2007-03-09i915tex: Do not wait for pending flips on both pipes at the same time.Michel Dänzer1-9/+4
The MI_WAIT_FOR_EVENT instruction does not support waiting for several events at once, so this should fix the lockups with page flipping when both pipes are enabled.
2007-03-07i915tex: Set framebuffer size to match window before calling _mesa_make_current.Michel Dänzer1-10/+10
Fixes issues with apps that don't call glViewport by default.
2007-02-28i915tex: Sync pages differently when crossing pipe borders.Michel Dänzer1-12/+18
Don't flip (up to twice) immediately but just arrange things such that the pages will be in sync on both pipes on the next flip.
2007-02-28i915tex: Check that intel_rb is valid before trying to add it to an fbo.Michel Dänzer1-2/+4
2007-02-28i915tex: Also update intel_rb->vbl_pending when scheduled swap is not a flip.Michel Dänzer1-3/+3
2007-02-22i915tex: Schedule flips when possible.Michel Dänzer6-179/+228
Also move vsync related state from context to window, so it's possible to schedule several flips ahead of time with triple buffering.
2007-02-20i915tex: Triple buffering support, only effective with page flipping so far.Michel Dänzer7-63/+166
Pending flips are tracked per renderbuffer and the colour renderbuffer attachments of window framebuffer objects are rotated on flips to avoid stalling the pipeline for pending flips unnecessarily.
2007-02-20intelWindowMoved: Some debugging output was accidentally left always enabled.Michel Dänzer1-1/+1
2007-02-20intelRotateWindow: Only use back buffer and cliprects in very specific cases.Michel Dänzer1-7/+6
2007-02-20intelCopyBuffer: Remove incorrect intel_fb->pf_current_page tests.Michel Dänzer1-17/+4
intel_get_rb_region already takes the current page into account. This would result in broken rendering when multiple 3D windows are visible and the pages are reversed.
2007-02-20i915tex: Support page flipping on both CRTCs independently.Michel Dänzer10-117/+203
No longer track page flipping state per context but per window, via struct intel_framebuffer which wraps struct gl_framebuffer for windows.
2007-02-20i915tex: Make page flipping work again.Michel Dänzer7-46/+94
2007-02-19i915tex: Fix performance regression with new vbo code and latest drm.Thomas Hellstrom1-1/+4
With current memory preferences, vbos ended up in AGP space where reading from them got a bit slow. Make sure buffer objects are initially created in system memory.
2007-02-16Merge branch 'master' of ↵Sean D'Epagnier3-52/+315
git+ssh://geckosenator@git.freedesktop.org/git/mesa/mesa
2007-02-16Commiting a few minor fixes to glut fbdev (segfault on a separate stack)Sean D'Epagnier21-2239/+55
Updated all drivers that used the old _ac_ functions to use the new _vbo_ functions. I know this fixed the fbdev driver, it looks like it might fix some other drivers too.
2007-02-16nouveau: nv50: updatePatrice Mandin1-1/+75
2007-02-16nouveau: nv10,20: wrong viewport clip setupPatrice Mandin2-2/+6
2007-02-16nouveau: nv20: texture matrixPatrice Mandin1-1/+4
2007-02-16nouveau: nv20: updatePatrice Mandin1-32/+176
2007-02-16nouveau: nv10: set clear value for 16 and 24 bits depthPatrice Mandin1-4/+15
2007-02-16nouveau: nv10: rescale depth near and farPatrice Mandin1-2/+8
2007-02-16nouveau: nv10: fix viewport scale and originPatrice Mandin1-12/+33
2007-02-14r300: Fix cos & add scs to fragment program.Rune Peterson2-88/+184
So this do : - Fixes COS. - Does range reductions for SIN & COS. - Adds SCS. - removes the optimized version of SIN & COS. - tweaked weight (should help on precision). - fixed a copy paste typo in emit_arith().
2007-02-14test for POT before using sample_2d_linear_repeat()Etienne Clement1-1/+3
2007-02-14fix typo preventing generic arrays from working with ARB_vp (bug #9952)Roland Scheidegger1-1/+1
2007-02-14nouveau: nv10: there are 8 clipping regionsPatrice Mandin1-1/+1
2007-02-14fix stupid bug in the optimized per-vertex fog generation codeRoland Scheidegger1-1/+2
2007-02-14i915tex: Take into account various mapping states when dropping theThomas Hellstrom1-2/+13
batch buffer after a resolution / rotation switch.
2007-02-12I965: fix a failure on waiting irq.Xiang, Haihao1-1/+2
Wait until getting the right fence if drm/i915 resets the counter.
2007-02-12 fd.o #BZ 9684Zou Nan hai1-1/+2
gcc may cast an overflowed float value to an negative int value on i386, fix it to make sure at least some apps will not crash if it contains wrong normal data.
2007-02-12r300: Add proper support for sin/cos instruction in fragment programRune Peterson6-121/+175
Getting proper SIN and COS wasn't as easy as it appeared. I had to make make some changes to the fragment program code. general FP changes: - support HHH swizzle for vector instructions. - don't copy a source to a temp when it is not XYZW swizzled, but combine the two and have the swizzle resolve any issues. (saves temps/instructions with more elaborate shader code) - fix overflow in cnstv[].
2007-02-10ctx->Point._Size fixRune Peterson3-26/+7
2007-02-09optimize per-pixel fog programRoland Scheidegger2-50/+31
use the same internal state as for vertex fog. From the old implemenentation, this changes a SUB+MUL into a MAD for linear fog, and saves a MUL for EXP/EXP2, plus saves a (constant) parameter. While here, fix the broken (forgotten) swizzling. (untested)
2007-02-09 array overflow fixZou Nan hai1-2/+2
2007-02-09r200: simplify / unify input map handling for vp and fftnlRoland Scheidegger5-334/+141
Use the same input map handling for fftnl and vertex programs. It doesn't enable any new functionality (should make it easy to support per-vertex materials though), but the code is much cleaner.
2007-02-09optimize generated vertex programs a bitRoland Scheidegger5-32/+71
Use new internal state to avoid per-vertex normalization of static spot direction vector. Use internal state for simpler per-vertex fog computations (MAD instead of SUB/MUL for linear fog, EX2 instead of POW for EXP/EXP2 fog). Simplify point size calc (2 MADs instead of MOV, MUL, MUL, DP3), and while there fix it up (RSQ instead of RCP). All untested...
2007-02-09fix issues in vp when using FRAG_BIT_WPOS in a fragment program (bug #9910)Roland Scheidegger1-20/+15
Redirect all VERT_RESULT_HPOS writes to a temp and use that for fixup. The viewport transformation still seems to take some shortcuts, and it still does not seem to work at all...
2007-02-06nouveau: a couple of NV3x fixesBen Skeggs5-5/+45
2007-02-06Add support for CN700 chipset in miniglxJakob Bornecrantz2-0/+2
2007-02-05fix issues when using mixed-mode pos-invariant vp and ff tnl (bug #9856)Roland Scheidegger1-19/+32
ARB_vp requires vertex transformation to be invariant to fixed function tnl if the position_invariant option is used. So the same function needs to be used, otherwise z-fighting artifacts may happen with applications which rely on the results being really the same due to precision issues when dealing with floating point values (may not be a problem when using a non-optimizing compiler strictly following IEEE rules).
2007-02-05Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesaBrian1-2/+2
2007-02-05fix mem leakPanagiotis Papadakos1-0/+3
2007-02-06nouveau: OUT_RINGp expects the size in dwords, not bytes.Ben Skeggs1-2/+2
This fixes the *actual* bug that the previous commit was supposed to fix..
2007-02-05fix mem leaksPanagiotis Papadakos2-0/+5
2007-02-06nouveau: fix a small bug in nv10 swtclBen Skeggs1-1/+1
2007-02-06nouveau: new bufferobj code.Ben Skeggs3-169/+562
The old code suffered from a number of issues, the most severe being that with the Mesa VBO merge even swtcl used the driver's bufferobj interface. On most VBO types (or non-AGP cards) the buffer ended up in vram, and killed swtcl performance greatly. All bufferobj's start in system memory now, until they get referenced as a "real" VBO. The other big change is that only potentially "damaged" areas are uploaded/downloaded to/from the hardware.
2007-02-05break if we removed driver from Drivers list in driDestroyDisplayPanagiotis Papadakos1-0/+1
Else we read memory we just released, in for statement.