aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_buffers.c
Commit message (Collapse)AuthorAgeFilesLines
* i915: Only call CalcViewport from DrawBuffers instead of Viewport.Eric Anholt2009-01-301-8/+5
| | | | | This saves an inadvertent round-trip to the X Server on DrawBuffers, which was hurting some metaops.
* intel: move glClear-related code into new intel_clear.c fileBrian Paul2009-01-261-222/+0
|
* intel: Move swap-related functions from intel_buffers.c to new ↵Brian Paul2009-01-261-210/+0
| | | | intel_swapbuffers.c
* intel: fix the mismerge of the vblank pipe enable sanity checkJesse Barnes2009-01-231-6/+6
| | | | Fix the last merge fix, had the blocks ordered incorrectly.
* intel: move pipe enable sanity check to where it belongsJesse Barnes2009-01-231-8/+8
| | | | Bah, applied the patches in the wrong order, not Owain's fault...
* intel: fix vblank crtc selection with DRI1 when only one pipe is enabled.Owain Ainsworth2009-01-231-0/+8
| | | | | | | | | | | On Mobile chipsets, we often enable PipeB instead of PipeA, but the test in here was insufficient, falling back to pipe A if the area intersection returned zero. Therefore, in the case where a window went off to the top of the left of the screen, it would freeze, waiting on the wrong vblank. Fix this mess by checking the sarea for a crtc being zero sized, and in that case always default to the other one.
* intel: Prevent an "irq is not working" printf when only pipe B is enabled.Owain G. Ainsworth2009-01-231-8/+26
| | | | | | | intelMakeCurrent is called before intelWindowMoved (in fact, it calls it), so calculation of the correct vblank crtc has not happened yet. Fix this by making a function that fixes up a set of vblank flags and call if from both functions.
* intel: remove/disable the "paired depth/stencil" codeBrian Paul2009-01-221-3/+0
| | | | | | We only allow combined depth+stencil renderbuffers so the complicated code for splitting and combining separate depth and stencil buffers is no longer needed.
* intel: asst clean-ups, simplifications in intel_draw_buffer()Brian Paul2009-01-221-30/+16
|
* i965: minor reformattingBrian Paul2009-01-221-5/+9
|
* [intel] Go back to using the typedef for the sarea structmesa_7_3_rc3Timo Aaltonen2009-01-201-1/+1
| | | | | | The upstream linux kernel headers and libdrm kernel headers disagree on the tag name for the sarea struct: _drm_i915_sarea vs drm_i915_sarea. They both typedef it to drm_i915_sarea_t though, so just use that.
* Remove intel pageflipping support in its entirety.Owain G. Ainsworth2009-01-201-277/+18
| | | | | | | | It's been broken and deprecated for a while, so it's time to die. This has the wonderful benefit of cleaning up the code a fair amount; making it marginally less twisty. I'm unsure if the for loops in IntelWindowMoved are still needed.
* Remove third buffer support from Mesa.Dave Airlie2008-12-231-1/+1
| | | | This is part of the deprecated pageflipping infrastructure.
* intel: Don't keep intel->pClipRects, and instead just calculate it when needed.Eric Anholt2008-10-281-132/+41
| | | | | | | This avoids issues with dereferencing stale cliprects around intel_draw_buffer time. Additionally, take advantage of cliprects staying constant for FBOs and DRI2, and emit cliprects in the batchbuffer instead of having to flush batch each time they change.
* intel: Push flushing for cliprects changes down into the cliprects changes.Eric Anholt2008-10-071-6/+22
| | | | | | This lets us short-circuit when we're leaving the same cliprects in place, which becomes quite common with metaops clears, and may be useful for some of our FBO paths.
* mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul2008-09-181-3/+3
| | | | Makefile.template
* DRI2: Drop sarea, implement swap buffers in the X server.Kristian Høgsberg2008-08-291-0/+3
|
* Revert "Revert "Merge branch 'drm-gem'""Dave Airlie2008-08-241-0/+2
| | | | This reverts commit 7c81124d7c4a4d1da9f48cbf7e82ab1a3a970a7a.
* Revert "Merge branch 'drm-gem'"Dave Airlie2008-08-241-2/+0
| | | | | | | | This reverts commit 53675e5c05c0598b7ea206d5c27dbcae786a2c03. Conflicts: src/mesa/drivers/dri/i965/brw_wm_surface_state.c
* Merge branch 'master' into drm-gemIan Romanick2008-07-251-40/+10
|\ | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_bufmgr.c src/mesa/drivers/dri/i965/brw_wm_surface_state.c
| * intel: remove buffer swap debug outputJesse Barnes2008-07-241-8/+2
| | | | | | | | Accidentally pushed as part of the last commit.
| * intel: fix buffer swaps and enable page flipping on 965Jesse Barnes2008-07-221-39/+15
| | | | | | | | | | | | | | | | | | | | Some buffer swap intel render buffer fields (pf_num_pages & vbl_pending) are also used for page flipping, so enable the code that sets & updates them on 965. This allows buffer swaps and page flips to work on 965 and prevents hangs in LOCK_HARDWARE in the buffer swap case due to an uninitialized vbl_pending field. Fixes FDO #16118.
* | [intel-gem] Call the new throttle ioctl from swap buffersKeith Packard2008-06-061-0/+2
|/ | | | | Swap buffers is a fairly reasonable time to wait for the hardware for a while; this keeps us from overrunning the ring.
* [i965] multiple rendering target supportZou Nan hai2008-03-131-10/+22
|
* Use __DRIextension mechanism providing loader functionality to the driver.Kristian Høgsberg2008-02-291-1/+3
| | | | | | | Instead of passing in a fixed struct, the loader now passes in a list of __DRIextension structs, to advertise the functionality it can provide to the driver. Each extension is individually versioned and can be extended or phased out as the interface develops.
* Use drm_i915_sarea instead of drmI830Sarea and remove i830_common.hAlan Hourihane2008-02-221-1/+1
|
* Hook up i915 driver to new DRI2 infrastructure.Kristian Høgsberg2008-02-141-1/+2
|
* [intel] Remove gratuitous (batchbuffer) flush before doing buffer clears.Eric Anholt2008-01-101-2/+0
| | | | Increases OA performance by about 3%.
* [intel] Remove a gratuitous flush at the end of ClearWithTris.Eric Anholt2008-01-101-1/+0
|
* [intel] Only flush batch when changing draw buffers, not every cliprect update.Eric Anholt2008-01-101-9/+6
| | | | The previous code would reference freed memory on window moves.
* [intel] Add more cliprect modes to cover other meanings for batch emits.Eric Anholt2008-01-101-5/+2
| | | | | | | | | | | | | | | The previous change gave us only two modes, one which looped over the batch per cliprect (3d drawing) and one that didn't (state updeast). However, we really want 4: - Batch doesn't care about cliprects (state updates) - Batch needs DRAWING_RECTANGLE looping per cliprect (3d drawing) - Batch needs to be executed just once (region fills, copies, etc.) - Batch already includes cliprect handling, and must be flushed by unlock time (copybuffers, clears). All callers should now be fixed to use one of these states for any batchbuffer emits. Thanks to Keith Whitwell for pointing out the failure.
* [intel] Clean up cliprect handling in intel drivers.Eric Anholt2008-01-091-0/+9
| | | | | | | | | In particular, batch buffers are no longer flushed when switching from CLIPRECTS to NO_CLIPRECTS or vice versa, and 965 just uses DRM cliprect handling for primitives instead of trying to sneak in its own to avoid the DRM stuff. The disadvantage is that we will re-execute state updates per cliprect, but the advantage is that we will be able to accumulate larger batch buffers, which were proving to be a major overhead.
* Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexesBrian2008-01-061-7/+6
| | | | | | | Each array element is now a BUFFER_x token rather than a BUFFER_BIT_x bitmask. The number of active color buffers is specified by _NumColorDrawBuffers. This builds on the previous DrawBuffer changes and will help with drivers implementing GL_ARB_draw_buffers.
* Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian2008-01-061-3/+3
| | | | | | | | | | | These fields are no longer indexed by shader output. Now, we just have a simple array of renderbuffer pointers. If the shader writes to gl_FragData[i], send those colors to the N _ColorDrawBuffers. Otherwise, replicate the single gl_FragColor (or the fixed-function color) to the N _ColorDrawBuffers. A few more changes and simplifications can follow from this...
* [965] Enable EXT_framebuffer_object.Eric Anholt2007-12-201-67/+89
| | | | | To do so, merge the remainnig necessary code from the buffers, blit, span, and screen code to shared, and replace it with those.
* [intel] Allow driver hooks to be NULL in intel_buffers.c and just update flags.Eric Anholt2007-12-201-15/+39
| | | | | The 965 driver relies on flag checking instead of these hooks, and will be using this code soon.
* [i915] Move meta_draw_quad into the vtbl with other meta operations.Eric Anholt2007-12-201-15/+15
|
* [915] Set cliprects in the drawbuffer software fallback case as well.Eric Anholt2007-12-181-0/+3
| | | | | Otherwise, we may violate cliprect asssertions on clearing the buffers, which isn't affected by the fallback.
* [915] Fix clear color when clearing with triangles.Eric Anholt2007-12-181-6/+2
| | | | | The diffuse color format is always ARGB32, regardless of the destination surface format.
* [i915] Remove redundant set_draw_region code (like the comment says).Eric Anholt2007-12-171-14/+0
|
* [intel] Improve INTEL_DEBUG=blit description of clearing.Eric Anholt2007-12-171-7/+53
|
* i915: Fix issues with glDrawBuffer(GL_NONE).Michel Dänzer2007-12-171-27/+23
| | | | | | | Don't dereference NULL renderbuffer pointer, and make sure the software fallback sticks. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=13694 .
* [i915] Push locking in intelClearWithTris down inside meta_draw_poly.Eric Anholt2007-11-161-85/+69
| | | | | | | | | The lock coverage and checks for cliprects were unneeded since the batchbuffer will have INTEL_BATCH_CLIPRECTS anyway. It appeared to be a leftover from intelClearWithBlit. This makes the locking requirements of i915 meta_draw_quad match i965 meta_draw_quad.
* [i915] Remove old frontbuffer rotation hack.Eric Anholt2007-11-091-158/+2
| | | | | | This was replaced in previous releases of xserver/dri/libGL by reporting the damage to the frontbuffer so that the server and driver could handle it appropriately.
* [intel] Move over files that will be shared with 965-fbo work.Eric Anholt2007-11-091-0/+1209